svn commit: r505846 - in head/mail: . spamassassin-dqs spamassassin-dqs/files

Larry Rosenman ler at FreeBSD.org
Thu Jul 4 17:26:32 UTC 2019


Author: ler
Date: Thu Jul  4 17:26:30 2019
New Revision: 505846
URL: https://svnweb.freebsd.org/changeset/ports/505846

Log:
  mail/spamassassin-dqs: new port to use SpamHaus' DQS DNSBL's with SpamAssassin

Added:
  head/mail/spamassassin-dqs/
  head/mail/spamassassin-dqs/Makefile   (contents, props changed)
  head/mail/spamassassin-dqs/distinfo   (contents, props changed)
  head/mail/spamassassin-dqs/files/
  head/mail/spamassassin-dqs/files/pkg-message.in   (contents, props changed)
  head/mail/spamassassin-dqs/pkg-descr   (contents, props changed)
Modified:
  head/mail/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Thu Jul  4 17:07:41 2019	(r505845)
+++ head/mail/Makefile	Thu Jul  4 17:26:30 2019	(r505846)
@@ -655,6 +655,7 @@
     SUBDIR += spamass-milter
     SUBDIR += spamass-rules
     SUBDIR += spamassassin
+    SUBDIR += spamassassin-dqs
     SUBDIR += spambnc
     SUBDIR += spamcup
     SUBDIR += spamd

Added: head/mail/spamassassin-dqs/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/spamassassin-dqs/Makefile	Thu Jul  4 17:26:30 2019	(r505846)
@@ -0,0 +1,35 @@
+# Created by: Larry Rosenman <ler at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=		spamassassin-dqs
+DISTVERSIONPREFIX=	v
+DISTVERSION=		1.0.1
+CATEGORIES=		mail
+
+MAINTAINER=	ler at 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>

Added: head/mail/spamassassin-dqs/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/spamassassin-dqs/distinfo	Thu Jul  4 17:26:30 2019	(r505846)
@@ -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

Added: head/mail/spamassassin-dqs/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/spamassassin-dqs/files/pkg-message.in	Thu Jul  4 17:26:30 2019	(r505846)
@@ -0,0 +1,23 @@
+[
+{
+ message: <<EOM
+you will need to configure the sh.cf file with your own
+DQS key.   
+
+Follow the instructions at:
+https://www.spamhaustech.com/dqs/
+to get a key, then go to:
+https://portal.spamhaustech.com/src/manual/dqs/
+and note your key. 
+
+Once you have it, run the following as root:
+
+cd %%PREFIX%%/etc/mail/spamassassin:
+sed -e 's/your_DQS_key/<your key from above>/g' sh.cf.sample >sh.cf
+
+then restart spamassassin.
+EOM
+  type: install
+}
+]
+

Added: head/mail/spamassassin-dqs/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/spamassassin-dqs/pkg-descr	Thu Jul  4 17:26:30 2019	(r505846)
@@ -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/


More information about the svn-ports-all mailing list