diff options
author | mat <mat@FreeBSD.org> | 2004-08-08 16:08:31 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2004-08-08 16:08:31 +0800 |
commit | 1df08d2306cd0f4547c0838deed565c3469b1d0a (patch) | |
tree | 8698c44791ed362a419127bb816e20e8aad4246e /mail/spamass-rules | |
parent | b96c5a5202bf21d8b797794c50d5865a1b3e71f6 (diff) | |
download | freebsd-ports-gnome-1df08d2306cd0f4547c0838deed565c3469b1d0a.tar.gz freebsd-ports-gnome-1df08d2306cd0f4547c0838deed565c3469b1d0a.tar.zst freebsd-ports-gnome-1df08d2306cd0f4547c0838deed565c3469b1d0a.zip |
Add spamass-rules 20040807, custom rulesets for SpamAssassin.
PR: ports/70134
Submitted by: mranner@inode.at
Diffstat (limited to 'mail/spamass-rules')
-rw-r--r-- | mail/spamass-rules/Makefile | 129 | ||||
-rw-r--r-- | mail/spamass-rules/distinfo | 2 | ||||
-rw-r--r-- | mail/spamass-rules/pkg-descr | 13 | ||||
-rw-r--r-- | mail/spamass-rules/pkg-message | 15 | ||||
-rw-r--r-- | mail/spamass-rules/pkg-plist | 2 |
5 files changed, 161 insertions, 0 deletions
diff --git a/mail/spamass-rules/Makefile b/mail/spamass-rules/Makefile new file mode 100644 index 000000000000..3238a5083ba8 --- /dev/null +++ b/mail/spamass-rules/Makefile @@ -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> diff --git a/mail/spamass-rules/distinfo b/mail/spamass-rules/distinfo new file mode 100644 index 000000000000..6ba9c5680d5b --- /dev/null +++ b/mail/spamass-rules/distinfo @@ -0,0 +1,2 @@ +MD5 (spamass-rules-20040807.tar.gz) = 402b599a910864f3b6314cf07ff79ea1 +SIZE (spamass-rules-20040807.tar.gz) = 177730 diff --git a/mail/spamass-rules/pkg-descr b/mail/spamass-rules/pkg-descr new file mode 100644 index 000000000000..861e3cd8418f --- /dev/null +++ b/mail/spamass-rules/pkg-descr @@ -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 diff --git a/mail/spamass-rules/pkg-message b/mail/spamass-rules/pkg-message new file mode 100644 index 000000000000..2081080c72eb --- /dev/null +++ b/mail/spamass-rules/pkg-message @@ -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. + +************************************************************************* diff --git a/mail/spamass-rules/pkg-plist b/mail/spamass-rules/pkg-plist new file mode 100644 index 000000000000..bbe2f57a4fa4 --- /dev/null +++ b/mail/spamass-rules/pkg-plist @@ -0,0 +1,2 @@ +@unexec rmdir %D/etc/mail/spamassassin 2>/dev/null || true +@unexec rmdir %D/etc/mail 2>/dev/null || true |