From e67c24159b4847c9384c79194cd45375435d1e3b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 21 Mar 2006 07:18:25 +0000 Subject: r14604: Support 'aliases' for ldb modules (This used to be commit 73889a327cfe5613746393205fc3e5d6fa76421b) --- source4/build/smb_build/makefile.pm | 6 ++++++ source4/lib/ldb/config.mk | 1 + 2 files changed, 7 insertions(+) diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index bc4cb17d1d..add98b4fdc 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -220,6 +220,12 @@ sub SharedLibrary($$) $self->{install_plugins} .= "\t\@cp $installdir/$ctx->{LIBRARY_REALNAME} \$(DESTDIR)\$(MODULESDIR)/$ctx->{SUBSYSTEM}/$fixedname.\$(SHLIBEXT)\n"; $self->{uninstall_plugins} .= "\t\@echo Uninstalling \$(DESTDIR)\$(MODULESDIR)/$ctx->{SUBSYSTEM}/$fixedname.\$(SHLIBEXT)\n"; $self->{uninstall_plugins} .= "\t\@-rm \$(DESTDIR)\$(MODULESDIR)/$ctx->{SUBSYSTEM}/$fixedname.\$(SHLIBEXT)\n"; + if (defined($ctx->{ALIASES})) { + foreach (@{$ctx->{ALIASES}}) { + $self->{install_plugins} .= "\t\@ln -s $fixedname.\$(SHLIBEXT) \$(DESTDIR)\$(MODULESDIR)/$ctx->{SUBSYSTEM}/$_.\$(SHLIBEXT)\n"; + $self->{uninstall_plugins} .= "\t\@-rm \$(DESTDIR)\$(MODULESDIR)/$ctx->{SUBSYSTEM}/$_.\$(SHLIBEXT)\n"; + } + } } $self->_prepare_list($ctx, "OBJ_LIST"); diff --git a/source4/lib/ldb/config.mk b/source4/lib/ldb/config.mk index 958cd434f1..84b76215fb 100644 --- a/source4/lib/ldb/config.mk +++ b/source4/lib/ldb/config.mk @@ -73,6 +73,7 @@ OBJ_FILES = \ [MODULE::ldb_ildap] SUBSYSTEM = ldb INIT_FUNCTION = ldb_ildap_init +ALIASES = ldapi ldaps ldap OBJ_FILES = \ ldb_ildap/ldb_ildap.o REQUIRED_SUBSYSTEMS = \ -- cgit