summaryrefslogtreecommitdiffstats
path: root/mail/spamd/Makefile
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-04-13 12:13:41 +0000
committerleeym <leeym@FreeBSD.org>2005-04-13 12:13:41 +0000
commit612e8701d7e97ae8ed6c517744f20de6e71094f9 (patch)
tree1841190ea9f84211242236c38763470959193b74 /mail/spamd/Makefile
parentf78f49adb07c08c5bd4b0c1623559ee06e541136 (diff)
downloadFreeBSD-ports-612e8701d7e97ae8ed6c517744f20de6e71094f9.zip
FreeBSD-ports-612e8701d7e97ae8ed6c517744f20de6e71094f9.tar.gz
updates spamd to OpenBSD 3.7-RELEASE's bundled version.
Change details: - Update to 3.7 - Use RCng scripts - Fix installation of spamlogd(8) - Change maintainer's mail address PR: 79856 Submitted by: delphij
Diffstat (limited to 'mail/spamd/Makefile')
-rw-r--r--mail/spamd/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/mail/spamd/Makefile b/mail/spamd/Makefile
index 1fe30cf..5b1c274 100644
--- a/mail/spamd/Makefile
+++ b/mail/spamd/Makefile
@@ -6,13 +6,13 @@
#
PORTNAME= spamd
-PORTVERSION= 3.5
-PORTREVISION= 2
+PORTVERSION= 3.7
CATEGORIES= mail
-MASTER_SITES= http://resources.delphij.net/pf/
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= delphij
DISTNAME= ${PORTNAME}_${PORTVERSION}
-MAINTAINER= delphij@FreeBSD.org.cn
+MAINTAINER= delphij@FreeBSD.org
COMMENT= Traps spammers with a very slow smtp-login and return 4xx error
USE_BZIP2= yes
@@ -20,11 +20,14 @@ USE_BZIP2= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502117
-IGNORE= "OpenBSD 3.5 pf/pfctl is necessary for this port to function properly."
+IGNORE= OpenBSD 3.5 pf/pfctl is necessary for this port to function properly.
.else
LOCAL_PFCTL= /sbin/pfctl
.endif
+USE_RC_SUBR= yes
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+
USE_REINPLACE= yes
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
@@ -35,7 +38,6 @@ MAN5= spamd.conf.5
MAN8= spamd.8 spamd-setup.8 spamdb.8 spamlogd.8
SAMPLE_SPAMD_CONF= ${PREFIX}/etc/spamd.conf.sample
-SAMPLE_SPAMD_RC= ${PREFIX}/etc/rc.d/pf-spamd.sh
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCAL_PFCTL%%|${LOCAL_PFCTL}|; \
@@ -43,6 +45,8 @@ post-patch:
${WRKSRC}/spamd-setup/spamd-setup.c
@${REINPLACE_CMD} -e 's|/etc/spamd.conf|${PREFIX}/etc/spamd.conf|' \
${WRKSRC}/spamd/spamd.8 ${WRKSRC}/spamd-setup/spamd-setup.8
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${FILESDIR}/pfspamd.sh > ${WRKDIR}/pfspamd.sh
pre-su-install:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
@@ -59,11 +63,7 @@ do-install:
${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
- @if [ ! -f ${SAMPLE_SPAMD_RC} ]; then \
- ${ECHO_MSG} "Installing ${SAMPLE_SPAMD_RC} startup file."; \
- ${INSTALL_SCRIPT} ${FILESDIR}/spamd.sh.sample \
- ${SAMPLE_SPAMD_RC}; \
- fi
+ @${INSTALL_SCRIPT} -m 555 ${WRKDIR}/pfspamd.sh ${PREFIX}/etc/rc.d/pfspamd.sh
@if [ ! -f ${SAMPLE_SPAMD_CONF} ]; then \
${ECHO_MSG} "Installing ${SAMPLE_SPAMD_CONF} file."; \
${INSTALL_DATA} ${WRKSRC}/doc/spamd.conf \
OpenPOWER on IntegriCloud