pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/samba Different platforms expect different names f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d07408b2de0
branches:  trunk
changeset: 480515:5d07408b2de0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Sep 12 05:00:53 2004 +0000

description:
Different platforms expect different names for the NSS winbind and
WINS modules.  Fix from PR pkg/26640 by John Benninghoff with
modifications by me.

diffstat:

 net/samba/Makefile   |  21 ++++++++++++++++++---
 net/samba/PLIST      |   6 +++---
 net/samba/options.mk |  22 +++++++++++++++++++++-
 3 files changed, 42 insertions(+), 7 deletions(-)

diffs (95 lines):

diff -r cbd2c6f46c23 -r 5d07408b2de0 net/samba/Makefile
--- a/net/samba/Makefile        Sun Sep 12 04:33:12 2004 +0000
+++ b/net/samba/Makefile        Sun Sep 12 05:00:53 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.127 2004/09/08 08:51:31 xtraeme Exp $
+# $NetBSD: Makefile,v 1.128 2004/09/12 05:00:53 jlam Exp $
 
 DISTNAME=              samba-3.0.5
 CATEGORIES=            net
@@ -79,6 +79,17 @@
 FILES_SUBST+=  MKTEMP=${MKTEMP:Q}
 FILES_SUBST+=  PWD_MKDB=${PWD_MKDB:Q}
 
+.if !empty(NSS_WINBIND)
+PLIST_SUBST+=  NSS_WINBIND=lib/${NSS_WINBIND}
+.else
+PLIST_SUBST+=  NSS_WINBIND="@comment no NSS winbind module"
+.endif
+.if !empty(NSS_WINS)
+PLIST_SUBST+=  NSS_WINS=lib/${NSS_WINS}
+.else
+PLIST_SUBST+=  NSS_WINS="@comment no NSS WINS module"
+.endif
+
 DOCDIR=                ${PREFIX}/share/doc/${PKGBASE}
 EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
 
@@ -106,8 +117,12 @@
        ${RMDIR} ${SAMBA_LIBDIR}/${d}
 .endfor
        ${INSTALL_DATA_DIR} ${DOCDIR}
-       ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/libnss_winbind.so ${PREFIX}/lib
-       ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/libnss_wins.so ${PREFIX}/lib
+.if !empty(NSS_WINBIND)
+       ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/${NSS_WINBIND} ${PREFIX}/lib
+.endif
+.if !empty(NSS_WINS)
+       ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/${NSS_WINS} ${PREFIX}/lib
+.endif
        cd ${WRKSRC}/../docs/registry; for file in *.reg; do            \
                ${INSTALL_DATA} $$file ${DOCDIR}/$$file;                \
        done
diff -r cbd2c6f46c23 -r 5d07408b2de0 net/samba/PLIST
--- a/net/samba/PLIST   Sun Sep 12 04:33:12 2004 +0000
+++ b/net/samba/PLIST   Sun Sep 12 05:00:53 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.22 2004/07/30 21:05:41 jlam Exp $
+@comment $NetBSD: PLIST,v 1.23 2004/09/12 05:00:53 jlam Exp $
 bin/findsmb
 bin/net
 bin/nmblookup
@@ -24,8 +24,8 @@
 bin/testprns
 bin/wbinfo
 include/libsmbclient.h
-lib/libnss_winbind.so
-lib/libnss_wins.so
+${NSS_WINBIND}
+${NSS_WINS}
 lib/libsmbclient.a
 lib/libsmbclient.so
 lib/libsmbclient.so.0
diff -r cbd2c6f46c23 -r 5d07408b2de0 net/samba/options.mk
--- a/net/samba/options.mk      Sun Sep 12 04:33:12 2004 +0000
+++ b/net/samba/options.mk      Sun Sep 12 05:00:53 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2004/08/22 19:32:52 jlam Exp $
+# $NetBSD: options.mk,v 1.3 2004/09/12 05:00:53 jlam Exp $
 
 # Global and legacy options
 .if defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])
@@ -85,3 +85,23 @@
 .else
 PLIST_SUBST+=          SMBMOUNT="@comment "
 .endif
+
+###
+### Determine the proper name for the winbind and WINS NSS modules.
+###
+NSS_WINBIND.${OPSYS}?=  libnss_winbind.so
+NSS_WINS.${OPSYS}?=     libnss_wins.so
+
+NSS_WINBIND.AIX=        WINBIND       
+NSS_WINS.AIX=           # empty       
+
+NSS_WINBIND.IRIX=       libns_winbind.so
+NSS_WINS.IRIX=          libns_wins.so 
+
+.if !empty(MACHINE_PLATFORM:MFreeBSD-5.*)
+NSS_WINBIND.FreeBSD=    nss_winbind.so
+NSS_WINS.FreeBSD=       nss_wins.so   
+.endif
+
+NSS_WINBIND=            ${NSS_WINBIND.${OPSYS}}
+NSS_WINS=               ${NSS_WINS.${OPSYS}}



Home | Main Index | Thread Index | Old Index