summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-21 07:18:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:58:59 -0500
commite67c24159b4847c9384c79194cd45375435d1e3b (patch)
tree255f9069d57a92c0d0f844965c7016d8fa83c29a
parentdab516d3e72360a10962d37a06df6aee33b1a63f (diff)
downloadsamba-e67c24159b4847c9384c79194cd45375435d1e3b.tar.gz
samba-e67c24159b4847c9384c79194cd45375435d1e3b.tar.bz2
samba-e67c24159b4847c9384c79194cd45375435d1e3b.zip
r14604: Support 'aliases' for ldb modules
(This used to be commit 73889a327cfe5613746393205fc3e5d6fa76421b)
-rw-r--r--source4/build/smb_build/makefile.pm6
-rw-r--r--source4/lib/ldb/config.mk1
2 files changed, 7 insertions, 0 deletions
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 = \