diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-12 03:33:04 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-12 03:33:04 +0000 |
commit | 0440463b521b6c2ea46c531c1a12819b10a919c4 (patch) | |
tree | 0da86e819f90d3b1058bd6228f6365b5874573dd /net/samba | |
parent | bf65a51eb891528abc18483d5f3e43890d9533a3 (diff) | |
download | pkgsrc-0440463b521b6c2ea46c531c1a12819b10a919c4.tar.gz |
Update net/samba to 3.0.1nb1. Changes from version 3.0.1 include:
* Building and installing the PAM modules if USE_PAM is defined.
* Installing the NSS loadable modules.
* Making the samba rc.d script run the winbindd script, too.
Diffstat (limited to 'net/samba')
-rw-r--r-- | net/samba/Makefile | 30 | ||||
-rw-r--r-- | net/samba/PLIST | 4 | ||||
-rw-r--r-- | net/samba/PLIST.pam | 9 | ||||
-rw-r--r-- | net/samba/files/samba.sh | 4 |
4 files changed, 39 insertions, 8 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index a99d2031606..9cb8b29fb00 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.109 2004/01/11 02:26:30 jlam Exp $ +# $NetBSD: Makefile,v 1.110 2004/01/12 03:33:04 jlam Exp $ DISTNAME= samba-3.0.1 +PKGREVISION= 1 WRKSRC= ${WRKDIR}/${DISTNAME}/source CATEGORIES= net MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \ @@ -17,13 +18,14 @@ MAINTAINER= jlam@NetBSD.org HOMEPAGE= http://www.samba.org/ COMMENT= SMB/CIFS protocol server suite -CONFLICTS+= winbind-[0-9]* +CONFLICTS+= pam-smbpass-[0-9]* winbind-[0-9]* PKG_INSTALLATION_TYPES= overwrite pkgviews USE_BUILDLINK3= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= PERL="${PERL5}" +PLIST_SRC= ${PKGDIR}/PLIST .include "../../mk/bsd.prefs.mk" @@ -82,8 +84,10 @@ CONFIGURE_ARGS+= --enable-cups BUILD_DEFS+= USE_CUPS .if defined(USE_PAM) -. include "../../security/PAM/buildlink3.mk" +. include "../../security/PAM/module.mk" CONFIGURE_ARGS+= --with-pam +CONFIGURE_ARGS+= --with-pam_smbpass +PLIST_SRC+= ${PKGDIR}/PLIST.pam .endif BUILD_DEFS+= USE_PAM @@ -122,17 +126,22 @@ SUPPORT_FILES_PERMS= ${EGDIR}/adduser.sh ${SAMBA_ETCDIR}/adduser \ ${ROOT_USER} ${ROOT_GROUP} 0755 SUPPORT_FILES_PERMS+= ${EGDIR}/deluser.sh ${SAMBA_ETCDIR}/deluser \ ${ROOT_USER} ${ROOT_GROUP} 0755 -OWN_DIRS= ${SAMBA_ETCDIR} ${SAMBA_LOCKDIR} \ - ${SAMBA_VARDIR} ${SAMBA_LOGDIR} ${SAMBA_PIDDIR} +MAKE_DIRS= ${SAMBA_VARDIR} ${SAMBA_LOGDIR} ${SAMBA_PIDDIR} +OWN_DIRS= ${SAMBA_ETCDIR} ${SAMBA_LOCKDIR} OWN_DIRS_PERMS= ${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0700 RCD_SCRIPTS= samba nmbd smbd winbindd +INSTALL_LIBRARY= \ + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} + post-build: @${SED} ${FILES_SUBST_SED} ${FILESDIR}/adduser.sh > ${WRKDIR}/adduser.sh @${SED} ${FILES_SUBST_SED} ${FILESDIR}/deluser.sh > ${WRKDIR}/deluser.sh post-install: ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/libnss_winbind.so ${PREFIX}/lib + ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/libnss_wins.so ${PREFIX}/lib cd ${WRKSRC}/../docs/Registry; for file in *.reg; do \ ${INSTALL_DATA} $$file ${DOCDIR}/$$file; \ done @@ -145,5 +154,16 @@ post-install: cd ${WRKSRC}/script; ${INSTALL_SCRIPT} mknissmbpwdtbl.sh ${EGDIR} cd ${WRKSRC}/script; ${INSTALL_SCRIPT} mksmbpasswd.sh ${EGDIR} cd ${WRKSRC}/script; ${INSTALL_SCRIPT} updatesmbpasswd.sh ${EGDIR} +.if defined(USE_PAM) + ${INSTALL_DATA_DIR} ${PAM_INSTMODULEDIR} + ${INSTALL_LIBRARY} ${WRKSRC}/bin/pam_smbpass.so ${PAM_INSTMODULEDIR} + ${INSTALL_LIBRARY} ${WRKSRC}/nsswitch/pam_winbind.so ${PAM_INSTMODULEDIR} + ${INSTALL_DATA} ${WRKSRC}/pam_smbpass/README \ + ${DOCDIR}/README.pam_smbpass + ${INSTALL_DATA_DIR} ${EGDIR}/pam_smbpass + cd ${WRKSRC}/pam_smbpass/samples; for file in [a-z]*; do \ + ${INSTALL_DATA} $${file} ${EGDIR}/pam_smbpass/$${file}; \ + done +.endif .include "../../mk/bsd.pkg.mk" diff --git a/net/samba/PLIST b/net/samba/PLIST index afc1c3a46ec..4c042c3c096 100644 --- a/net/samba/PLIST +++ b/net/samba/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.13 2004/01/11 02:26:31 jlam Exp $ +@comment $NetBSD: PLIST,v 1.14 2004/01/12 03:33:04 jlam Exp $ bin/findsmb bin/net bin/nmblookup @@ -25,6 +25,8 @@ etc/rc.d/samba etc/rc.d/smbd etc/rc.d/winbindd include/libsmbclient.h +lib/libnss_winbind.so +lib/libnss_wins.so lib/libsmbclient.a lib/libsmbclient.so lib/samba/charset/CP437.so diff --git a/net/samba/PLIST.pam b/net/samba/PLIST.pam new file mode 100644 index 00000000000..18eb3002c82 --- /dev/null +++ b/net/samba/PLIST.pam @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST.pam,v 1.1 2004/01/12 03:33:04 jlam Exp $ +lib/security/pam_smbpass.so +lib/security/pam_winbind.so +share/doc/samba/README.pam_smbpass +share/examples/samba/pam_smbpass/kdc-pdc +share/examples/samba/pam_smbpass/password-mature +share/examples/samba/pam_smbpass/password-migration +share/examples/samba/pam_smbpass/password-sync +@dirrm share/examples/samba/pam_smbpass diff --git a/net/samba/files/samba.sh b/net/samba/files/samba.sh index 000ffd60bd6..5e22edae378 100644 --- a/net/samba/files/samba.sh +++ b/net/samba/files/samba.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: samba.sh,v 1.14 2004/01/11 02:26:31 jlam Exp $ +# $NetBSD: samba.sh,v 1.15 2004/01/12 03:33:04 jlam Exp $ # # KEYWORD: nostart @@ -36,7 +36,7 @@ reverse_commands() done } -COMMAND_LIST="nmbd smbd" +COMMAND_LIST="nmbd smbd winbindd" name="samba" start_cmd="forward_commands" |