1995-02-11 18:28:43 +00:00
|
|
|
# New ports collection makefile for: samba
|
1999-07-24 00:53:52 +00:00
|
|
|
# Version required: 2.0.5a
|
1995-02-11 18:28:43 +00:00
|
|
|
# Date created: 11th Feb 1995
|
|
|
|
# Whom: gpalmer
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1995-02-11 18:28:43 +00:00
|
|
|
#
|
|
|
|
|
1999-11-17 15:52:12 +00:00
|
|
|
DISTNAME= samba-2.0.6
|
|
|
|
#PKGNAME= samba-2.0.5
|
1997-10-23 14:38:55 +00:00
|
|
|
CATEGORIES= net
|
1999-02-10 00:26:02 +00:00
|
|
|
MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \
|
|
|
|
ftp://ring.asahi-net.or.jp/pub/net/samba/ \
|
|
|
|
ftp://samba.anu.edu.au/pub/samba/ \
|
|
|
|
ftp://de.samba.org/pub/mirror/samba/ \
|
|
|
|
ftp://se.samba.org/pub/samba/ \
|
1999-02-09 15:25:01 +00:00
|
|
|
ftp://ftp.sunet.se/pub/unix/utilities/samba/
|
1995-04-15 05:42:12 +00:00
|
|
|
|
1999-01-18 02:34:06 +00:00
|
|
|
MAINTAINER= hosokawa@jp.FreeBSD.org
|
1995-02-11 18:28:43 +00:00
|
|
|
|
1999-01-12 18:25:32 +00:00
|
|
|
Y2K= http://us1.samba.org/samba/docs/sambay2k.html
|
|
|
|
|
1999-01-18 02:34:06 +00:00
|
|
|
# directories
|
|
|
|
VARDIR= /var
|
|
|
|
SAMBA_SPOOL= ${VARDIR}/spool/samba
|
|
|
|
SAMBA_LOGDIR= ${VARDIR}/log
|
1998-01-09 04:46:01 +00:00
|
|
|
SAMBA_PRIVATE= ${PREFIX}/private
|
1999-01-18 02:34:06 +00:00
|
|
|
SAMBA_CONFDIR= ${PREFIX}/etc
|
|
|
|
# sample files
|
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample
|
|
|
|
SAMPLE_CONFIG= ${SAMBA_CONFDIR}/smb.conf.default
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1999-12-24 18:39:48 +00:00
|
|
|
CONFIGURE_ARGS= --libdir=${SAMBA_CONFDIR} \
|
1999-02-09 15:25:01 +00:00
|
|
|
--localstatedir=${VARDIR} --with-swatdir=${PREFIX}/share/swat \
|
1999-07-12 08:44:04 +00:00
|
|
|
--with-lockdir=${VARDIR}/spool/lock --with-privatedir=${SAMBA_PRIVATE}
|
1999-02-09 15:25:01 +00:00
|
|
|
|
1999-06-29 05:44:21 +00:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
|
|
|
CONFIGURE_ARGS+=--with-krb5=${KRB5_HOME}
|
|
|
|
.endif
|
|
|
|
|
1999-01-18 02:34:06 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/source
|
1998-01-09 04:46:01 +00:00
|
|
|
|
1999-01-18 02:34:06 +00:00
|
|
|
MAN1= nmblookup.1 smbstatus.1 smbclient.1 smbrun.1 smbtar.1 \
|
1999-06-04 01:44:54 +00:00
|
|
|
testparm.1 testprns.1 make_smbcodepage.1 smbsh.1
|
1999-01-18 02:34:06 +00:00
|
|
|
MAN5= smb.conf.5 smbpasswd.5 lmhosts.5
|
|
|
|
MAN7= samba.7
|
|
|
|
MAN8= smbd.8 nmbd.8 smbpasswd.8 swat.8 \
|
|
|
|
smbmount.8 smbumount.8 smbmnt.8
|
1997-10-23 14:13:33 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-01-09 04:46:01 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/samba
|
|
|
|
${CP} -rp ${WRKDIR}/${DISTNAME}/examples/* ${PREFIX}/share/examples/samba
|
1997-10-23 14:13:33 +00:00
|
|
|
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ; \
|
1998-01-09 04:46:01 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/samba.sh.sample \
|
|
|
|
${STARTUP_SCRIPT} ; \
|
1997-10-23 14:13:33 +00:00
|
|
|
fi
|
1999-08-22 19:01:07 +00:00
|
|
|
@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL}
|
1997-10-23 14:13:33 +00:00
|
|
|
@if [ ! -f ${SAMPLE_CONFIG} ]; then \
|
1999-01-18 02:34:06 +00:00
|
|
|
${SED} -e 's!%%SAMBA_SPOOL%%!${SAMBA_SPOOL}!' \
|
|
|
|
-e 's!%%SAMBA_LOGDIR%%!${SAMBA_LOGDIR}!' \
|
|
|
|
-e 's!%%SAMBA_CONFDIR%%!${SAMBA_CONFDIR}!' \
|
1998-01-09 04:46:01 +00:00
|
|
|
${FILESDIR}/smb.conf.default \
|
1997-10-23 14:13:33 +00:00
|
|
|
> ${SAMPLE_CONFIG} ; \
|
|
|
|
fi
|
1999-01-18 02:34:06 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd
|
1998-01-09 04:46:01 +00:00
|
|
|
if [ ! -d ${SAMBA_PRIVATE} ] ; then \
|
|
|
|
${MKDIR} ${SAMBA_PRIVATE} ; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHOWN} root.wheel ${SAMBA_PRIVATE} ; \
|
1998-01-09 04:46:01 +00:00
|
|
|
fi
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 700 ${SAMBA_PRIVATE}
|
1998-01-09 04:46:01 +00:00
|
|
|
if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \
|
1999-01-18 02:34:06 +00:00
|
|
|
${CAT} /etc/passwd | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \
|
1998-01-09 04:46:01 +00:00
|
|
|
fi
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 500 ${SAMBA_PRIVATE}
|
|
|
|
${CHOWN} root.wheel ${PREFIX}/bin/smbpasswd
|
|
|
|
${CHMOD} 111 ${PREFIX}/bin/smbpasswd
|
1995-10-06 03:18:41 +00:00
|
|
|
|
1999-01-18 02:34:06 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/samba
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${PREFIX}/share/doc/samba
|
|
|
|
for i in ${WRKDIR}/${DISTNAME}/README \
|
|
|
|
${WRKDIR}/${DISTNAME}/COPYING \
|
|
|
|
${WRKDIR}/${DISTNAME}/Manifest \
|
1999-02-09 14:00:25 +00:00
|
|
|
${WRKDIR}/${DISTNAME}/Read-Manifest-Now \
|
|
|
|
${WRKDIR}/${DISTNAME}/Roadmap \
|
|
|
|
${WRKDIR}/${DISTNAME}/WHATSNEW.txt \
|
1999-01-18 02:34:06 +00:00
|
|
|
${WRKDIR}/${DISTNAME}/docs/*.reg \
|
|
|
|
${WRKDIR}/${DISTNAME}/docs/THANKS \
|
|
|
|
${WRKDIR}/${DISTNAME}/docs/announce \
|
1999-02-09 14:00:25 +00:00
|
|
|
${WRKDIR}/${DISTNAME}/docs/history ; do \
|
1999-01-18 02:34:06 +00:00
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \
|
|
|
|
done
|
1999-02-09 14:00:25 +00:00
|
|
|
for i in faq htmldocs manpages textdocs yodldocs ; do \
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/samba/$$i ; \
|
|
|
|
for j in ${WRKDIR}/${DISTNAME}/docs/$$i/* ; do \
|
|
|
|
${INSTALL_DATA} $$j ${PREFIX}/share/doc/samba/$$i ;\
|
|
|
|
done \
|
1999-01-18 02:34:06 +00:00
|
|
|
done
|
1999-02-09 14:00:25 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/samba
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/swat/README ${PREFIX}/share/doc/samba/README.swat
|
1999-01-18 02:34:06 +00:00
|
|
|
.endif
|
|
|
|
|
1995-02-11 18:28:43 +00:00
|
|
|
.include <bsd.port.mk>
|