openbsd-ports/net/samba/Makefile

73 lines
2.3 KiB
Makefile
Raw Normal View History

1998-05-05 22:21:19 -04:00
# New ports collection makefile for: samba
# Version required: 1.9.18
# Date created: 22 Apr 1998
# Whom: form
#
# $OpenBSD: Makefile,v 1.14 1998/09/10 06:49:25 marc Exp $
#
1997-11-16 15:06:44 -05:00
DISTNAME= samba-1.9.18p10
PKGNAME= samba-1.9.18.10
1997-11-16 15:06:44 -05:00
CATEGORIES= net
MASTER_SITES= ftp://samba.anu.edu.au/pub/samba/
1998-05-05 22:21:19 -04:00
MAINTAINER= form@vs.itam.nsc.ru
1997-11-16 15:06:44 -05:00
1998-05-05 22:21:19 -04:00
WRKSRC= ${WRKDIR}/${DISTNAME}/source
MAN1= smbstatus.1 smbclient.1 smbrun.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
1997-11-16 15:06:44 -05:00
MAN5= smb.conf.5
MAN7= samba.7
MAN8= smbd.8 nmbd.8 smbpasswd.8
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
XSAMBA_SPOOL= \/var\/spool\/samba
SAMBA_LOGDIR= /var/log
XSAMBA_LOGDIR= \/var\/log
1998-05-05 22:21:19 -04:00
SAMBA_DOCS=${WRKDIR}/${DISTNAME}/docs/INSTALL.sambatar \
${WRKDIR}/${DISTNAME}/docs/THANKS \
${WRKDIR}/${DISTNAME}/docs/history \
${WRKDIR}/${DISTNAME}/docs/announce \
${WRKDIR}/${DISTNAME}/docs/PROJECTS \
post-install:
1998-05-05 22:21:19 -04:00
${MKDIR} ${PREFIX}/share/examples/samba
1998-08-11 09:32:35 -04: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
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/samba
for i in ${SAMBA_DOCS} ${WRKDIR}/${DISTNAME}/docs/*.txt \
${WRKDIR}/${DISTNAME}/docs/*.reg \
${WRKDIR}/${DISTNAME}/docs/*.htm \
${WRKDIR}/${DISTNAME}/*.txt \
${WRKDIR}/${DISTNAME}/README \
${WRKDIR}/${DISTNAME}/docs/README.* ; 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
.endif
@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && chmod 1777 ${SAMBA_SPOOL}
@if [ ! -f ${SAMPLE_CONFIG} ]; then \
${SED} -e 's/__SAMBA_SPOOL__/${XSAMBA_SPOOL}/' \
-e 's/__LOGDIR__/${XSAMBA_LOGDIR}/' \
${FILESDIR}/smb.conf.default \
> ${SAMPLE_CONFIG} ; \
fi
1998-05-05 22:21:19 -04:00
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME}/source/mksmbpasswd.sh ${PREFIX}/bin
if [ ! -d /etc/samba ] ; then \
${MKDIR} /etc/samba; \
chown root.wheel /etc/samba ; \
fi
if [ ! -f /etc/samba/smbpasswd ] ; then \
${CAT} /etc/passwd | ${PREFIX}/bin/mksmbpasswd.sh > /etc/samba/smbpasswd ; \
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
1997-11-16 15:06:44 -05:00
.include <bsd.port.mk>