diff options
author | bouyer <bouyer@pkgsrc.org> | 1999-02-18 11:50:06 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 1999-02-18 11:50:06 +0000 |
commit | c5e74d26829382749279ea1c7dbb7234470d9360 (patch) | |
tree | 960b01c78ded863202e28031db41298b600684a9 /net/samba/Makefile | |
parent | 49f35d310b0cc54774341ca3a6607296887d04ae (diff) | |
download | pkgsrc-c5e74d26829382749279ea1c7dbb7234470d9360.tar.gz |
Samba 1.9.18 is dead, upgrade to samba 2.0.2.
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r-- | net/samba/Makefile | 76 |
1 files changed, 44 insertions, 32 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index 9a3fc9179c9..a2a5b6e6f82 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -1,69 +1,81 @@ -# $NetBSD: Makefile,v 1.19 1999/01/29 10:39:18 bouyer Exp $ -# FreeBSD Id: Makefile,v 1.1.1.1 1997/10/23 15:17:43 max Exp -# +# $NetBSD: Makefile,v 1.20 1999/02/18 11:50:06 bouyer Exp $ -DISTNAME= samba-1.9.18p10 +DISTNAME= samba-2.0.2 CATEGORIES= net -MASTER_SITES= ftp://samba.anu.edu.au/pub/samba/ +MASTER_SITES= ftp://ftp.samba.org/pub/samba/ -MAINTAINER= tsarna@netbsd.org -HOMEPAGE= http://samba.anu.edu.au/samba/samba.html +MAINTAINER= bouyer@netbsd.org +HOMEPAGE= http://www.samba.org/ -CONFLICTS= samba-1.9.18p8 samba-2.* +CONFLICTS= samba-1.* samba-2.0.0beta* samba-2.0.0 WRKSRC= ${WRKDIR}/${DISTNAME}/source +GNU_CONFIGURE= yes .include "../../mk/bsd.prefs.mk" STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample -SAMPLE_CONFIG= ${PREFIX}/etc/smb.conf.sample +SAMPLE_CONFIG= ${PREFIX}/share/examples/smb.conf.sample SAMBA_LOGDIR= /var/log SAMBA_LOCKDIR= /var/run/samba SAMBA_ETCDIR?= /etc/samba SAMBA_PRIVATE?= ${SAMBA_ETCDIR}/private -MAKE_ENV+= ETCDIR=${SAMBA_ETCDIR} PRIVDIR=${SAMBA_PRIVATE} -MAKE_ENV+= LOGDIR=${SAMBA_LOGDIR} LOCKDIR=${SAMBA_LOCKDIR} +MAKE_ENV+= ETCDIR=${SAMBA_ETCDIR} +MAKE_ENV+= LOGDIR=${SAMBA_LOGDIR} + +CONFIGURE_ARGS+= --with-swatdir=${PREFIX}/share/swat \ + --with-lockdir=${SAMBA_LOCKDIR} \ + --with-privatedir=${SAMBA_PRIVATE} PLIST_SRC= ${WRKDIR}/.PLIST-src post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/samba/faq - for i in ${WRKDIR}/${DISTNAME}/docs/*.txt ${WRKDIR}/${DISTNAME}/docs/README* ; do \ + ${MKDIR} ${PREFIX}/share/doc/samba/textdocs + for i in ${WRKDIR}/${DISTNAME}/docs/NT4_PlainPassword.reg \ + ${WRKDIR}/${DISTNAME}/docs/Win95_PlainPassword.reg \ + ${WRKDIR}/${DISTNAME}/docs/THANKS ; do \ ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba; \ done for i in ${WRKDIR}/${DISTNAME}/docs/faq/* ; do \ ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq; \ done + for i in ${WRKDIR}/${DISTNAME}/docs/textdocs/* ; do \ + ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs; \ + done .endif - ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ - ${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \ - ${ECHO} 'smbd=${PREFIX}/sbin/smbd' >> ${STARTUP_SCRIPT}; \ - ${ECHO} 'nmbd=${PREFIX}/sbin/nmbd' >> ${STARTUP_SCRIPT}; \ - ${ECHO} 'if [ -f $$smbd ]; then' >> ${STARTUP_SCRIPT}; \ - ${ECHO} " ${ECHO} -n ' Samba'" >> ${STARTUP_SCRIPT}; \ - ${ECHO} ' $$smbd -D' >> ${STARTUP_SCRIPT}; \ - ${ECHO} ' $$nmbd -D' >> ${STARTUP_SCRIPT}; \ - ${ECHO} "fi" >> ${STARTUP_SCRIPT}; \ - chmod 755 ${STARTUP_SCRIPT}; \ + @${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ + ${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \ + ${ECHO} 'smbd=${PREFIX}/sbin/smbd' >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'nmbd=${PREFIX}/sbin/nmbd' >> ${STARTUP_SCRIPT}; \ + ${ECHO} 'if [ -f $$smbd ]; then' >> ${STARTUP_SCRIPT}; \ + ${ECHO} " ${ECHO} -n ' Samba'" >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' $$smbd -D' >> ${STARTUP_SCRIPT}; \ + ${ECHO} ' $$nmbd -D' >> ${STARTUP_SCRIPT}; \ + ${ECHO} "fi" >> ${STARTUP_SCRIPT}; \ + chmod 755 ${STARTUP_SCRIPT}; \ chown bin:bin ${STARTUP_SCRIPT}; - @if [ ! -f ${SAMPLE_CONFIG} ]; then \ - ${SED} -e 's:__LOGDIR__:${SAMBA_LOGDIR}:g' \ - -e 's:__SAMBA_LOCKDIR__:${SAMBA_LOCKDIR}:g' \ - ${FILESDIR}/smb.conf.sample \ - > ${SAMPLE_CONFIG} ; \ + @if [ ! -f ${SAMPLE_CONFIG} ]; then \ + ${SED} -e 's:__LOGDIR__:${SAMBA_LOGDIR}:g' \ + -e 's:__ETCDIR__:${SAMBA_ETCDIR}:g' \ + -e 's:__PREFIX__:${PREFIX}:g' \ + ${FILESDIR}/smb.conf.sample \ + > ${SAMPLE_CONFIG} ; \ fi - ${INSTALL_SCRIPT} ${WRKSRC}/mksmbpasswd.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin if [ ! -d ${SAMBA_PRIVATE} ] ; then \ ${MKDIR} ${SAMBA_PRIVATE} ; \ chown root:wheel ${SAMBA_PRIVATE} ; \ chmod 700 ${SAMBA_PRIVATE} ; \ fi - if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \ - ${CAT} /etc/passwd | ${PREFIX}/bin/mksmbpasswd.sh > ${SAMBA_PRIVATE}/smbpasswd ; \ - chmod 600 ${SAMBA_PRIVATE}/smbpasswd ; \ + if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \ + ${CAT} /etc/passwd | ${PREFIX}/bin/mksmbpasswd.sh \ + > ${SAMBA_PRIVATE}/smbpasswd ; \ + chmod 600 ${SAMBA_PRIVATE}/smbpasswd ; \ fi - ${SED} -e 's:__SAMBA_PRIVATE__:${SAMBA_PRIVATE}:g' ${PKGDIR}/PLIST > ${PLIST_SRC} + ${SED} -e 's:__SAMBA_PRIVATE__:${SAMBA_PRIVATE}:g' ${PKGDIR}/PLIST \ + > ${PLIST_SRC} .include "../../mk/bsd.pkg.mk" |