r14317: Use source/bin as dir to link pam_winbind instead of source/nsswitch/
authorLars Müller <lmuelle@samba.org>
Mon, 13 Mar 2006 14:22:43 +0000 (14:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:24 +0000 (11:15 -0500)
The intention is to have the resulting binaries at one place.  This is
also usefull for upcoming changes to provide a test_pammodules rule.

With these changes I even got aware of
testsuite/nsswitch/pam_winbind_syms.exp  But this only covers
pam_winbind.
(This used to be commit 9883957b74ddefb5293e4aef0cc2f53ee4d417ac)

packaging/Debian/debian-sarge/rules
packaging/Debian/debian-unstable/rules
packaging/Debian/debian-woody/rules
packaging/RHEL/samba.spec.tmpl
packaging/RedHat-9/samba.spec.tmpl
packaging/Solaris/makepkg.sh
source3/Makefile.in
source3/configure.in
testsuite/nsswitch/pam_winbind_syms.exp

index 4db1aaf..eb6e71c 100755 (executable)
@@ -181,7 +181,7 @@ install: build
        # Install winbind stuff not installed by 'make install'
        install -m 0644 source/nsswitch/libnss_winbind.so \
                $(DESTDIR)/lib/libnss_winbind.so.2
-       install -m 0644 source/nsswitch/pam_winbind.so \
+       install -m 0644 source/bin/pam_winbind.so \
                $(DESTDIR)/lib/security/
 
        # Install libnss_wins.so, which is not installed by 'make install' either.
index 71f833d..bfc1525 100755 (executable)
@@ -176,7 +176,7 @@ install: build
        # Install winbind stuff not installed by 'make install'
        install -m 0644 source/nsswitch/libnss_winbind.so \
                $(DESTDIR)/lib/libnss_winbind.so.2
-       install -m 0644 source/nsswitch/pam_winbind.so \
+       install -m 0644 source/bin/pam_winbind.so \
                $(DESTDIR)/lib/security/
 
        # Install libnss_wins.so, which is not installed by 'make install' either.
index f17ea75..d97dc99 100755 (executable)
@@ -147,7 +147,7 @@ install: build
        # Install winbind stuff not installed by 'make install'
        install -m 0644 source/nsswitch/libnss_winbind.so \
                $(DESTDIR)/lib/libnss_winbind.so.2
-       install -m 0644 source/nsswitch/pam_winbind.so \
+       install -m 0644 source/bin/pam_winbind.so \
                $(DESTDIR)/lib/security/
 
        # Install libnss_wins.so, which is not installed by 'make install' either.
index f5302a8..6e5ebcb 100644 (file)
@@ -211,7 +211,7 @@ cd ..
 cp source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass.so
 
 # NSS & PAM winbind support
-install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind.so
+install -m 755 source/bin/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind.so
 install -m 755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
 install -m 755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
 ( cd $RPM_BUILD_ROOT/%{_lib};
index 6ea456c..e450bf5 100644 (file)
@@ -177,7 +177,7 @@ install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib
 # Install winbind shared libraries
 install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib
 ( cd $RPM_BUILD_ROOT/lib; ln -sf libnss_winbind.so libnss_winbind.so.2 )
-install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security
+install -m755 source/bin/pam_winbind.so $RPM_BUILD_ROOT/lib/security
 
 # Install pam_smbpass.so
 install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security
index 18e9f00..6a8660b 100644 (file)
@@ -172,8 +172,8 @@ DOCDIR=$INSTALL_BASE/docs
 ##
 cp -fp nsswitch/libnss_wins.so $TMPINSTALLDIR/$LIBDIR/nss_wins.so.1
 cp -fp nsswitch/libnss_winbind.so $TMPINSTALLDIR/$LIBDIR/nss_winbind.so.1
-if [ -f nsswitch/pam_winbind.so ]; then
-       cp -fp nsswitch/pam_winbind.so $TMPINSTALLDIR/$LIBDIR/pam_winbind.so
+if [ -f bin/pam_winbind.so ]; then
+       cp -fp bin/pam_winbind.so $TMPINSTALLDIR/$LIBDIR/pam_winbind.so
 fi
 if [ -f bin/smbwrapper.so ]; then
        cp -fp bin/smbwrapper.so $TMPINSTALLDIR/$INSTALL_BASE/lib
index 02d17b0..c178fba 100644 (file)
@@ -788,7 +788,7 @@ eventlogadm: SHOWFLAGS bin/eventlogadm@EXEEXT@
 talloctort : SHOWFLAGS bin/talloctort@EXEEXT@
 
 nsswitch : SHOWFLAGS bin/winbindd@EXEEXT@ bin/wbinfo@EXEEXT@ @WINBIND_NSS@ \
-       @WINBIND_WINS_NSS@ nsswitch/pam_winbind.@SHLIBEXT@
+       @WINBIND_WINS_NSS@ bin/pam_winbind.@SHLIBEXT@
 
 wins : SHOWFLAGS @WINBIND_WINS_NSS@
 
@@ -1196,7 +1196,7 @@ bin/winbindd@EXEEXT@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
                $(LDAP_LIBS) $(KRB5LIBS) \
                @SONAMEFLAG@`basename $@`@SONAMEVERSIONSUFFIX@
 
-nsswitch/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy
+bin/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy
        @echo "Linking $@"
        @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_PICOBJ) \
                @SONAMEFLAG@`basename $@` $(LIBS) -lpam
index 37acc0c..fd16480 100644 (file)
@@ -5107,7 +5107,7 @@ if test x"$HAVE_WINBIND" = x"yes"; then
                SHLIB_PROGS="$SHLIB_PROGS $WINBIND_NSS $WINBIND_WINS_NSS"
 
                if test x"$with_pam" = x"yes"; then
-                       SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.$SHLIBEXT"
+                       SHLIB_PROGS="$SHLIB_PROGS bin/pam_winbind.$SHLIBEXT"
                fi
        fi
 else
index f95274c..7c85a2d 100644 (file)
@@ -29,7 +29,7 @@ if {$output != ""} {
 # Run load-dl.c
 
 set output [util_start "$srcdir/$subdir/pam_winbind_syms" \
-        "nsswitch/pam_winbind.so"]
+        "bin/pam_winbind.so"]
 
 if {[regexp "FAIL:" $output]} {
     fail "run pam_winbind_syms"