diff options
author | Lars Müller <lmuelle@samba.org> | 2006-03-13 16:10:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:25 -0500 |
commit | 9b277916445e6c1bdc60e06c382067c209287aaf (patch) | |
tree | 34bf25c75d20de72b1dc0dc6d577c792dd345d37 /source3/Makefile.in | |
parent | b97a69dce316ba8808b317acd99d976c4c279a28 (diff) | |
download | samba-9b277916445e6c1bdc60e06c382067c209287aaf.tar.gz samba-9b277916445e6c1bdc60e06c382067c209287aaf.tar.bz2 samba-9b277916445e6c1bdc60e06c382067c209287aaf.zip |
r14325: Add pam_modules rule which builds the configure(d) pam modules. This is
called as part of the all rule (again only if pam modules are requested
by configure).
Add pam_winbind rule.
Ensure proto_exists before we build the pam modules.
Add test_pam_modules rule to test if the built pam modules have any
unresolved symbols. For test_pam_modules we use script/tests/dlopen.sh
which was written by Nalin Dahyabhai <nalin@redhat.com>. Thanks Nalin!
RedHat and SuSE use this script to test nss and pam modules since
several years.
(This used to be commit 71b2eb55adcd28f3796254ea1ce0bcee6098e712)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r-- | source3/Makefile.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index a6cc3d8255..5d9e1e18c6 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -154,6 +154,8 @@ EVERYTHING_PROGS = bin/debug2html@EXEEXT@ bin/smbfilter@EXEEXT@ bin/talloctort@E SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@ @LIBSMBSHAREMODES@ cac +PAM_MODULES = @PAM_MODULES@ + SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb VFS_MODULES = @VFS_MODULES@ @@ -754,9 +756,13 @@ NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} $(LIBSAMBA_OBJ) $(POPT_LIB_OBJ) \ # now the rules... ###################################################################### all : SHOWFLAGS proto_exists $(SBIN_PROGS) $(BIN_PROGS) $(ROOT_SBIN_PROGS) \ - $(SHLIBS) $(MODULES) @EXTRA_ALL_TARGETS@ + $(SHLIBS) $(MODULES) $(PAM_MODULES) @EXTRA_ALL_TARGETS@ + +pam_modules : $(PAM_MODULES) + +pam_smbpass : SHOWFLAGS proto_exists bin/pam_smbpass.@SHLIBEXT@ -pam_smbpass : SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@ +pam_winbind : SHOWFLAGS proto_exists bin/pam_winbind.@SHLIBEXT@ smbwrapper : SHOWFLAGS @SMBWRAPPER@ @@ -840,6 +846,12 @@ test: all torture @echo Running Samba 3 Test suite @sh ./script/tests/runtests.sh t_dir +test_pam_modules: pam_modules + @echo "Testing $(PAM_MODULES) " + @for module in $(PAM_MODULES); do \ + ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \ + || exit 1; \ + done # These dependencies are only approximately correct: we want to make # sure Samba's paths are updated if ./configure is re-run. Really it |