- change MASTER_SITES to ${MASTER_SITE_BACKUP} so this is retreivable again

- MAINTAINER should only be an e-mail address
- remove deprecated variables
- cleanup Makefile
This commit is contained in:
brad 1999-12-29 07:19:38 +00:00
parent 68ce1c393a
commit aaca0c7a2b

View File

@ -1,28 +1,18 @@
# $OpenBSD: Makefile,v 1.22 1999/11/12 19:12:15 turan Exp $ # $OpenBSD: Makefile,v 1.23 1999/12/29 07:19:38 brad Exp $
DISTNAME= samba-2.0.5a DISTNAME= samba-2.0.5a
CATEGORIES= net CATEGORIES= net
MASTER_SITES= ftp://ftp.samba.org/pub/samba/ \ MASTER_SITES= ${MASTER_SITE_BACKUP}
http://us1.samba.org/samba/ftp/ \
ftp://ca.samba.org/pub/samba/ \
ftp://ftp.uni-trier.de/pub/unix/network/samba/ \
ftp://ring.asahi-net.or.jp/pub/net/samba/
MAINTAINER= Peter Galbavy <Peter.Galbavy@knowledge.com> MAINTAINER= Peter.Galbavy@knowledge.com
WRKSRC= ${WRKDIR}/${DISTNAME}/source
SAMPLE_CONFIG= ${PREFIX}/lib/samba/smb.conf.sample
SAMBA_SPOOL= /var/spool/samba
SAMBA_LOGDIR= /var/log
SEPARATE_BUILD= concurrent SEPARATE_BUILD= concurrent
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/samba \ CONFIGURE_ARGS= --libdir="${PREFIX}/lib/samba" \
--localstatedir=/var \ --localstatedir="/var" \
--with-privatedir=/etc/samba \ --with-privatedir="/etc/samba" \
--with-lockdir=/var/spool/lock \ --with-lockdir="/var/spool/lock" \
--with-swatdir=/usr/local/swat --with-swatdir="/usr/local/swat"
# Warning: these aditional options have not been tested. # Warning: these aditional options have not been tested.
@ -56,36 +46,42 @@ CONFIGURE_ARGS= --libdir=${PREFIX}/lib/samba \
# uncomment this if you want NISPLUS_HOME support # uncomment this if you want NISPLUS_HOME support
#CONFIGURE_ARGS+= --with-nisplus-home #CONFIGURE_ARGS+= --with-nisplus-home
SAMBA_DOCS=${WRKDIR}/${DISTNAME}/docs/THANKS \ WRKSRC= ${WRKDIR}/${DISTNAME}/source
${WRKDIR}/${DISTNAME}/docs/history \
${WRKDIR}/${DISTNAME}/docs/announce \ 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
SAMPLE_CONFIG= ${PREFIX}/lib/samba/smb.conf.sample
post-install: post-install:
${MKDIR} ${PREFIX}/share/examples/samba ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/faq
${CP} -r ${WRKDIR}/${DISTNAME}/examples/* ${PREFIX}/share/examples/samba ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/samba/textdocs
${MKDIR} ${PREFIX}/share/doc/samba/faq ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/samba
${MKDIR} ${PREFIX}/share/doc/samba/textdocs @cp -r ${WRKSRC}/../examples/* ${PREFIX}/share/examples/samba
@chown -R root.bin ${PREFIX}/share/examples/samba
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba ${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba
@for i in ${SAMBA_DOCS} ${WRKDIR}/${DISTNAME}/docs/*.reg \ @for i in ${SAMBA_DOCS}; do \
${WRKDIR}/${DISTNAME}/README ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \ ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba ; \
done done
@for i in ${WRKDIR}/${DISTNAME}/docs/faq/* ; do \ @for i in ${WRKSRC}/../docs/faq/* ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq ; \ ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/faq ; \
done done
@for i in ${WRKDIR}/${DISTNAME}/docs/textdocs/* ; do \ @for i in ${WRKSRC}/../docs/textdocs/* ; do \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs ;\ ${INSTALL_DATA} $$i ${PREFIX}/share/doc/samba/textdocs ;\
done done
@if [ ! -f ${SAMPLE_CONFIG} ]; then \ @if [ ! -f ${SAMPLE_CONFIG} ]; then \
${SED} -e 's:/usr/spool/samba/:${SAMBA_SPOOL}:g' \ sed -e 's:/usr/spool/samba/:${SAMBA_SPOOL}:g' \
-e 's:/usr/local/samba/var/log:${SAMBA_LOGDIR}/smbd:g' \ -e 's:/usr/local/samba/var/log:${SAMBA_LOGDIR}/smbd:g' \
${WRKDIR}/${DISTNAME}/examples/smb.conf.default > ${SAMPLE_CONFIG} ; \ ${WRKSRC}/../examples/smb.conf.default > ${SAMPLE_CONFIG} ; \
fi fi
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/script/mksmbpasswd.sh \ ${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin
${PREFIX}/bin @chown root.bin ${PREFIX}/bin/smbpasswd
chown root.bin ${PREFIX}/bin/smbpasswd @chmod 111 ${PREFIX}/bin/smbpasswd
chmod 111 ${PREFIX}/bin/smbpasswd
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL @PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
.include <bsd.port.mk> .include <bsd.port.mk>