1999-05-09 03:26:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 1999/05/09 07:26:14 brad Exp $
|
1999-03-19 04:06:04 -05:00
|
|
|
|
|
|
|
DISTNAME= samba-2.0.3
|
1997-11-16 15:06:44 -05:00
|
|
|
CATEGORIES= net
|
1999-04-06 13:50:40 -04:00
|
|
|
MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \
|
|
|
|
http://us1.samba.org/samba/ftp/ \
|
1999-03-19 04:06:04 -05:00
|
|
|
ftp://ca.samba.org/pub/samba/ \
|
|
|
|
ftp://ftp.uni-trier.de/pub/unix/network/samba/ \
|
|
|
|
ftp://ring.asahi-net.or.jp/pub/net/samba/
|
1997-11-16 15:06:44 -05:00
|
|
|
|
1999-03-19 04:06:04 -05:00
|
|
|
MAINTAINER= ports@openbsd.org
|
1997-11-16 15:06:44 -05:00
|
|
|
|
1998-05-05 22:21:19 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/source
|
1997-11-16 15:06:44 -05:00
|
|
|
|
1998-08-11 09:32:35 -04:00
|
|
|
SAMPLE_CONFIG= ${PREFIX}/lib/samba/smb.conf.sample
|
1998-05-05 22:21:19 -04:00
|
|
|
SAMBA_SPOOL= /var/spool/samba
|
|
|
|
SAMBA_LOGDIR= /var/log
|
1997-11-16 17:01:36 -05:00
|
|
|
|
1999-03-19 04:06:04 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/samba \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-privatedir=/etc/samba \
|
|
|
|
--with-lockdir=/var/spool/lock \
|
|
|
|
--with-swatdir=/usr/local/swat
|
|
|
|
|
|
|
|
# Warning: these aditional options have not been tested.
|
|
|
|
|
|
|
|
# uncomment these to add SSL support, note that this is only useful
|
|
|
|
# for connections with other samba clients, Windows machines do not
|
|
|
|
# support SSL encrypted SMB
|
|
|
|
#CONFIGURE_ARGS+= --with-ssl
|
|
|
|
#CONFIGURE_ARGS+= --with-sslinc=/usr/include/ssl
|
|
|
|
|
|
|
|
# uncomment this if you want to build the smbwrapper library
|
|
|
|
#CONFIGURE_ARGS+= --with-smbwrapper
|
|
|
|
|
|
|
|
# uncomment this if you want to include support for AFS
|
|
|
|
#CONFIGURE_ARGS+= --with-afs
|
|
|
|
|
|
|
|
# uncomment this if you want to include support for DFS
|
|
|
|
#CONFIGURE_ARGS+= --with-dfs
|
|
|
|
|
|
|
|
# uncomment this if you want support for Kerberos IV
|
|
|
|
#CONFIGURE_ARGS+= --with-krb4=/etc/kerberosIV
|
|
|
|
|
|
|
|
# uncomment this if you want support for Kerberos 5
|
|
|
|
#CONFIGURE_ARGS+= --with-krb5=base-dir
|
|
|
|
|
|
|
|
# uncomment this if you want LDAP support
|
|
|
|
#CONFIGURE_ARGS+= --with-ldap
|
|
|
|
|
|
|
|
# uncomment this if you want NISPLUS password database support
|
|
|
|
#CONFIGURE_ARGS+= --with-nisplus
|
|
|
|
|
|
|
|
# uncomment this if you want NISPLUS_HOME support
|
|
|
|
#CONFIGURE_ARGS+= --with-nisplus-home
|
|
|
|
|
|
|
|
MAN1= make_smbcodepage.1 nmblookup.1 smbclient.1 smbrun.1 \
|
|
|
|
smbstatus.1 smbtar.1 testparm.1 testprns.1
|
|
|
|
MAN5= lmhosts.5 smb.conf.5 smbpasswd.5
|
|
|
|
MAN7= samba.7
|
|
|
|
MAN8= nmbd.8 smbd.8 smbmnt.8 smbmount.8 smbpasswd.8 smbumount.8 \
|
|
|
|
swat.8
|
|
|
|
|
|
|
|
SAMBA_DOCS=${WRKDIR}/${DISTNAME}/docs/THANKS \
|
1998-05-05 22:21:19 -04:00
|
|
|
${WRKDIR}/${DISTNAME}/docs/history \
|
|
|
|
${WRKDIR}/${DISTNAME}/docs/announce \
|
1998-03-14 17:05:22 -05:00
|
|
|
|
|
|
|
post-install:
|
1998-05-05 22:21:19 -04:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/samba
|
1999-03-19 04:06:04 -05:00
|
|
|
${CP} -r ${WRKDIR}/${DISTNAME}/examples/* \
|
|
|
|
${PREFIX}/share/examples/samba
|
1998-05-05 22:21:19 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/samba/faq
|
1999-03-19 04:06:04 -05:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/samba/textdocs
|
1998-05-05 22:21:19 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba
|
1999-03-19 04:06:04 -05:00
|
|
|
for i in ${SAMBA_DOCS} ${WRKDIR}/${DISTNAME}/docs/*.reg \
|
|
|
|
${WRKDIR}/${DISTNAME}/README ; do \
|
1998-05-05 22:21:19 -04:00
|
|
|
${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
|
1999-03-19 04:06:04 -05:00
|
|
|
for i in ${WRKDIR}/${DISTNAME}/docs/textdocs/* ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs ;\
|
|
|
|
done
|
1998-05-05 22:21:19 -04:00
|
|
|
.endif
|
1999-03-19 04:06:04 -05:00
|
|
|
@test -d ${SAMBA_SPOOL} \
|
|
|
|
|| ${MKDIR} ${SAMBA_SPOOL} && chmod 1777 ${SAMBA_SPOOL}
|
1998-05-05 22:21:19 -04:00
|
|
|
@if [ ! -f ${SAMPLE_CONFIG} ]; then \
|
1999-03-19 04:06:04 -05:00
|
|
|
${SED} -e 's:/usr/spool/samba/:${SAMBA_SPOOL}:g' \
|
|
|
|
-e 's:/usr/local/samba/var/log:${SAMBA_LOGDIR}/smbd:g'\
|
|
|
|
${WRKDIR}/${DISTNAME}/examples/smb.conf.default \
|
1998-05-05 22:21:19 -04:00
|
|
|
> ${SAMPLE_CONFIG} ; \
|
1998-03-14 17:05:22 -05:00
|
|
|
fi
|
1999-03-19 04:06:04 -05:00
|
|
|
${INSTALL_SCRIPT} \
|
|
|
|
${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh \
|
|
|
|
${PREFIX}/bin
|
|
|
|
if [ ! -d /etc/samba ] ; then \
|
|
|
|
${MKDIR} /etc/samba; \
|
|
|
|
chown root.wheel /etc/samba ; \
|
1998-05-05 22:21:19 -04:00
|
|
|
fi
|
1999-03-19 04:06:04 -05:00
|
|
|
if [ ! -f /etc/samba/smbpasswd ] ; then \
|
|
|
|
${CAT} /etc/passwd | ${PREFIX}/bin/mksmbpasswd.sh \
|
|
|
|
> /etc/samba/smbpasswd ; \
|
1998-05-05 22:21:19 -04:00
|
|
|
chmod 600 /etc/samba/smbpasswd ; \
|
|
|
|
fi
|
1998-08-11 09:32:35 -04:00
|
|
|
chown root.bin ${PREFIX}/bin/smbpasswd
|
1998-08-04 22:36:36 -04:00
|
|
|
chmod 111 ${PREFIX}/bin/smbpasswd
|
1998-05-05 22:21:19 -04:00
|
|
|
more ${FILESDIR}/README.OpenBSD
|
1998-03-14 17:05:22 -05:00
|
|
|
|
1997-11-16 15:06:44 -05:00
|
|
|
.include <bsd.port.mk>
|
1999-03-19 04:06:04 -05:00
|
|
|
|