Date: Sun, 29 Feb 2004 10:44:17 -0800 (PST) From: "Timur I. Bakeyev" <timur@com.bat.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/63541: Update net/samba-devel to 3.0.2a and various fixes and improvements Message-ID: <200402291844.i1TIiHp6047754@www.freebsd.org> Resent-Message-ID: <200402291850.i1TIoLKL005038@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63541 >Category: ports >Synopsis: Update net/samba-devel to 3.0.2a and various fixes and improvements >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 29 10:50:21 PST 2004 >Closed-Date: >Last-Modified: >Originator: Timur I. Bakeyev >Release: FreeBSD 5-CURRENT >Organization: RIPE NCC >Environment: FreeBSD timur.home.bat.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Fri Dec 26 00:21:54 CET 2003 root@timur.home.bat.ru:/usr/src/sys/i386/compile/COMMON i386 >Description: This is an severe modification of net/samba-devel, as well as an upgrade to version 3.0.2a. Key chages in this update: * Usage of OPTIONS and config target for GUI configuration tool(PR 50044) * No(?) hidden dependencies, configuration variables for almost all available options, with ability to negate OS defaults(PR 60414). * Consistent ADS and WINBIND support, with all the necessary pam and nss modules, as well as with documentation(PR 50039). * rcNG startup script, that handles start of winbindd as well(PR 44273). * CONFIGURE_ENV get PREFIX by default(fixes PR 61636 and PR 60254). * Better support for hier(7) - suplimentary modules went from etc/ to lib/samba/, log files are in /var/log/samba(PR 60254 and PR 62728). * libsmbclient installs with all necessary symlinks(PR 60994). * Incorporate fixes to smb.conf.default from PR 60994. * Clean installation of manpages(no linux staff). * Various other small fixes. >How-To-Repeat: Install current samba-devel :) >Fix: Full package with all supplimentary files can be found at http://unix.bat.ru/FreeBSD/ports/net/samba-devel.tar.gz. Here is the CVS diff: cvs server: files/patch-configure.in is a new entry, no comparison available --- configure.in.orig Sat Jan 31 04:40:54 2004 +++ configure.in Sat Jan 31 04:43:23 2004 @@ -4037,6 +4037,8 @@ # the Linux version. WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_freebsd.o \ nsswitch/winbind_nss_linux.o" + WINBIND_NSS="nsswitch/nss_winbind.$SHLIBEXT" + WINBIND_WINS_NSS="nsswitch/nss_wins.$SHLIBEXT" ;; *irix*) # IRIX has differently named shared libraries cvs server: files/patch-installman.sh was removed, no comparison available cvs server: files/patch-unit_pw was removed, no comparison available Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/Makefile,v retrieving revision 1.102 diff -u -r1.102 Makefile --- Makefile 12 Feb 2004 15:47:11 -0000 1.102 +++ Makefile 29 Feb 2004 17:23:59 -0000 @@ -6,80 +6,204 @@ # PORTNAME= samba -PORTVERSION= 3.0.1 -PORTREVISION= 2 +PORTVERSION= 3.0.2.a +PORTREVISION= 0 PORTEPOCH= 1 CATEGORIES= net -MASTER_SITES= http://us3.samba.org/samba/ftp/%SUBDIR%/ -MASTER_SITE_SUBDIR= . rc old-versions -#DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/} +MASTER_SITES= http://us1.samba.org/samba/ftp/%SUBDIR%/ \ + http://us3.samba.org/samba/ftp/%SUBDIR%/ \ + http://us4.samba.org/samba/ftp/%SUBDIR%/ \ + ftp://ca.samba.org/%SUBDIR%/ \ + ftp://de.samba.org/samba.org/%SUBDIR%/ \ + ftp://ftp.k2.net/mirrors/samba/%SUBDIR%/ \ + ftp://ftp.oss.eznetsols.org/samba/%SUBDIR%/ \ + ftp://gd.tuwien.ac.at/infosys/servers/samba/%SUBDIR%/ \ + ftp://giswitch.sggw.waw.pl/pub/unix/samba/%SUBDIR%/ \ + ftp://ru.samba.org/pub/samba/%SUBDIR%/ \ + ftp://tr.samba.org/samba/%SUBDIR%/ \ + http://sambafr.idealx.org/samba/ftp/%SUBDIR%/ +MASTER_SITE_SUBDIR= . rc +DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/:S/.a/a/} MAINTAINER= dwcjr@FreeBSD.org COMMENT= A free SMB and CIFS client and server for UNIX -CONFLICTS= ja-samba-2.* samba-3.* sharity-light-1.* +CONFLICTS= ja-samba-2.* samba-3.* samba-libsmbclient-3.* sharity-light-1.* -USE_BZIP2= yes - -.if !defined(WITHOUT_CUPS) -WITH_CUPS= yes -.else -CONFIGURE_ARGS+= --enable-cups=no -.endif +OPTIONS= CUPS "With CUPS printing support" on \ + LDAP "With LDAP support" on \ + KRB5 "With Kerberos5 support" on \ + ADS "With Active Directory support" on \ + WINBIND "With WinBIND support" on \ + ACL_SUPPORT "With ACL support" off \ + SYSLOG "With Syslog support" off \ + QUOTAS "With Quota support" off \ + UTMP "With UTMP support" on \ + MSDFS "With MSDFS support" off \ + SAM_XML "With XML smbpasswd backend" off \ + SAM_MYSQL "With MYSQL smbpasswd backend" off \ + SAM_PGSQL "With PostgreSQL smbpasswd backend" off \ + SAM_OLD_LDAP "With Samba2.x LDAP smbpasswd backend" off \ + PAM_SMBPASS "With SMB PAM module" off \ + LIBICONV "With installed ICONV library" off \ + POPT "With installed POPT library" on -.if defined(WITH_CUPS) -LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base -CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ - LDFLAGS=-L${LOCALBASE}/lib -.endif +USE_RC_SUBR= yes +USE_BZIP2= yes +NO_LATEST_LINK= yes +INSTALLS_SHLIB= yes +#GNU_CONFIGURE= yes +USE_AUTOCONF= yes +WANT_AUTOCONF_VER= 253 # directories -VARDIR= /var +VARDIR= ${DESTDIR}/var SAMBA_SPOOL= ${VARDIR}/spool/samba -SAMBA_LOGDIR= ${VARDIR}/log +SAMBA_LOGDIR= ${VARDIR}/log/samba +SAMBA_RUNDIR= ${VARDIR}/run SAMBA_PRIVATE= ${PREFIX}/private SAMBA_CONFDIR= ${PREFIX}/etc -# sample files -STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample -SAMPLE_CONFIG= ${SAMBA_CONFDIR}/smb.conf.default -DOCSDIR= ${PREFIX}/share/doc/samba +SAMBA_SWATDIR= ${PREFIX}/share/swat +SAMBA_LIBDIR= ${PREFIX}/lib +DOCSDIR?= ${PREFIX}/share/doc/samba +EXAMPLESDIR?= ${PREFIX}/share/examples/samba +RC_DIR?= ${SAMBA_CONFDIR}/rc.d +SAMBA_CONFIG= ${SAMBA_CONFDIR}/smb.conf -NO_LATEST_LINK= yes -USE_AUTOCONF= yes -WANT_AUTOCONF_VER= 253 -CONFIGURE_ARGS+=--libdir=${SAMBA_CONFDIR} \ - --localstatedir=${VARDIR} --with-swatdir=${PREFIX}/share/swat \ - --with-sambabook=${PREFIX}/share/swat/using_samba \ - --with-lockdir=${VARDIR}/lock --with-privatedir=${SAMBA_PRIVATE} \ - --exec-prefix=${PREFIX} --with-pam --without-manpages-langs \ - --with-piddir=${VARDIR}/run --with-logfilebase=${VARDIR}/log +CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \ + LDFLAGS=-L${LOCALBASE}/lib +CONFIGURE_ARGS= --exec-prefix=${PREFIX} \ + --libdir=${SAMBA_LIBDIR}/samba \ + --localstatedir=${VARDIR} \ + --with-configdir=${SAMBA_CONFDIR} \ + --with-swatdir=${SAMBA_SWATDIR} \ + --with-sambabook=${SAMBA_SWATDIR}/using_samba \ + --with-lockdir=${SAMBA_SPOOL} --with-piddir=${SAMBA_RUNDIR} \ + --with-privatedir=${SAMBA_PRIVATE} \ + --with-logfilebase=${SAMBA_LOGDIR} \ + --with-pam --with-readline --with-libsmbclient \ + --with-manpages-langs=en .include <bsd.port.pre.mk> +.if !defined(WITHOUT_CUPS) +WITH_CUPS= yes +.endif + +.if defined(WITH_CUPS) +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +CONFIGURE_ARGS+= --enable-cups +CUPS= cups +.else +CONFIGURE_ARGS+= --disable-cups +CUPS= "" +.endif + +.if defined(WITH_SYSLOG) +CONFIGURE_ARGS+= --with-syslog +.endif + .if defined(WITH_QUOTAS) CONFIGURE_ARGS+= --with-quotas .endif -.if defined(WITH_UTMP) -CONFIGURE_ARGS+= --with-utmp +.if defined(WITHOUT_UTMP) +CONFIGURE_ARGS+= --without-utmp .endif .if defined(WITH_MSDFS) CONFIGURE_ARGS+= --with-msdfs .endif -.if defined(WITH_WINBIND) +.if !defined(WITHOUT_WINBIND) CONFIGURE_ARGS+= --with-winbind +PLIST_SUB+= WINBIND="" +.else +CONFIGURE_ARGS+= --without-winbind +PLIST_SUB+= WINBIND="@comment " .endif -.if defined(WITH_WINBIND_AUTH_CHALLENGE) -CONFIGURE_ARGS+= --with-winbind-auth-challenge +.if !defined(WITHOUT_LDAP) +WANT_LDAP= yes +CONFIGURE_ARGS+= --with-ldap +.else +CONFIGURE_ARGS+= --without-ldap .endif -.if defined(KRB5_HOME) && exists(${KRB5_HOME}) +.if !defined(WITHOUT_KRB5) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a) CONFIGURE_ARGS+= --with-krb5=${KRB5_HOME} +.elif !defined(WITHOUT_KRB5) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a) +CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} +.elif !defined(WITHOUT_KRB5) && (defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105) && exists(/usr/lib/libkrb5.a) +CONFIGURE_ARGS+= --with-krb5=/usr +.else +# Kerberos5 is necessary for ADS +.if defined(WITH_ADS) +BROKEN= "Kerberos5 is necessary for ADS support. Please, install either Heimdal or MIT-Kerberos" +.endif +WITHOUT_ADS= yes +CONFIGURE_ARGS+= --without-krb5 +.endif + +.if !defined(WITHOUT_ADS) +WANT_LDAP= yes +CONFIGURE_ARGS+= --with-ads .else -CONFIGURE_ARGS+= --with-krb5=no +CONFIGURE_ARGS+= --without-ads +.endif + +# SAM +.if defined(WITH_SAM_XML) +#USE_GNOME= libxml2 +LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 +CONFIGURE_ARGS+= --with-xml-prefix=${LOCALBASE} +WANT_EXPSAM_MODULES+= xml +PLIST_SUB+= SAMXML="" +.else +PLIST_SUB+= SAMXML="@comment " +.endif + +.if defined(WITH_SAM_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql-prefix=${LOCALBASE} +WANT_EXPSAM_MODULES+= mysql +PLIST_SUB+= SAMMYSQL="" +.else +PLIST_SUB+= SAMMYSQL="@comment " +.endif + +.if defined(WITH_SAM_PGSQL) +LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql-client +CONFIGURE_ARGS+= --with-pgsql-prefix=${LOCALBASE} +WANT_EXPSAM_MODULES+= pgsql +PLIST_SUB+= SAMPGSQL="" +.else +PLIST_SUB+= SAMPGSQL="@comment " +.endif + +.if defined(WITH_SAM_OLD_LDAP) +WANT_LDAP= yes +CONFIGURE_ARGS+= --with-ldapsam +.else +CONFIGURE_ARGS+= --without-ldapsam +.endif + +.if defined(WANT_EXPSAM_MODULES) && !empty(WANT_EXPSAM_MODULES) +WANT_EXPSAM_MODULES!= ${ECHO_CMD} ${WANT_EXPSAM_MODULES} | ${SED} -e 's/ /,/g' +CONFIGURE_ARGS+= --with-expsam=${WANT_EXPSAM_MODULES} +.endif +# SAM + +.if defined(WANT_LDAP) +USE_OPENLDAP= yes +.endif + +.if defined(WITH_PAM_SMBPASS) +CONFIGURE_ARGS+= --with-pam_smbpass +PLIST_SUB+= SMBPASS="" +.else +CONFIGURE_ARGS+= --without-pam_smbpass +PLIST_SUB+= SMBPASS="@comment " .endif .if defined(WITH_ACL_SUPPORT) @@ -95,59 +219,98 @@ CONFIGURE_ARGS+= --with-libiconv .endif -.if defined(WITHOUT_POPT) -CONFIGURE_ARGS+= --with-included-popt -.else +.if !defined(WITHOUT_POPT) LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt +.else +CONFIGURE_ARGS+= --with-included-popt .endif WRKSRC= ${WRKDIR}/${DISTNAME}/source -MAN1= findsmb.1 nmblookup.1 log2pcap.1 \ - rpcclient.1 smbcacls.1 smbclient.1 smbcontrol.1 smbsh.1 \ - smbstatus.1 smbtar.1 testparm.1 testprns.1 wbinfo.1 vfstest.1 \ - editreg.1 ntlm_auth.1 profiles.1 smbcquotas.1 smbtree.1 +MLINKS= samba.7 Samba.7 +MAN1= findsmb.1 nmblookup.1 log2pcap.1 rpcclient.1 \ + smbget.1 smbcacls.1 smbclient.1 smbcontrol.1 smbsh.1 \ + smbstatus.1 smbtar.1 testparm.1 testprns.1 vfstest.1 \ + ntlm_auth.1 profiles.1 smbcquotas.1 smbtree.1 MAN5= lmhosts.5 smb.conf.5 smbpasswd.5 MAN7= samba.7 -MAN8= nmbd.8 smbd.8 smbmnt.8 smbmount.8 net.8 pdbedit.8 mount.cifs.8 \ - smbpasswd.8 smbspool.8 smbumount.8 swat.8 winbindd.8 tdbbackup.8 +MAN8= nmbd.8 smbd.8 net.8 pdbedit.8 smbpasswd.8 smbspool.8 \ + swat.8 tdbdump.8 tdbbackup.8 +.if !defined(WITHOUT_WINBIND) +MAN1+= wbinfo.1 +MAN8+= winbindd.8 +.endif + +.if !defined(WITHOUT_WINBIND) +WINBIND_FILTER= ${SED} -e 's|%%WINBIND%%||g' +.else +WINBIND_FILTER= ${GREP} -v '^%%WINBIND%%' +.endif + +PLIST_SUB+= RC_DIR=${RC_DIR} \ + SAMBA_SPOOL=${SAMBA_SPOOL} \ + SAMBA_LOGDIR=${SAMBA_LOGDIR} + +RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ + RC_SUBR=${RC_SUBR} \ + RC_DIR=${RC_DIR} \ + CUPS=${CUPS} \ + SAMBA_CONFIG=${SAMBA_CONFIG} \ + SAMBA_SPOOL=${SAMBA_SPOOL} \ + SAMBA_RUNDIR=${SAMBA_RUNDIR} post-install: - ${MKDIR} ${PREFIX}/share/examples/samba - ${CP} -rp ${WRKDIR}/${DISTNAME}/examples/* ${PREFIX}/share/examples/samba - @if [ ! -f ${STARTUP_SCRIPT} ]; then \ - ${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ; \ - ${INSTALL_SCRIPT} ${FILESDIR}/samba.sh.sample \ - ${STARTUP_SCRIPT} ; \ - fi +.for sect in 1 5 7 8 + @${MKDIR} ${MAN${sect}PREFIX}/man/man${sect} +.for man in ${MAN${sect}} + @${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/${man} ${MAN${sect}PREFIX}/man/man${sect} +.endfor +.endfor + @${MKDIR} ${EXAMPLESDIR} + @${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR} +.if defined(WITH_PAM_SMBPASS) + @${MKDIR} ${EXAMPLESDIR}/pam_smbpass + @${CP} -Rp ${WRKSRC}/pam_smbpass/samples/* ${EXAMPLESDIR}/pam_smbpass +.endif + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/samba.sh.sample | ${WINBIND_FILTER} > ${WRKDIR}/samba.sh + ${INSTALL_SCRIPT} ${WRKDIR}/samba.sh ${RC_DIR}/samba.sh @test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL} - @if [ ! -f ${SAMPLE_CONFIG} ]; then \ - ${SED} -e 's!%%SAMBA_SPOOL%%!${SAMBA_SPOOL}!' \ - -e 's!%%SAMBA_LOGDIR%%!${SAMBA_LOGDIR}!' \ - -e 's!%%SAMBA_CONFDIR%%!${SAMBA_CONFDIR}!' \ - ${FILESDIR}/smb.conf.default \ - > ${SAMPLE_CONFIG} ; \ - fi - ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd + @test -d ${SAMBA_LOGDIR} || ${MKDIR} ${SAMBA_LOGDIR} + ${SED} -e 's!%%SAMBA_SPOOL%%!${SAMBA_SPOOL}!' \ + -e 's!%%SAMBA_LOGDIR%%!${SAMBA_LOGDIR}!' \ + -e 's!%%SAMBA_CONFDIR%%!${SAMBA_CONFDIR}!' \ + ${FILESDIR}/smb.conf.default \ + > ${SAMBA_CONFIG}.default ; \ + ${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd if [ ! -d ${SAMBA_PRIVATE} ] ; then \ ${MKDIR} ${SAMBA_PRIVATE} ; \ ${CHOWN} root:wheel ${SAMBA_PRIVATE} ; \ fi ${CHMOD} 700 ${SAMBA_PRIVATE} if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \ - ${CAT} /etc/passwd | ${GREP} -v "^#" | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \ - ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \ + ${CAT} ${DESTDIR}/etc/passwd | ${GREP} -v "^#" | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \ + ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \ fi ${CHMOD} 500 ${SAMBA_PRIVATE} ${CHOWN} root:wheel ${PREFIX}/bin/smbpasswd ${CHMOD} 111 ${PREFIX}/bin/smbpasswd .if defined(PACKAGE_BUILDING) - ${ECHO_CMD} "private/smbpasswd" >> ${TMPPLIST} - ${ECHO_CMD} "@dirrm private" >> ${TMPPLIST} + @${ECHO_CMD} "@exec ${MKDIR} ${SAMBA_PRIVATE} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@exec ${CHMOD} 500 ${SAMBA_PRIVATE}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ${RM} -rf ${SAMBA_PRIVATE}" >> ${TMPPLIST} .else - ${ECHO_CMD} "@unexec ${ECHO_CMD} \"Warning: If you will *NOT* use this package anymore, please remove %D/private/smbpasswd manually.\"" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ${ECHO_CMD} \"Warning: If you will *NOT* use this package anymore, please remove %D/private/* manually.\"" >> ${TMPPLIST} +.endif + -@${LN} -snf libsmbclient.so.0 ${SAMBA_LIBDIR}/libsmbclient.so +.if !defined(WITHOUT_WINBIND) + ${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/nss_winbind.so ${SAMBA_LIBDIR}/nss_winbind.so.1 + ${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/nss_wins.so ${SAMBA_LIBDIR}/nss_wins.so.1 + ${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/pam_winbind.so ${SAMBA_LIBDIR} +.endif +.if defined(WITH_PAM_SMBPASS) + @${INSTALL_PROGRAM} ${WRKSRC}/bin/pam_smbpass.so ${SAMBA_LIBDIR} .endif - .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR} @@ -159,16 +322,14 @@ ${WRKDIR}/${DISTNAME}/WHATSNEW.txt \ ${WRKDIR}/${DISTNAME}/docs/THANKS \ ${WRKDIR}/${DISTNAME}/docs/history ; do \ - ${INSTALL_DATA} $$i ${DOCSDIR} ; \ + ${INSTALL_DATA} $$i ${DOCSDIR} ; \ done - for i in faq htmldocs Registry ; do \ - ${MKDIR} ${DOCSDIR}/$$i ; \ + for i in faq Registry htmldocs htmldocs/images ; do \ + ${MKDIR} ${DOCSDIR}/$$i ; \ for j in ${WRKDIR}/${DISTNAME}/docs/$$i/* ; do \ - if [ $$j != ${WRKDIR}/${DISTNAME}/docs/htmldocs/using_samba ] ; then \ - if [ $$j != ${WRKDIR}/${DISTNAME}/docs/textdocs/outdated ] ; then \ - ${INSTALL_DATA} $$j ${DOCSDIR}/$$i ;\ - fi; \ - fi; \ + if [ -f $$j ]; then \ + ${INSTALL_DATA} $$j ${DOCSDIR}/$$i ; \ + fi; \ done \ done .endif Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/distinfo,v retrieving revision 1.49 diff -u -r1.49 distinfo --- distinfo 2 Feb 2004 18:18:44 -0000 1.49 +++ distinfo 29 Feb 2004 17:23:59 -0000 @@ -1 +1 @@ -MD5 (samba-3.0.1.tar.bz2) = 2a3d494f139ab7402d8902b0e68c463f +MD5 (samba-3.0.2a.tar.bz2) = 72979a30ac450c8b0567c1ac9886884a Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/pkg-plist,v retrieving revision 1.44 diff -u -r1.44 pkg-plist --- pkg-plist 2 Feb 2004 18:18:44 -0000 1.44 +++ pkg-plist 29 Feb 2004 17:24:00 -0000 @@ -19,62 +19,62 @@ bin/tdbdump bin/testparm bin/testprns -bin/wbinfo -etc/charset/CP437.so -etc/charset/CP850.so -etc/de.msg -etc/en.msg -etc/fr.msg -etc/it.msg -etc/ja.msg -etc/lowcase.dat -etc/nl.msg -etc/pl.msg -etc/rc.d/samba.sh.sample +%%WINBIND%%bin/wbinfo +@unexec %D/etc/rc.d/samba.sh stop 2>/dev/null || true +etc/rc.d/samba.sh +@unexec if cmp -s %D/etc/smb.conf %D/etc/smb.conf.default; then rm -f %D/etc/smb.conf; fi etc/smb.conf.default -etc/tr.msg -etc/upcase.dat -etc/valid.dat -etc/vfs/audit.so -etc/vfs/cap.so -etc/vfs/default_quota.so -etc/vfs/extd_audit.so -etc/vfs/fake_perms.so -etc/vfs/netatalk.so -etc/vfs/readonly.so -etc/vfs/recycle.so -sbin/nmbd +include/libsmbclient.h +lib/samba/lowcase.dat +lib/samba/upcase.dat +lib/samba/valid.dat +lib/samba/de.msg +lib/samba/en.msg +lib/samba/fr.msg +lib/samba/it.msg +lib/samba/ja.msg +lib/samba/nl.msg +lib/samba/pl.msg +lib/samba/tr.msg +lib/samba/vfs/audit.so +lib/samba/vfs/cap.so +lib/samba/vfs/default_quota.so +lib/samba/vfs/extd_audit.so +lib/samba/vfs/fake_perms.so +lib/samba/vfs/netatalk.so +lib/samba/vfs/readonly.so +lib/samba/vfs/recycle.so +lib/samba/charset/CP437.so +lib/samba/charset/CP850.so +%%SAMMYSQL%%lib/samba/pdb/mysql.so +%%SAMPGSQL%%lib/samba/pdb/pgsql.so +%%SAMXML%%lib/samba/pdb/xml.so +lib/libsmbclient.a +lib/libsmbclient.so +lib/libsmbclient.so.0 +%%WINBIND%%lib/nss_winbind.so.1 +%%WINBIND%%lib/nss_wins.so.1 +%%WINBIND%%lib/pam_winbind.so +%%SMBPASS%%lib/pam_smbpass.so sbin/smbd +sbin/nmbd sbin/swat -sbin/winbindd +%%WINBIND%%sbin/winbindd %%PORTDOCS%%share/doc/samba/COPYING %%PORTDOCS%%share/doc/samba/Manifest %%PORTDOCS%%share/doc/samba/README %%PORTDOCS%%share/doc/samba/README.FreeBSD %%PORTDOCS%%share/doc/samba/Read-Manifest-Now -%%PORTDOCS%%share/doc/samba/Registry/FolderRedir.adm -%%PORTDOCS%%share/doc/samba/Registry/FolderRedir.reg -%%PORTDOCS%%share/doc/samba/Registry/NT4-Locking.reg -%%PORTDOCS%%share/doc/samba/Registry/NT4_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/Win-NT-2K-XP-DeleteRoamingProfile.reg -%%PORTDOCS%%share/doc/samba/Registry/Win2000_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/Win95_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/Win98_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/Win9X-CacheHandling.reg -%%PORTDOCS%%share/doc/samba/Registry/WinME_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/WinXP_PlainPassword.reg -%%PORTDOCS%%share/doc/samba/Registry/WinXP_SignOrSeal.reg -%%PORTDOCS%%share/doc/samba/Registry/WindowsTerminalServer.reg %%PORTDOCS%%share/doc/samba/Roadmap %%PORTDOCS%%share/doc/samba/THANKS %%PORTDOCS%%share/doc/samba/WHATSNEW.txt +%%PORTDOCS%%share/doc/samba/history %%PORTDOCS%%share/doc/samba/faq/FAQ-ClientApp.html %%PORTDOCS%%share/doc/samba/faq/FAQ-Install.html %%PORTDOCS%%share/doc/samba/faq/FAQ-errors.html %%PORTDOCS%%share/doc/samba/faq/FAQ-features.html %%PORTDOCS%%share/doc/samba/faq/FAQ-general.html %%PORTDOCS%%share/doc/samba/faq/samba-faq.html -%%PORTDOCS%%share/doc/samba/history %%PORTDOCS%%share/doc/samba/htmldocs/AccessControls.html %%PORTDOCS%%share/doc/samba/htmldocs/AdvancedNetworkManagement.html %%PORTDOCS%%share/doc/samba/htmldocs/Appendixes.html @@ -142,6 +142,7 @@ %%PORTDOCS%%share/doc/samba/htmldocs/smbcontrol.1.html %%PORTDOCS%%share/doc/samba/htmldocs/smbcquotas.1.html %%PORTDOCS%%share/doc/samba/htmldocs/smbd.8.html +%%PORTDOCS%%share/doc/samba/htmldocs/smbget.1.html %%PORTDOCS%%share/doc/samba/htmldocs/smbmnt.8.html %%PORTDOCS%%share/doc/samba/htmldocs/smbmount.8.html %%PORTDOCS%%share/doc/samba/htmldocs/smbpasswd.5.html @@ -155,6 +156,7 @@ %%PORTDOCS%%share/doc/samba/htmldocs/speed.html %%PORTDOCS%%share/doc/samba/htmldocs/swat.8.html %%PORTDOCS%%share/doc/samba/htmldocs/tdbbackup.8.html +%%PORTDOCS%%share/doc/samba/htmldocs/tdbdump.8.html %%PORTDOCS%%share/doc/samba/htmldocs/testparm.1.html %%PORTDOCS%%share/doc/samba/htmldocs/testprns.1.html %%PORTDOCS%%share/doc/samba/htmldocs/troubleshooting.html @@ -165,6 +167,78 @@ %%PORTDOCS%%share/doc/samba/htmldocs/wbinfo.1.html %%PORTDOCS%%share/doc/samba/htmldocs/winbind.html %%PORTDOCS%%share/doc/samba/htmldocs/winbindd.8.html +%%PORTDOCS%%share/doc/samba/htmldocs/images/10small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/11small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/12small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/13small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/14small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/1small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/2small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/3small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/4small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/5small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/6small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/7small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/8small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/9small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/a_small.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/access1.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/browsing1.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/cups1.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/cups2.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/domain.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/ethereal1.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/ethereal2.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-gid2sid.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-groups.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-sid2gid.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-sid2uid.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-store-gid2sid.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap-uid2sid.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/idmap_winbind_no_loop.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/pdftoepsonusb.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/pdftosocket.png +%%PORTDOCS%%share/doc/samba/htmldocs/images/trusts1.png +%%PORTDOCS%%share/doc/samba/Registry/FolderRedir.adm +%%PORTDOCS%%share/doc/samba/Registry/NT4-Locking.reg +%%PORTDOCS%%share/doc/samba/Registry/NT4_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/Win-2Kx-XPP-DeleteCachedProfiles.reg +%%PORTDOCS%%share/doc/samba/Registry/Win-2Kx-XPP-ForceLocalProfile.reg +%%PORTDOCS%%share/doc/samba/Registry/Win-NT-DeleteRoamingProfile.reg +%%PORTDOCS%%share/doc/samba/Registry/Win2000_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/Win95_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/Win98_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/Win9X-CacheHandling.reg +%%PORTDOCS%%share/doc/samba/Registry/WinME_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/WinXP_PlainPassword.reg +%%PORTDOCS%%share/doc/samba/Registry/WinXP_SignOrSeal.reg +%%PORTDOCS%%share/doc/samba/Registry/WindowsTerminalServer.reg +%%SMBPASS%%share/examples/samba/pam_smbpass/README +%%SMBPASS%%share/examples/samba/pam_smbpass/kdc-pdc +%%SMBPASS%%share/examples/samba/pam_smbpass/password-mature +%%SMBPASS%%share/examples/samba/pam_smbpass/password-migration +%%SMBPASS%%share/examples/samba/pam_smbpass/password-sync +share/examples/samba/pdb/Makefile +share/examples/samba/pdb/README +share/examples/samba/pdb/mysql/mysql.dump +share/examples/samba/pdb/mysql/smb.conf +share/examples/samba/pdb/pdb_test.c +share/examples/samba/pdb/sambapdb.dtd +share/examples/samba/validchars/msdos70.out +share/examples/samba/validchars/nwdos70.out +share/examples/samba/validchars/readme +share/examples/samba/validchars/validchr.c +share/examples/samba/validchars/validchr.com +share/examples/samba/tridge/README +share/examples/samba/tridge/smb.conf +share/examples/samba/tridge/smb.conf.WinNT +share/examples/samba/tridge/smb.conf.fjall +share/examples/samba/tridge/smb.conf.lapland +share/examples/samba/tridge/smb.conf.vittjokk +share/examples/samba/thoralf/smb.conf +share/examples/samba/svr4-startup/samba.server +share/examples/samba/svr4-startup/README share/examples/samba/LDAP/README share/examples/samba/LDAP/convertSambaAccount share/examples/samba/LDAP/ldapsync.pl @@ -208,7 +282,19 @@ share/examples/samba/LDAP/smbldap-tools/smbldap-usershow.pl share/examples/samba/LDAP/smbldap-tools/smbldap_conf.pm share/examples/samba/LDAP/smbldap-tools/smbldap_tools.pm -share/examples/samba/README +share/examples/samba/simple/README +share/examples/samba/simple/smb.conf +share/examples/samba/printing/prtpub.c +share/examples/samba/printing/readme.prtpub +share/examples/samba/printing/smbprint +share/examples/samba/printing/smbprint-new.sh +share/examples/samba/printing/smbprint.sysv +share/examples/samba/printer-accounting/README +share/examples/samba/printer-accounting/acct-all +share/examples/samba/printer-accounting/acct-sum +share/examples/samba/printer-accounting/hp5-redir +share/examples/samba/printer-accounting/lp-acct +share/examples/samba/printer-accounting/printcap share/examples/samba/VFS/.cvsignore share/examples/samba/VFS/Makefile.in share/examples/samba/VFS/README @@ -218,66 +304,36 @@ share/examples/samba/VFS/shadow_copy_test.c share/examples/samba/VFS/skel_opaque.c share/examples/samba/VFS/skel_transparent.c -share/examples/samba/appliance/Makefile -share/examples/samba/appliance/README -share/examples/samba/appliance/appliance.spec -share/examples/samba/appliance/build.sh -share/examples/samba/appliance/smb.conf-appliance -share/examples/samba/auth/Makefile -share/examples/samba/auth/auth_skel.c -share/examples/samba/autofs/auto.a -share/examples/samba/dce-dfs/README -share/examples/samba/dce-dfs/smb.conf -share/examples/samba/genlogon/genlogon.pl +share/examples/samba/ntlogon/README +share/examples/samba/ntlogon/ntlogon.conf +share/examples/samba/ntlogon/ntlogon.py +share/examples/samba/wins_hook/README +share/examples/samba/wins_hook/dns_update +share/examples/samba/misc/extra_smbstatus +share/examples/samba/misc/modify_samba_config.pl +share/examples/samba/misc/swat.pl +share/examples/samba/misc/wall.perl share/examples/samba/libsmbclient/Makefile share/examples/samba/libsmbclient/README share/examples/samba/libsmbclient/testacl.c share/examples/samba/libsmbclient/testsmbc.c share/examples/samba/libsmbclient/tree.c -share/examples/samba/misc/extra_smbstatus -share/examples/samba/misc/modify_samba_config.pl -share/examples/samba/misc/swat.pl -share/examples/samba/misc/wall.perl +share/examples/samba/genlogon/genlogon.pl +share/examples/samba/dce-dfs/README +share/examples/samba/dce-dfs/smb.conf +share/examples/samba/autofs/auto.a +share/examples/samba/auth/Makefile +share/examples/samba/auth/auth_skel.c +share/examples/samba/appliance/Makefile +share/examples/samba/appliance/README +share/examples/samba/appliance/appliance.spec +share/examples/samba/appliance/build.sh +share/examples/samba/appliance/smb.conf-appliance +share/examples/samba/nss/nss_winbind.c +share/examples/samba/nss/nss_winbind.h share/examples/samba/nss/wbtest.c -share/examples/samba/ntlogon/README -share/examples/samba/ntlogon/ntlogon.conf -share/examples/samba/ntlogon/ntlogon.py -share/examples/samba/pdb/Makefile -share/examples/samba/pdb/README -share/examples/samba/pdb/mysql/mysql.dump -share/examples/samba/pdb/mysql/smb.conf -share/examples/samba/pdb/pdb_test.c -share/examples/samba/pdb/sambapdb.dtd -share/examples/samba/printer-accounting/README -share/examples/samba/printer-accounting/acct-all -share/examples/samba/printer-accounting/acct-sum -share/examples/samba/printer-accounting/hp5-redir -share/examples/samba/printer-accounting/lp-acct -share/examples/samba/printer-accounting/printcap -share/examples/samba/printing/prtpub.c -share/examples/samba/printing/readme.prtpub -share/examples/samba/printing/smbprint -share/examples/samba/printing/smbprint-new.sh -share/examples/samba/printing/smbprint.sysv -share/examples/samba/simple/README -share/examples/samba/simple/smb.conf +share/examples/samba/README share/examples/samba/smb.conf.default -share/examples/samba/svr4-startup/README -share/examples/samba/svr4-startup/samba.server -share/examples/samba/thoralf/smb.conf -share/examples/samba/tridge/README -share/examples/samba/tridge/smb.conf -share/examples/samba/tridge/smb.conf.WinNT -share/examples/samba/tridge/smb.conf.fjall -share/examples/samba/tridge/smb.conf.lapland -share/examples/samba/tridge/smb.conf.vittjokk -share/examples/samba/validchars/msdos70.out -share/examples/samba/validchars/nwdos70.out -share/examples/samba/validchars/readme -share/examples/samba/validchars/validchr.c -share/examples/samba/validchars/validchr.com -share/examples/samba/wins_hook/README -share/examples/samba/wins_hook/dns_update share/swat/help/AccessControls.html share/swat/help/AdvancedNetworkManagement.html share/swat/help/Appendixes.html @@ -344,6 +400,7 @@ share/swat/help/smbcontrol.1.html share/swat/help/smbcquotas.1.html share/swat/help/smbd.8.html +share/swat/help/smbget.1.html share/swat/help/smbmnt.8.html share/swat/help/smbmount.8.html share/swat/help/smbpasswd.5.html @@ -357,6 +414,7 @@ share/swat/help/speed.html share/swat/help/swat.8.html share/swat/help/tdbbackup.8.html +share/swat/help/tdbdump.8.html share/swat/help/testparm.1.html share/swat/help/testprns.1.html share/swat/help/troubleshooting.html @@ -394,26 +452,6 @@ share/swat/lang/tr/images/status.gif share/swat/lang/tr/images/viewconfig.gif share/swat/lang/tr/include/header.html -share/swat/using_samba/appa.html -share/swat/using_samba/appb.html -share/swat/using_samba/appc.html -share/swat/using_samba/appd.html -share/swat/using_samba/appe.html -share/swat/using_samba/appf.html -share/swat/using_samba/appg.html -share/swat/using_samba/ch00.html -share/swat/using_samba/ch01.html -share/swat/using_samba/ch02.html -share/swat/using_samba/ch03.html -share/swat/using_samba/ch04.html -share/swat/using_samba/ch05.html -share/swat/using_samba/ch06.html -share/swat/using_samba/ch07.html -share/swat/using_samba/ch08.html -share/swat/using_samba/ch09.html -share/swat/using_samba/ch10.html -share/swat/using_samba/ch11.html -share/swat/using_samba/ch12.html share/swat/using_samba/figs/sam2_0101.gif share/swat/using_samba/figs/sam2_0102.gif share/swat/using_samba/figs/sam2_0103.gif @@ -553,44 +591,56 @@ share/swat/using_samba/figs/sam2_af05.gif share/swat/using_samba/figs/sam2_af06.gif share/swat/using_samba/figs/sam2_af07.gif +share/swat/using_samba/appa.html +share/swat/using_samba/appb.html +share/swat/using_samba/appc.html +share/swat/using_samba/appd.html +share/swat/using_samba/appe.html +share/swat/using_samba/appf.html +share/swat/using_samba/appg.html +share/swat/using_samba/ch00.html +share/swat/using_samba/ch01.html +share/swat/using_samba/ch02.html +share/swat/using_samba/ch03.html +share/swat/using_samba/ch04.html +share/swat/using_samba/ch05.html +share/swat/using_samba/ch06.html +share/swat/using_samba/ch07.html +share/swat/using_samba/ch08.html +share/swat/using_samba/ch09.html +share/swat/using_samba/ch10.html +share/swat/using_samba/ch11.html +share/swat/using_samba/ch12.html share/swat/using_samba/inx.html +share/swat/using_samba/toc.html share/swat/using_samba/samba2_s.gif share/swat/using_samba/samba2_xs.gif -share/swat/using_samba/toc.html -@dirrm etc/auth -@dirrm etc/charset -@dirrm etc/idmap -@dirrm etc/pdb -@dirrm etc/rpc -@dirrm etc/vfs @dirrm share/swat/using_samba/figs @dirrm share/swat/using_samba -@dirrm share/swat/include -@dirrm share/swat/images -@dirrm share/swat/help -@dirrm share/swat/lang/ja/include -@dirrm share/swat/lang/ja/images -@dirrm share/swat/lang/ja/help -@dirrm share/swat/lang/ja @dirrm share/swat/lang/tr/include @dirrm share/swat/lang/tr/images @dirrm share/swat/lang/tr/help @dirrm share/swat/lang/tr +@dirrm share/swat/lang/ja/include +@dirrm share/swat/lang/ja/images +@dirrm share/swat/lang/ja/help +@dirrm share/swat/lang/ja @dirrm share/swat/lang +@dirrm share/swat/include +@dirrm share/swat/images +@dirrm share/swat/help @dirrm share/swat -@dirrm share/examples/samba/LDAP/smbldap-tools/cgi -@dirrm share/examples/samba/LDAP/smbldap-tools/mkntpwd -@dirrm share/examples/samba/LDAP/smbldap-tools -@dirrm share/examples/samba/LDAP +%%SMBPASS%%@dirrm share/examples/samba/pam_smbpass +@dirrm share/examples/samba/wins_hook @dirrm share/examples/samba/validchars @dirrm share/examples/samba/tridge @dirrm share/examples/samba/thoralf @dirrm share/examples/samba/svr4-startup @dirrm share/examples/samba/simple @dirrm share/examples/samba/printing +@dirrm share/examples/samba/printer-accounting @dirrm share/examples/samba/pdb/mysql @dirrm share/examples/samba/pdb -@dirrm share/examples/samba/printer-accounting @dirrm share/examples/samba/ntlogon @dirrm share/examples/samba/nss @dirrm share/examples/samba/misc @@ -601,9 +651,27 @@ @dirrm share/examples/samba/auth @dirrm share/examples/samba/appliance @dirrm share/examples/samba/VFS -@dirrm share/examples/samba/wins_hook +@dirrm share/examples/samba/LDAP/smbldap-tools/mkntpwd +@dirrm share/examples/samba/LDAP/smbldap-tools/cgi +@dirrm share/examples/samba/LDAP/smbldap-tools +@dirrm share/examples/samba/LDAP @dirrm share/examples/samba +@dirrm lib/samba/vfs +@dirrm lib/samba/rpc +@dirrm lib/samba/pdb +@dirrm lib/samba/idmap +@dirrm lib/samba/charset +@dirrm lib/samba/auth +@dirrm lib/samba %%PORTDOCS%%@dirrm share/doc/samba/Registry +%%PORTDOCS%%@dirrm share/doc/samba/htmldocs/images %%PORTDOCS%%@dirrm share/doc/samba/htmldocs %%PORTDOCS%%@dirrm share/doc/samba/faq %%PORTDOCS%%@dirrm share/doc/samba +@exec mkdir -p %%SAMBA_SPOOL%% || true +@exec chmod 1777 %%SAMBA_SPOOL%% +@unexec rm -fr %%SAMBA_SPOOL%%/printing +@unexec for file in `ls %%SAMBA_SPOOL%% | grep -v '^winbindd_'`; do rm -fr %%SAMBA_SPOOL%%/$file; done +@unexec rmdir %%SAMBA_SPOOL%% 2>/dev/null || true +@exec mkdir -p %%SAMBA_LOGDIR%% || true +@unexec rmdir %%SAMBA_LOGDIR%% 2>/dev/null || true Index: files/patch-source_Makefile.in =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/files/patch-source_Makefile.in,v retrieving revision 1.1 diff -u -r1.1 patch-source_Makefile.in --- files/patch-source_Makefile.in 2 Feb 2004 18:18:44 -0000 1.1 +++ files/patch-source_Makefile.in 29 Feb 2004 17:24:00 -0000 @@ -1,11 +1,55 @@ ---- Makefile.in.orig Sat Jan 3 14:45:46 2004 -+++ Makefile.in Sat Jan 3 14:50:05 2004 -@@ -1192,7 +1192,7 @@ +--- Makefile.in.orig Fri Jan 16 18:47:52 2004 ++++ Makefile.in Sat Jan 31 11:56:26 2004 +@@ -101,6 +101,7 @@ + LIBSMBCLIENT_MAJOR=0 + LIBSMBCLIENT_MINOR=1 + ++NSS_VERSION=1 + + FLAGS1 = $(CFLAGS) @FLAGS1@ -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper -I. $(CPPFLAGS) -I$(srcdir) + FLAGS2 = +@@ -951,8 +952,8 @@ + @SONAMEFLAG@`basename $@` + + bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS) +- @echo Linking libsmbclient shared library $@ +- @$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_PICOBJS) $(LDFLAGS) $(DYNEXP) $(LIBS) \ ++ @echo Linking libsmbclient shared library $@.$(LIBSMBCLIENT_MAJOR) ++ @$(SHLD) $(LDSHFLAGS) -o $@.$(LIBSMBCLIENT_MAJOR) $(LIBSMBCLIENT_PICOBJS) $(LDFLAGS) $(DYNEXP) $(LIBS) \ + $(KRB5LIBS) $(LDAP_LIBS) \ + @SONAMEFLAG@`basename $@`.$(LIBSMBCLIENT_MAJOR) + +@@ -1035,13 +1036,13 @@ + @WINBIND_NSS@: $(WINBIND_NSS_PICOBJS) + @echo "Linking $@" + @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_PICOBJS) \ +- @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@` ++ @WINBIND_NSS_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`.$(NSS_VERSION) + + @WINBIND_WINS_NSS@: $(WINBIND_WINS_NSS_PICOBJS) + @echo "Linking $@" + @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_PICOBJS) \ + $(LDAP_LIBS) $(KRB5LIBS) -lc \ +- @SONAMEFLAG@`basename $@` ++ @SONAMEFLAG@`basename $@`.$(NSS_VERSION) + + nsswitch/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_PICOBJ) bin/.dummy + @echo "Linking $@" +@@ -1204,7 +1205,7 @@ bin/t_snprintf@EXEEXT@: lib/snprintf.c $(CC) $(FLAGS) -o $@ -DTEST_SNPRINTF lib/snprintf.c -lm -install: installbin installman installscripts installdat installswat installmodules @INSTALLCLIENT@ -+install: installbin installman installscripts installdat installswat installmodules ++install: installbin installscripts installdat installswat installmodules @INSTALLCLIENT@ install-everything: install installmodules +@@ -1256,7 +1257,7 @@ + + installclientlib: installdirs libsmbclient + @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib +- -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)${prefix}/lib ++ -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@.$(LIBSMBCLIENT_MAJOR) $(DESTDIR)${prefix}/lib + -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)${prefix}/lib + @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/include + -$(INSTALLCMD) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include Index: files/samba.sh.sample =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/files/samba.sh.sample,v retrieving revision 1.2 diff -u -r1.2 samba.sh.sample --- files/samba.sh.sample 18 Jan 1999 02:34:05 -0000 1.2 +++ files/samba.sh.sample 29 Feb 2004 17:24:00 -0000 @@ -1,22 +1,114 @@ #!/bin/sh -smbspool=/var/spool/samba -pidfiledir=/var/run -smbd=/usr/local/sbin/smbd -nmbd=/usr/local/sbin/nmbd - -# start -if [ "x$1" = "x" -o "x$1" = "xstart" ]; then - if [ -f $smbd ]; then - if [ -d $smbspool ]; then - rm -f $smbspool/* - fi - echo -n ' Samba' - $smbd -D - $nmbd -D - fi - -# stop -elif [ "x$1" = "xstop" ]; then - kill `cat $pidfiledir/smbd.pid` - kill `cat $pidfiledir/nmbd.pid` +# +# $FreeBSD$ +# + +# PROVIDE: nmbd smbd +%%WINBIND%%# PROVIDE: winbindd +# REQUIRE: NETWORKING SERVERS named %%CUPS%% +# BEFORE: DAEMON +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable samba: +# +#samba_enable="YES" +# +# or, for fine grain control +# +#nmbd_enable="YES" +#smbd_enable="YES" +%%WINBIND%%#winbindd_enable="YES" +# + +. %%RC_SUBR%% + +name=samba +rcvar=`set_rcvar` + +load_rc_config $name +# Set defaults +samba_config=${samba_config:-"%%SAMBA_CONFIG%%"} +# Config file is required +if [ ! -r ${samba_config} ]; then + warn "${samba_config} is not readable." + case $1 in + force*) : ;; + *) exit 1 ;; + esac +fi + +if checkyesno samba_enable; then + nmbd_enable=${nmbd_enable:-"YES"} + smbd_enable=${smbd_enable:-"YES"} +%%WINBIND%% winbindd_enable=${winbindd_enable:-"YES"} +%%WINBIND%% # Check, that winbind is actally configured +%%WINBIND%% if [ ! "`egrep -i '(idmap.*uid|winbind.*uid)' ${samba_config} 2>/dev/null | egrep -v [\#\;]`" ]; then +%%WINBIND%% #warn "Winbind support is not configured" +%%WINBIND%% winbindd_enable="NO" +%%WINBIND%% fi fi + +# Hack until run_rc_command() get rid of exit() +samba_stop() { + pid=$(check_pidfile ${pidfile} ${command}) + if [ -z ${pid} ]; then + echo "${name} not running? (check ${pidfile})." + return 1 + fi + echo "Stopping ${command}." + kill -${sig_stop:-TERM} ${pid} + [ $? -ne 0 ] && [ -z "$rc_force" ] && return 1 + wait_for_pids ${pid} +} + +nmbd_precmd() { + # XXX: Never delete winbindd_idmap.tdb and winbindd_cache.tdb + if [ -d "%%SAMBA_SPOOL%%" ]; then + echo "Starting SAMBA: removing stale tdbs :" + for file in connections.tdb locking.tdb messages.tdb \ + sessionid.tdb unexpected.tdb brlock.tdb \ + namelist.debug + do + rm -vf "%%SAMBA_SPOOL%%/$file" + done + fi +} + +# nmbd +name=nmbd +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/${name}" +command_args="${nmbd_flags} -D -s ${samba_config}" +required_dirs="%%SAMBA_SPOOL%%" +pidfile=%%SAMBA_RUNDIR%%/${name}.pid +start_precmd="nmbd_precmd" +stop_cmd="samba_stop" + +load_rc_config $name +run_rc_command "$1" + +# smbd +name=smbd +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/${name}" +command_args="${smbd_flags} -D -s ${samba_config}" +pidfile=%%SAMBA_RUNDIR%%/${name}.pid +start_precmd=":" +stop_cmd="samba_stop" + +load_rc_config $name +run_rc_command "$1" +%%WINBIND%% +%%WINBIND%%# winbindd +%%WINBIND%%name=winbindd +%%WINBIND%%rcvar=`set_rcvar` +%%WINBIND%%command="%%PREFIX%%/sbin/${name}" +%%WINBIND%%command_args="${winbindd_flags} -s ${samba_config}" +%%WINBIND%%required_dirs="%%SAMBA_SPOOL%%" +%%WINBIND%%pidfile=%%SAMBA_RUNDIR%%/${name}.pid +%%WINBIND%%start_precmd=":" +%%WINBIND%%stop_cmd="samba_stop" +%%WINBIND%% +%%WINBIND%%load_rc_config $name +%%WINBIND%%run_rc_command "$1" Index: files/smb.conf.default =================================================================== RCS file: /home/ncvs/ports/net/samba-devel/files/smb.conf.default,v retrieving revision 1.11 diff -u -r1.11 smb.conf.default --- files/smb.conf.default 24 Mar 2003 19:02:35 -0000 1.11 +++ files/smb.conf.default 29 Feb 2004 17:24:00 -0000 @@ -3,13 +3,16 @@ # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # +# For a step by step guide on installation, configuration and usage of Samba, +# read the Samba HOWTO Collection. +# # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" -# to check that you have not many any basic syntactic errors. +# to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] @@ -20,6 +23,31 @@ # server string is the equivalent of the NT Description field server string = Samba Server +# Security mode. Defines in which mode Samba will operate. Possible +# values are share, user, server, domain and ads. Most people will want +# user level security. See the HOWTO Collection for details. + security = user + +# Use password server option only with security = server +# The argument list may include: +# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] +# or to auto-locate the domain controller/s +# password server = * +; password server = <NT-Server-Name> + +# You may wish to use password encryption. Please read +# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. +# Do not enable this option unless you have read those documents +; encrypt passwords = yes +# Use the realm option only with security = ads +# Specifies the Active Directory realm the host is part of +; realm = MY_REALM + +# Backend to store user information in. New installations should +# use either tdbsam or ldapsam. smbpasswd is available for backwards +# compatibility. tdbsam requires no further configuration. +; passdb backend = tdbsam + # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and @@ -41,7 +69,7 @@ # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: -# bsd, sysv, plp, lprng, aix, hpux, qnx +# cups, bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest account, you must add this to /etc/passwd @@ -55,24 +83,17 @@ # Put a capping on the size of the log files (in Kb). max log size = 50 -# Security mode. Most people will want user level security. See -# security_level.txt for details. - security = user -# Use password server option only with security = server -; password server = <NT-Server-Name> - -# You may wish to use password encryption. Please read -# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. -# Do not enable this option unless you have read those documents -; encrypt passwords = yes # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name -# of the machine that is connecting +# of the machine that is connecting. +# Note: Consider carefully the location in the configuration file of +# this line. The included file is read at that point. ; include = %%SAMBA_CONFDIR%%/smb.conf.%m # Most people will find that this option gives better performance. -# See speed.txt and the manual pages for details +# See the chapter 'Samba performance issues' in the Samba HOWTO Collection +# and the manual pages for details. socket options = TCP_NODELAY # Configure Samba to use multiple interfaces @@ -132,8 +153,7 @@ ; wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names -# via DNS nslookups. The built-in default for versions 1.9.17 is yes, -# this has been changed in version 1.9.18 to no. +# via DNS nslookups. The default is NO. dns proxy = no # charset settings @@ -141,19 +161,27 @@ ; unix charset = ASCII ; dos charset = ASCII -# +# These scripts are used on a domain controller or stand-alone +# machine to add or delete corresponding unix accounts +; add user script = /usr/sbin/useradd %u +; add group script = /usr/sbin/groupadd %g +; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u +; delete user script = /usr/sbin/userdel %u +; delete user from group script = /usr/sbin/deluser %u %g +; delete group script = /usr/sbin/groupdel %g + #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no - writeable = yes + writable = yes # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes -; writeable = no +; writable = no ; share modes = no @@ -173,7 +201,7 @@ browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no - writeable = no + writable = no printable = yes # This one is useful for people to share files @@ -189,7 +217,7 @@ ; comment = Public Stuff ; path = /home/samba ; public = yes -; writeable = yes +; writable = yes ; printable = no ; write list = @staff @@ -204,7 +232,7 @@ ; path = /homes/fred ; printer = freds_printer ; public = no -; writeable = no +; writable = no ; printable = yes # A private directory, usable only by fred. Note that fred requires write @@ -214,7 +242,7 @@ ; path = /usr/somewhere/private ; valid users = fred ; public = no -; writeable = yes +; writable = yes ; printable = no # a service which has a different directory for each machine that connects @@ -225,23 +253,23 @@ ; comment = PC Directories ; path = /usr/pc/%m ; public = no -; writeable = yes +; writable = yes # A publicly accessible directory, read/write to all users. Note that all files # created in the directory by users will be owned by the default user, so # any user with access can delete any other user's files. Obviously this -# directory must be writeable by the default user. Another user could of course +# directory must be writable by the default user. Another user could of course # be specified, in which case all files would be owned by that user instead. ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes -; writeable = yes +; writable = yes ; printable = no # The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this -# setup, the directory should be writeable by both users and should have the +# setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] @@ -249,7 +277,7 @@ ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no -; writeable = yes +; writable = yes ; printable = no ; create mask = 0765 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402291844.i1TIiHp6047754>