From f5533408e532d0c7a86d767d55975585cf44b835 Mon Sep 17 00:00:00 2001 From: Larry Rosenman Date: Thu, 4 Jul 2019 17:26:30 +0000 Subject: mail/spamassassin-dqs: new port to use SpamHaus' DQS DNSBL's with SpamAssassin --- mail/spamassassin-dqs/Makefile | 35 ++++++++++++++++++++++++++++++ mail/spamassassin-dqs/distinfo | 3 +++ mail/spamassassin-dqs/files/pkg-message.in | 23 ++++++++++++++++++++ mail/spamassassin-dqs/pkg-descr | 5 +++++ 4 files changed, 66 insertions(+) create mode 100644 mail/spamassassin-dqs/Makefile create mode 100644 mail/spamassassin-dqs/distinfo create mode 100644 mail/spamassassin-dqs/files/pkg-message.in create mode 100644 mail/spamassassin-dqs/pkg-descr (limited to 'mail/spamassassin-dqs') 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 +# $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||${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 diff --git a/mail/spamassassin-dqs/distinfo b/mail/spamassassin-dqs/distinfo new file mode 100644 index 000000000000..3a2461124633 --- /dev/null +++ b/mail/spamassassin-dqs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1562256350 +SHA256 (spamhaus-spamassassin-dqs-v1.0.1_GH0.tar.gz) = f1b1ffc3306aa18d02da0cc4baeedce645a5165e7893f08cdce28cfa1cf46b6d +SIZE (spamhaus-spamassassin-dqs-v1.0.1_GH0.tar.gz) = 12545 diff --git a/mail/spamassassin-dqs/files/pkg-message.in b/mail/spamassassin-dqs/files/pkg-message.in new file mode 100644 index 000000000000..e69f3824ef25 --- /dev/null +++ b/mail/spamassassin-dqs/files/pkg-message.in @@ -0,0 +1,23 @@ +[ +{ + message: </g' sh.cf.sample >sh.cf + +then restart spamassassin. +EOM + type: install +} +] + diff --git a/mail/spamassassin-dqs/pkg-descr b/mail/spamassassin-dqs/pkg-descr new file mode 100644 index 000000000000..9ea1ed4b32c5 --- /dev/null +++ b/mail/spamassassin-dqs/pkg-descr @@ -0,0 +1,5 @@ +This port allows use of SpamHaus Technologies DQS DNSBL's +to help spamassassin detect more spam. + +Data Feed License: https://www.spamhaus.org/organization/dnsblusage/ +WWW: https://github.com/spamhaus/spamassassin-dqs/ -- cgit v1.2.3