mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
mail/spamassassin-dqs: new port to use SpamHaus' DQS DNSBL's with SpamAssassin
This commit is contained in:
parent
0b7d577e23
commit
f5533408e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505846
@ -655,6 +655,7 @@
|
||||
SUBDIR += spamass-milter
|
||||
SUBDIR += spamass-rules
|
||||
SUBDIR += spamassassin
|
||||
SUBDIR += spamassassin-dqs
|
||||
SUBDIR += spambnc
|
||||
SUBDIR += spamcup
|
||||
SUBDIR += spamd
|
||||
|
35
mail/spamassassin-dqs/Makefile
Normal file
35
mail/spamassassin-dqs/Makefile
Normal file
@ -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>
|
3
mail/spamassassin-dqs/distinfo
Normal file
3
mail/spamassassin-dqs/distinfo
Normal file
@ -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
|
23
mail/spamassassin-dqs/files/pkg-message.in
Normal file
23
mail/spamassassin-dqs/files/pkg-message.in
Normal file
@ -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
|
||||
}
|
||||
]
|
||||
|
5
mail/spamassassin-dqs/pkg-descr
Normal file
5
mail/spamassassin-dqs/pkg-descr
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user