summaryrefslogtreecommitdiff
path: root/mail/spamassassin-dqs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/spamassassin-dqs/Makefile')
-rw-r--r--mail/spamassassin-dqs/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/mail/spamassassin-dqs/Makefile b/mail/spamassassin-dqs/Makefile
new file mode 100644
index 000000000000..b8c715a2a89d
--- /dev/null
+++ b/mail/spamassassin-dqs/Makefile
@@ -0,0 +1,35 @@
+# Created by: Larry Rosenman <ler@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= spamassassin-dqs
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.1
+CATEGORIES= mail
+
+MAINTAINER= ler@FreeBSD.org
+COMMENT= Real-Time DNSBL's that catch a bunch of additional spam
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${LOCALBASE}/bin/spamassassin:mail/spamassassin
+
+USE_GITHUB= yes
+GH_ACCOUNT= spamhaus
+
+SUB_FILES= pkg-message
+PLIST_FILES= etc/mail/spamassassin/SH.pm \
+ "@sample etc/mail/spamassassin/sh.cf.sample" \
+ etc/mail/spamassassin/sh_scores.cf
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|<config_directory>|${PREFIX}/etc/mail/spamassassin|' ${WRKSRC}/sh.cf
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail/spamassassin
+ ${INSTALL_DATA} ${WRKSRC}/sh.cf ${STAGEDIR}${PREFIX}/etc/mail/spamassassin/sh.cf.sample
+ ${INSTALL_DATA} ${WRKSRC}/SH.pm ${STAGEDIR}${PREFIX}/etc/mail/spamassassin/
+ ${INSTALL_DATA} ${WRKSRC}/sh_scores.cf ${STAGEDIR}${PREFIX}/etc/mail/spamassassin/
+.include <bsd.port.mk>