1998-03-01 01:58:52 +00:00
|
|
|
# Ports collection makefile for: smtpd
|
|
|
|
# Version required: 2.0
|
|
|
|
# Date created: 06 Feb 1998
|
1998-07-03 23:30:35 +00:00
|
|
|
# Whom: Joao Carlos Mendes Luis <jonny@jonny.eng.br>
|
1998-03-01 01:58:52 +00:00
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1998-03-01 01:58:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= smtpd-2.0
|
|
|
|
CATEGORIES= mail security
|
|
|
|
MASTER_SITES= ftp://ftp.obtuse.com/pub/smtpd/
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= patch-smtpd-2.0-RBL.gz
|
|
|
|
|
1998-07-03 23:30:35 +00:00
|
|
|
MAINTAINER= jonny@jonny.eng.br
|
1998-03-01 01:58:52 +00:00
|
|
|
|
|
|
|
# Directory where smtpd will chroot to, and put the received mail
|
|
|
|
# If you change it here, change also patches/patch-aa
|
|
|
|
SPOOLBASE= /var/smtpd
|
|
|
|
|
|
|
|
post-patch:
|
1999-08-28 02:42:41 +00:00
|
|
|
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.tmp
|
1999-08-28 02:17:34 +00:00
|
|
|
@${SED} s+!!SPOOLBASE!!+${SPOOLBASE}+g < ${WRKSRC}/Makefile.tmp \
|
1998-03-01 01:58:52 +00:00
|
|
|
> ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/smtpd
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/smtpd
|
|
|
|
|
|
|
|
@${ECHO} "Creating spool directories..."
|
|
|
|
@${MKDIR} ${SPOOLBASE}
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHOWN} root.uucp ${SPOOLBASE}
|
|
|
|
@${CHMOD} 0710 ${SPOOLBASE}
|
1998-03-01 01:58:52 +00:00
|
|
|
|
|
|
|
@${MKDIR} ${SPOOLBASE}/mqueue
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHOWN} uucp.uucp ${SPOOLBASE}/mqueue
|
|
|
|
@${CHMOD} 0700 ${SPOOLBASE}/mqueue
|
1998-03-01 01:58:52 +00:00
|
|
|
|
|
|
|
@${MKDIR} ${SPOOLBASE}/etc
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHOWN} root.uucp ${SPOOLBASE}/etc
|
|
|
|
@${CHMOD} 0710 ${SPOOLBASE}/etc
|
1998-03-01 01:58:52 +00:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@${CP} -p /etc/resolv.conf ${SPOOLBASE}/etc
|
|
|
|
@${CP} -p /etc/localtime ${SPOOLBASE}/etc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
@${ECHO} "Copying examples..."
|
|
|
|
@${INSTALL} ${COPY} -g uucp -o root -m 0640 \
|
|
|
|
${WRKSRC}/antirelay_check_rules_example \
|
|
|
|
${SPOOLBASE}/etc/antirelay_check_rules.example
|
|
|
|
@${INSTALL} ${COPY} -g uucp -o root -m 0640 \
|
|
|
|
${WRKSRC}/antispam_check_rules.example \
|
|
|
|
${SPOOLBASE}/etc
|
|
|
|
@${INSTALL} ${COPY} -g uucp -o root -m 0640 \
|
|
|
|
${WRKSRC}/smtpd_check_rules.example \
|
|
|
|
${SPOOLBASE}/etc
|
|
|
|
|
|
|
|
@${ECHO} "Creating startup file..."
|
1999-08-28 02:17:34 +00:00
|
|
|
@${SED} s+!!PREFIX!!+${PREFIX}+ \
|
1998-03-01 01:58:52 +00:00
|
|
|
< ${FILESDIR}/smtpd.sh \
|
|
|
|
> ${PREFIX}/etc/rc.d/smtpd.sh
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 0700 ${PREFIX}/etc/rc.d/smtpd.sh
|
|
|
|
@${CHOWN} 0.0 ${PREFIX}/etc/rc.d/smtpd.sh
|
1998-03-01 01:58:52 +00:00
|
|
|
|
|
|
|
@${ECHO} "Done!"
|
|
|
|
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|