1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/mail/smtpd/Makefile
Mario Sergio Fujikawa Ferreira f0a1969d34 o Rollback PORTCOMMENT modifications while this feature's implementation
is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
2002-11-10 16:48:51 +00:00

78 lines
2.1 KiB
Makefile

# Ports collection makefile for: smtpd
# Date created: 06 Feb 1998
# Whom: Joao Carlos Mendes Luis <jonny@jonny.eng.br>
#
# $FreeBSD$
#
PORTNAME= smtpd
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= mail security
MASTER_SITES= ftp://ftp.obtuse.com/pub/smtpd/
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= patch-smtpd-2.0-RBL.gz
MAINTAINER= ports@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/sbin/sendmail:${PORTSDIR}/mail/sendmail-old
# 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:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.tmp
@${SED} s+!!SPOOLBASE!!+${SPOOLBASE}+g < ${WRKSRC}/Makefile.tmp \
> ${WRKSRC}/Makefile
pre-install:
@${ECHO_CMD} "Does not work with Sendmail-8.12, checking Version:"
${LOCALBASE}/sbin/sendmail -d -t </dev/null | grep Version.8.11
post-install:
@${MKDIR} ${PREFIX}/share/doc/smtpd
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/smtpd
@${ECHO_CMD} "Creating spool directories..."
@${MKDIR} ${SPOOLBASE}
@${CHOWN} root:uucp ${SPOOLBASE}
@${CHMOD} 0710 ${SPOOLBASE}
@${MKDIR} ${SPOOLBASE}/mqueue
@${CHOWN} uucp:uucp ${SPOOLBASE}/mqueue
@${CHMOD} 0700 ${SPOOLBASE}/mqueue
@${MKDIR} ${SPOOLBASE}/etc
@${CHOWN} root:uucp ${SPOOLBASE}/etc
@${CHMOD} 0710 ${SPOOLBASE}/etc
.if !defined(BATCH)
@${CP} -p /etc/resolv.conf ${SPOOLBASE}/etc
@${CP} -p /etc/localtime ${SPOOLBASE}/etc
.endif
@${ECHO_CMD} "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_CMD} "Creating startup file..."
@${SED} s+!!PREFIX!!+${PREFIX}+ \
< ${FILESDIR}/smtpd.sh \
> ${PREFIX}/etc/rc.d/smtpd.sh
@${CHMOD} 0700 ${PREFIX}/etc/rc.d/smtpd.sh
@${CHOWN} 0:0 ${PREFIX}/etc/rc.d/smtpd.sh
@${ECHO_CMD} "Done!"
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>