2003-09-29 19:01:21 -04:00
|
|
|
# New ports collection makefile for: spamd
|
|
|
|
# Date created: 23 June 2003
|
|
|
|
# Whom: Max Laier <max@love2party.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= spamd
|
2005-04-13 08:13:41 -04:00
|
|
|
PORTVERSION= 3.7
|
2003-09-29 19:01:21 -04:00
|
|
|
CATEGORIES= mail
|
2005-04-13 08:13:41 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= delphij
|
2003-09-29 19:01:21 -04:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2005-04-13 08:13:41 -04:00
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
2003-09-29 19:01:21 -04:00
|
|
|
COMMENT= Traps spammers with a very slow smtp-login and return 4xx error
|
|
|
|
|
2004-07-18 18:54:29 -04:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 502117
|
2005-04-13 08:13:41 -04:00
|
|
|
IGNORE= OpenBSD 3.5 pf/pfctl is necessary for this port to function properly.
|
2004-07-18 18:54:29 -04:00
|
|
|
.else
|
|
|
|
LOCAL_PFCTL= /sbin/pfctl
|
2003-09-29 19:01:21 -04:00
|
|
|
.endif
|
|
|
|
|
2005-04-13 08:13:41 -04:00
|
|
|
USE_RC_SUBR= yes
|
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
|
|
|
|
2004-04-03 11:42:37 -05:00
|
|
|
USE_REINPLACE= yes
|
2003-09-29 19:01:21 -04:00
|
|
|
|
2004-07-18 18:54:29 -04:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
|
|
|
|
2004-04-03 11:42:37 -05:00
|
|
|
MAN5= spamd.conf.5
|
|
|
|
MAN8= spamd.8 spamd-setup.8 spamdb.8 spamlogd.8
|
2003-09-29 19:01:21 -04:00
|
|
|
|
|
|
|
SAMPLE_SPAMD_CONF= ${PREFIX}/etc/spamd.conf.sample
|
|
|
|
|
|
|
|
post-patch:
|
2004-04-03 11:42:37 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCAL_PFCTL%%|${LOCAL_PFCTL}|; \
|
|
|
|
s|%%LOCAL_SPAMD_CONF%%|${PREFIX}/etc/spamd.conf|' \
|
|
|
|
${WRKSRC}/spamd-setup/spamd-setup.c
|
2004-06-28 11:44:57 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/spamd.conf|${PREFIX}/etc/spamd.conf|' \
|
|
|
|
${WRKSRC}/spamd/spamd.8 ${WRKSRC}/spamd-setup/spamd-setup.8
|
2005-04-13 08:13:41 -04:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/pfspamd.sh > ${WRKDIR}/pfspamd.sh
|
2003-09-29 19:01:21 -04:00
|
|
|
|
|
|
|
pre-su-install:
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
.endif
|
|
|
|
|
2004-04-03 11:42:37 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spamlogd/spamlogd ${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spamd-setup/spamd-setup ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spamdb/spamdb ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/spamd.conf.5 ${PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/spamd/spamd.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${PREFIX}/man/man8
|
2005-04-13 08:13:41 -04:00
|
|
|
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/pfspamd.sh ${PREFIX}/etc/rc.d/pfspamd.sh
|
2003-09-29 19:01:21 -04:00
|
|
|
@if [ ! -f ${SAMPLE_SPAMD_CONF} ]; then \
|
|
|
|
${ECHO_MSG} "Installing ${SAMPLE_SPAMD_CONF} file."; \
|
2004-04-03 11:42:37 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spamd.conf \
|
2003-09-29 19:01:21 -04:00
|
|
|
${SAMPLE_SPAMD_CONF}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|