mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
Add spamass-rules 20040807, custom rulesets for SpamAssassin.
PR: ports/70134 Submitted by: mranner@inode.at
This commit is contained in:
parent
d228325498
commit
925978637a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115607
@ -401,6 +401,7 @@
|
||||
SUBDIR += solidpop3d
|
||||
SUBDIR += sortmail
|
||||
SUBDIR += spamass-milter
|
||||
SUBDIR += spamass-rules
|
||||
SUBDIR += spambnc
|
||||
SUBDIR += spamd
|
||||
SUBDIR += spamguard
|
||||
|
129
mail/spamass-rules/Makefile
Normal file
129
mail/spamass-rules/Makefile
Normal file
@ -0,0 +1,129 @@
|
||||
# New ports collection makefile for: spamass-rules
|
||||
# Date created: 20040725
|
||||
# Whom: mranner@inode.at
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= spamass-rules
|
||||
PORTVERSION= 20040807
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://www.ranner.jawa.at/stuff/
|
||||
|
||||
MAINTAINER= mranner@inode.at
|
||||
COMMENT= Custom rulesets for SpamAssassin
|
||||
|
||||
RUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
||||
|
||||
OPTIONS= AIRMAX "Some custom rulesets" off \
|
||||
ANTIDRUG "Catch those pesky 'pill spams'" on \
|
||||
BACKHAIR "Catch those ugly, unsightly HTML tags" on \
|
||||
BOGUS_VIRUS "Catch 'collateral spam' caused by viruses" on \
|
||||
CHICKENPOX "Catch spam like 'l.ooks f|or th.is garb+age'" on \
|
||||
EVILNUMBERS "Phone numbers, PO boxes, ... from spam " on \
|
||||
FRENCH "Catches spams written in French" off \
|
||||
RANDOM "Detects spamware mistakes like: %RANDOM_WORD" on \
|
||||
SARE "Installs safe SARE rules" on \
|
||||
SARE1 "Installs more restrictive SARE rules" off \
|
||||
SARE2 "Installs more cpu intensive SARE rules" off \
|
||||
SARE3 "Installs aggressive SARE rules" off \
|
||||
TRIPWIRE "Matches 3 chars that shouldn't be together" off \
|
||||
WEEDS "Looks at alphanum, hex, lower-, uppercase chars" on \
|
||||
WEEDS2 "More restrictive than WEEDS, dont use together" off
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
SPAMASS_CONF= etc/mail/spamassassin
|
||||
SPAMASS_FILES=
|
||||
INSTALL_DIR= ${PREFIX}/${SPAMASS_CONF}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_AIRMAX)
|
||||
SPAMASS_FILES+= airmax.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ANTIDRUG)
|
||||
SPAMASS_FILES+= antidrug.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BACKHAIR)
|
||||
SPAMASS_FILES+= backhair.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BOGUS_VIRUS)
|
||||
SPAMASS_FILES+= bogus-virus-warnings.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CHICKENPOX)
|
||||
SPAMASS_FILES+= chickenpox.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_EVILNUMBERS)
|
||||
SPAMASS_FILES+= evilnumbers.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FRENCH)
|
||||
SPAMASS_FILES+= french_rules.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_RANDOM)
|
||||
SPAMASS_FILES+= random.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SARE)
|
||||
.for i in 70_sare_adult.cf 70_sare_bayes_poison_nxm.cf 70_sare_header0.cf \
|
||||
70_sare_html0.cf 70_sare_genlsubj0.cf 70_sare_oem.cf 70_sare_random.cf \
|
||||
70_sare_ratware.cf 70_sare_specific.cf 70_sare_spoof.cf 70_sare_unsub.cf \
|
||||
71_sare_redirect_pre3.0.0.cf 72_sare_bml_post25x.cf \
|
||||
99_sare_fraud_post25x.cf
|
||||
SPAMASS_FILES+= $i
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SARE1)
|
||||
.for i in 70_sare_header1.cf 70_sare_html1.cf 70_sare_genlsubj1.cf
|
||||
SPAMASS_FILES+= $i
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SARE2)
|
||||
.for i in 70_sare_header2.cf 70_sare_html2.cf 70_sare_genlsubj2.cf
|
||||
SPAMASS_FILES+= $i
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SARE3)
|
||||
.for i in 70_sare_header3.cf 70_sare_html3.cf 70_sare_genlsubj3.cf
|
||||
SPAMASS_FILES+= $i
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TRIPWIRE)
|
||||
SPAMASS_FILES+= 99_FVGT_Tripwire.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_WEEDS) && !defined(WITH_WEEDS2)
|
||||
SPAMASS_FILES+= weeds.cf
|
||||
.endif
|
||||
|
||||
.if defined(WITH_WEEDS2) && !defined(WITH_WEEDS)
|
||||
SPAMASS_FILES+= weeds2.cf
|
||||
.endif
|
||||
|
||||
PLIST_FILES= ${SPAMASS_FILES:S/^/${SPAMASS_CONF}\//}
|
||||
|
||||
do-build:
|
||||
@${DO_NADA}
|
||||
|
||||
pre-install:
|
||||
@${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||
|
||||
do-install:
|
||||
@${INSTALL} -d -o root -g wheel -m 0755 ${INSTALL_DIR}
|
||||
@${INSTALL_DATA} ${SPAMASS_FILES:S/^/${WRKSRC}\//} ${INSTALL_DIR}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
mail/spamass-rules/distinfo
Normal file
2
mail/spamass-rules/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (spamass-rules-20040807.tar.gz) = 402b599a910864f3b6314cf07ff79ea1
|
||||
SIZE (spamass-rules-20040807.tar.gz) = 177730
|
13
mail/spamass-rules/pkg-descr
Normal file
13
mail/spamass-rules/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
Custom rulesets for SpamAssassin which are not part of the official distro.
|
||||
|
||||
Before running these rules please do the following:
|
||||
|
||||
1. Read any extra info available with the rules, including the comments
|
||||
in the .cf files.
|
||||
2. Check to make sure that the default scores in these rules fit your
|
||||
installation. You might want to modify scores.
|
||||
3. Make sure to --lint the rules after loading them.
|
||||
4. Test the new rulesets. Keep an eye on hits from the new rules to
|
||||
determine if the scoring is right for you.
|
||||
|
||||
WWW: http://wiki.apache.org/spamassassin/CustomRulesets
|
15
mail/spamass-rules/pkg-message
Normal file
15
mail/spamass-rules/pkg-message
Normal file
@ -0,0 +1,15 @@
|
||||
*************************************************************************
|
||||
|
||||
The custom rulesets are installed in %%LOCALBASE%%/etc/mail/spamassassin
|
||||
|
||||
Before running these rules please do the following:
|
||||
|
||||
1. Read any extra info available with the rules, including the comments
|
||||
in the .cf files.
|
||||
2. Check to make sure that the default scores in these rules fit your
|
||||
installation. You might want to modify scores.
|
||||
3. Make sure to --lint the rules after loading them.
|
||||
4. Test the new rulesets. Keep an eye on hits from the new rules to
|
||||
determine if the scoring is right for you.
|
||||
|
||||
*************************************************************************
|
2
mail/spamass-rules/pkg-plist
Normal file
2
mail/spamass-rules/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
@unexec rmdir %D/etc/mail/spamassassin 2>/dev/null || true
|
||||
@unexec rmdir %D/etc/mail 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user