ports/70134: [NEW PORT] mail/spamass-rules: Custom rulesets for SpamAssassin
Michael Ranner
mranner at inode.at
Sat Aug 7 17:30:23 UTC 2004
>Number: 70134
>Category: ports
>Synopsis: [NEW PORT] mail/spamass-rules: Custom rulesets for SpamAssassin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 07 17:30:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Ranner
>Release: FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD dwarf.jawa.at 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Fri Jun 25 23:02:44 CEST 2004
>Description:
Obsoletes ports/69572 fixes some issues and uses latest version
Custom rulesets for SpamAssassin which are not part of the official distro.
WWW: http://wiki.apache.org/spamassassin/CustomRulesets
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- spamass-rules-20040807.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# spamass-rules
# spamass-rules/pkg-descr
# spamass-rules/distinfo
# spamass-rules/Makefile
# spamass-rules/pkg-message
#
echo c - spamass-rules
mkdir -p spamass-rules > /dev/null 2>&1
echo x - spamass-rules/pkg-descr
sed 's/^X//' >spamass-rules/pkg-descr << 'END-of-spamass-rules/pkg-descr'
XCustom rulesets for SpamAssassin which are not part of the official distro.
X
XBefore running these rules please do the following:
X
X1. Read any extra info available with the rules, including the comments
X in the .cf files.
X2. Check to make sure that the default scores in these rules fit your
X installation. You might want to modify scores.
X3. Make sure to --lint the rules after loading them.
X4. Test the new rulesets. Keep an eye on hits from the new rules to
X determine if the scoring is right for you.
X
XWWW: http://wiki.apache.org/spamassassin/CustomRulesets
END-of-spamass-rules/pkg-descr
echo x - spamass-rules/distinfo
sed 's/^X//' >spamass-rules/distinfo << 'END-of-spamass-rules/distinfo'
XMD5 (spamass-rules-20040807.tar.gz) = 402b599a910864f3b6314cf07ff79ea1
XSIZE (spamass-rules-20040807.tar.gz) = 177730
END-of-spamass-rules/distinfo
echo x - spamass-rules/Makefile
sed 's/^X//' >spamass-rules/Makefile << 'END-of-spamass-rules/Makefile'
X# New ports collection makefile for: spamass-rules
X# Date created: 20040725
X# Whom: mranner at inode.at
X#
X# $FreeBSD$
X#
X
XPORTNAME= spamass-rules
XPORTVERSION= 20040807
XCATEGORIES= mail
XMASTER_SITES= http://www.ranner.jawa.at/stuff/
X
XMAINTAINER= mranner at inode.at
XCOMMENT= Custom rulesets for SpamAssassin
X
XRUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
X
XOPTIONS= AIRMAX "Some custom rulesets" off \
X ANTIDRUG "Catch those pesky 'pill spams'" on \
X BACKHAIR "Catch those ugly, unsightly HTML tags" on \
X BOGUS_VIRUS "Catch 'collateral spam' caused by viruses" on \
X CHICKENPOX "Catch spam like 'l.ooks f|or th.is garb+age'" on \
X EVILNUMBERS "Phone numbers, PO boxes, ... from spam " on \
X FRENCH "Catches spams written in French" off \
X RANDOM "Detects spamware mistakes like: %RANDOM_WORD" on \
X SARE "Installs safe SARE rules" on \
X SARE1 "Installs more restrictive SARE rules" off \
X SARE2 "Installs more cpu intensive SARE rules" off \
X SARE3 "Installs aggressive SARE rules" off \
X TRIPWIRE "Matches 3 chars that shouldn't be together" off \
X WEEDS "Looks at alphanum, hex, lower-, uppercase chars" on \
X WEEDS2 "More restrictive than WEEDS, dont use together" off
XPKGMESSAGE= ${WRKDIR}/pkg-message
XPLIST_FILES=
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
XSPAMASS_CONF= etc/mail/spamassassin
XSPAMASS_FILES=
XINSTALL_DIR= ${LOCALBASE}/${SPAMASS_CONF}
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_AIRMAX)
XSPAMASS_FILES+= airmax.cf
XPLIST_FILES+= ${SPAMASS_CONF}/airmax.cf
X.endif
X
X.if defined(WITH_ANTIDRUG)
XSPAMASS_FILES+= antidrug.cf
XPLIST_FILES+= ${SPAMASS_CONF}/antidrug.cf
X.endif
X
X.if defined(WITH_BACKHAIR)
XSPAMASS_FILES+= backhair.cf
XPLIST_FILES+= ${SPAMASS_CONF}/backhair.cf
X.endif
X
X.if defined(WITH_BOGUS_VIRUS)
XSPAMASS_FILES+= bogus-virus-warnings.cf
XPLIST_FILES+= ${SPAMASS_CONF}/bogus-virus-warnings.cf
X.endif
X
X.if defined(WITH_CHICKENPOX)
XSPAMASS_FILES+= chickenpox.cf
XPLIST_FILES+= ${SPAMASS_CONF}/chickenpox.cf
X.endif
X
X.if defined(WITH_EVILNUMBERS)
XSPAMASS_FILES+= evilnumbers.cf
XPLIST_FILES+= ${SPAMASS_CONF}/evilnumbers.cf
X.endif
X
X.if defined(WITH_FRENCH)
XSPAMASS_FILES+= french_rules.cf
XPLIST_FILES+= ${SPAMASS_CONF}/french_rules.cf
X.endif
X
X.if defined(WITH_RANDOM)
XSPAMASS_FILES+= random.cf
XPLIST_FILES+= ${SPAMASS_CONF}/random.cf
X.endif
X
X.if defined(WITH_SARE)
X.for i in 70_sare_adult.cf 70_sare_bayes_poison_nxm.cf 70_sare_header0.cf \
X 70_sare_html0.cf 70_sare_genlsubj0.cf 70_sare_oem.cf 70_sare_random.cf \
X 70_sare_ratware.cf 70_sare_specific.cf 70_sare_spoof.cf 70_sare_unsub.cf \
X 71_sare_redirect_pre3.0.0.cf 72_sare_bml_post25x.cf \
X 99_sare_fraud_post25x.cf
XSPAMASS_FILES+= $i
XPLIST_FILES+= ${SPAMASS_CONF}/$i
X.endfor
X.endif
X
X.if defined(WITH_SARE1)
X.for i in 70_sare_header1.cf 70_sare_html1.cf 70_sare_genlsubj1.cf
XSPAMASS_FILES+= $i
XPLIST_FILES+= ${SPAMASS_CONF}/$i
X.endfor
X.endif
X
X.if defined(WITH_SARE2)
X.for i in 70_sare_header2.cf 70_sare_html2.cf 70_sare_genlsubj2.cf
XSPAMASS_FILES+= $i
XPLIST_FILES+= ${SPAMASS_CONF}/$i
X.endfor
X.endif
X
X.if defined(WITH_SARE3)
X.for i in 70_sare_header3.cf 70_sare_html3.cf 70_sare_genlsubj3.cf
XSPAMASS_FILES+= $i
XPLIST_FILES+= ${SPAMASS_CONF}/$i
X.endfor
X.endif
X
X.if defined(WITH_TRIPWIRE)
XSPAMASS_FILES+= 99_FVGT_Tripwire.cf
XPLIST_FILES+= ${SPAMASS_CONF}/99_FVGT_Tripwire.cf
X.endif
X
X.if defined(WITH_WEEDS)
XSPAMASS_FILES+= weeds.cf
XPLIST_FILES+= ${SPAMASS_CONF}/weeds.cf
X.endif
X
X.if defined(WITH_WEEDS2)
XSPAMASS_FILES+= weeds2.cf
XPLIST_FILES+= ${SPAMASS_CONF}/weeds2.cf
X.endif
X
Xdo-build:
X @${DO_NADA}
X
Xpre-install:
X @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
X -e 's|%%DOCSDIR%%|${DOCSDIR}|g' <${.CURDIR}/pkg-message >${PKGMESSAGE}
X
Xdo-install:
X @${INSTALL} -d -o root -g wheel -m 0755 ${INSTALL_DIR}
X. for i in ${SPAMASS_FILES}
X @${INSTALL_DATA} ${WRKSRC}/${i} ${INSTALL_DIR}
X. endfor
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-spamass-rules/Makefile
echo x - spamass-rules/pkg-message
sed 's/^X//' >spamass-rules/pkg-message << 'END-of-spamass-rules/pkg-message'
X*************************************************************************
X
XThe custom rulesets are installed in %%LOCALBASE%%/etc/mail/spamassassin
X
XBefore running these rules please do the following:
X
X1. Read any extra info available with the rules, including the comments
X in the .cf files.
X2. Check to make sure that the default scores in these rules fit your
X installation. You might want to modify scores.
X3. Make sure to --lint the rules after loading them.
X4. Test the new rulesets. Keep an eye on hits from the new rules to
X determine if the scoring is right for you.
X
X*************************************************************************
END-of-spamass-rules/pkg-message
exit
--- spamass-rules-20040807.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list