2001-09-01 16:13:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2001/09/01 20:13:28 brad Exp $
|
2001-04-10 07:33:46 -04:00
|
|
|
|
|
|
|
COMMENT= "SMB and CIFS client and server for UNIX"
|
1999-03-19 04:06:04 -05:00
|
|
|
|
2001-08-29 09:26:15 -04:00
|
|
|
DISTNAME= samba-2.2.1a
|
1997-11-16 15:06:44 -05:00
|
|
|
CATEGORIES= net
|
2001-09-01 16:13:28 -04:00
|
|
|
NEED_VERSION= 1.435
|
2000-03-23 02:56:32 -05:00
|
|
|
|
2000-07-21 20:58:28 -04:00
|
|
|
HOMEPAGE= http://www.samba.org/
|
1997-11-16 15:06:44 -05:00
|
|
|
|
2001-05-15 20:59:47 -04:00
|
|
|
MAINTAINER= Daniel Hartmeier <daniel@benzedrine.cx>
|
1997-11-16 17:01:36 -05:00
|
|
|
|
2000-03-23 02:56:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2001-05-15 20:59:47 -04:00
|
|
|
MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \
|
|
|
|
http://us1.samba.org/samba/ftp/ \
|
|
|
|
ftp://ca.samba.org/pub/samba/ \
|
|
|
|
ftp://ftp.uni-trier.de/pub/unix/network/samba/ \
|
2001-07-13 07:23:37 -04:00
|
|
|
ftp://ring.asahi-net.or.jp/pub/net/samba/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.samba.org/pub/samba/old-versions/
|
2001-05-15 20:59:47 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS+= prefix="${WRKINST}${PREFIX}" \
|
|
|
|
BASEDIR="${WRKINST}${PREFIX}" \
|
|
|
|
LIBDIR="${WRKINST}${PREFIX}/lib/samba" \
|
|
|
|
SWATDIR="${WRKINST}${PREFIX}/share/swat" \
|
|
|
|
SBINDIR="${WRKINST}${PREFIX}/libexec"
|
|
|
|
|
1999-03-19 04:06:04 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
2001-09-01 16:13:28 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
1999-12-29 02:19:38 -05:00
|
|
|
CONFIGURE_ARGS= --libdir="${PREFIX}/lib/samba" \
|
|
|
|
--localstatedir="/var" \
|
2001-05-15 20:59:47 -04:00
|
|
|
--sbindir="${PREFIX}/libexec" \
|
|
|
|
--with-configdir="${SYSCONFDIR}/samba" \
|
1999-12-29 02:19:38 -05:00
|
|
|
--with-lockdir="/var/spool/lock" \
|
2001-05-15 20:59:47 -04:00
|
|
|
--with-privatedir="${SYSCONFDIR}/samba" \
|
|
|
|
--with-swatdir="${PREFIX}/share/swat" \
|
|
|
|
--with-ssl \
|
|
|
|
--with-sslinc=/usr/include/ssl \
|
|
|
|
--with-ssllib=/usr/lib
|
2000-03-23 13:02:58 -05:00
|
|
|
|
1999-03-19 04:06:04 -05:00
|
|
|
# Warning: these aditional options have not been tested.
|
2001-05-15 20:59:47 -04:00
|
|
|
#CONFIGURE_ARGS+= --with-afs
|
|
|
|
#CONFIGURE_ARGS+= --with-dfs
|
|
|
|
#CONFIGURE_ARGS+= --with-krb4=/etc/kerberosIV
|
|
|
|
#CONFIGURE_ARGS+= --with-krb5=base-dir
|
1999-03-19 04:06:04 -05:00
|
|
|
|
2001-05-15 20:59:47 -04:00
|
|
|
MAKE_FLAGS= PASSWD_PROGRAM="/usr/bin/passwd"
|
1999-03-19 04:06:04 -05:00
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}/source
|
1999-12-29 02:19:38 -05:00
|
|
|
|
|
|
|
SAMBA_SPOOL= /var/spool/samba
|
|
|
|
SAMBA_LOGDIR= /var/log
|
|
|
|
|
|
|
|
SAMBA_DOCS=${WRKSRC}/../README \
|
|
|
|
${WRKSRC}/../docs/THANKS \
|
|
|
|
${WRKSRC}/../docs/history \
|
|
|
|
${WRKSRC}/../docs/announce \
|
|
|
|
${WRKSRC}/../docs/*.reg
|
2001-04-10 07:33:46 -04:00
|
|
|
SAMPLE_CONFIG= ${PREFIX}/share/examples/samba/smb.conf.default
|
1998-03-14 17:05:22 -05:00
|
|
|
|
|
|
|
post-install:
|
1999-12-29 02:19:38 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/faq
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/textdocs
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/samba
|
|
|
|
@cp -r ${WRKSRC}/../examples/* ${PREFIX}/share/examples/samba
|
|
|
|
@chown -R root.bin ${PREFIX}/share/examples/samba
|
1998-05-05 22:21:19 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba
|
1999-12-29 02:19:38 -05:00
|
|
|
@for i in ${SAMBA_DOCS}; do \
|
1999-05-30 19:02:58 -04:00
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \
|
1998-05-05 22:21:19 -04:00
|
|
|
done
|
1999-12-29 02:19:38 -05:00
|
|
|
@for i in ${WRKSRC}/../docs/faq/* ; do \
|
1999-05-30 19:02:58 -04:00
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq ; \
|
1998-05-05 22:21:19 -04:00
|
|
|
done
|
1999-12-29 02:19:38 -05:00
|
|
|
@for i in ${WRKSRC}/../docs/textdocs/* ; do \
|
2001-08-29 09:26:15 -04:00
|
|
|
if [ -f $$i ]; then \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs ;\
|
|
|
|
fi \
|
1999-03-19 04:06:04 -05:00
|
|
|
done
|
2001-05-18 20:10:03 -04:00
|
|
|
@sed -e 's:/usr/spool/samba:${SAMBA_SPOOL}:g' \
|
1999-05-30 19:02:58 -04:00
|
|
|
-e 's:/usr/local/samba/var/log:${SAMBA_LOGDIR}/smbd:g' \
|
2000-03-23 03:00:40 -05:00
|
|
|
${WRKSRC}/../examples/smb.conf.default > ${SAMPLE_CONFIG}
|
1999-12-29 02:19:38 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin
|
2001-08-29 09:26:15 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/script/convert_smbpasswd ${PREFIX}/bin
|
1999-12-29 02:19:38 -05:00
|
|
|
@chown root.bin ${PREFIX}/bin/smbpasswd
|
|
|
|
@chmod 111 ${PREFIX}/bin/smbpasswd
|
1998-03-14 17:05:22 -05:00
|
|
|
|
1997-11-16 15:06:44 -05:00
|
|
|
.include <bsd.port.mk>
|