2004-08-08 10:08:31 +02:00
|
|
|
# New ports collection makefile for: spamass-rules
|
|
|
|
# Date created: 20040725
|
|
|
|
# Whom: mranner@inode.at
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= spamass-rules
|
2004-08-11 17:55:22 +02:00
|
|
|
PORTVERSION= 20040811
|
2004-08-16 11:38:29 +02:00
|
|
|
PORTREVISION= 1
|
2004-08-08 10:08:31 +02:00
|
|
|
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
|
|
|
|
|
2004-08-11 17:55:22 +02:00
|
|
|
OPTIONS= AHBL "Check AHBL Blacklist" off \
|
|
|
|
AIRMAX "Some custom rulesets" off \
|
2004-08-08 10:08:31 +02:00
|
|
|
ANTIDRUG "Catch those pesky 'pill spams'" on \
|
|
|
|
BACKHAIR "Catch those ugly, unsightly HTML tags" on \
|
|
|
|
BOGUS_VIRUS "Catch 'collateral spam' caused by viruses" on \
|
2004-08-11 17:55:22 +02:00
|
|
|
BRAZILIAN "Catches spam written in Portuguese" off \
|
2004-08-08 10:08:31 +02:00
|
|
|
CHICKENPOX "Catch spam like 'l.ooks f|or th.is garb+age'" on \
|
|
|
|
EVILNUMBERS "Phone numbers, PO boxes, ... from spam " on \
|
2004-08-11 17:55:22 +02:00
|
|
|
FRENCH "Catches spam written in French" off \
|
|
|
|
GERMAN "Catches spam written in German" off \
|
2004-08-08 10:08:31 +02:00
|
|
|
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=
|
2004-08-11 17:55:22 +02:00
|
|
|
USE_BZIP2= yes
|
2004-08-08 10:08:31 +02:00
|
|
|
INSTALL_DIR= ${PREFIX}/${SPAMASS_CONF}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-08-11 17:55:22 +02:00
|
|
|
.if defined(WITH_AHBL)
|
|
|
|
SPAMASS_FILES+= 20_dnsbl_ahbl.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-08 10:08:31 +02:00
|
|
|
.if defined(WITH_AIRMAX)
|
|
|
|
SPAMASS_FILES+= airmax.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_ANTIDRUG)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= antidrug.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_BACKHAIR)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= backhair.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_BOGUS_VIRUS)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= bogus-virus-warnings.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-11 17:55:22 +02:00
|
|
|
.if defined(WITH_BRAZILIAN)
|
|
|
|
.for i in 24_br_wiki_BODY.cf 24_br_wiki_HEADER.cf 24_br_wiki_META.cf \
|
|
|
|
24_br_wiki_RAWBODY.cf 24_br_wiki_URI.cf
|
|
|
|
SPAMASS_FILES+= $i
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_CHICKENPOX)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= chickenpox.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_EVILNUMBERS)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= evilnumbers.cf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FRENCH)
|
|
|
|
SPAMASS_FILES+= french_rules.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-11 17:55:22 +02:00
|
|
|
.if defined(WITH_GERMAN)
|
|
|
|
.for i in 24_de_wiki_BODY.cf 24_de_wiki_HEADER.cf 24_de_wiki_URI.cf
|
|
|
|
SPAMASS_FILES+= $i
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_RANDOM)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= random.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_SARE)
|
2004-08-08 10:08:31 +02:00
|
|
|
.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
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if !defined(WITHOUT_WEEDS) && !defined(WITH_WEEDS2)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= weeds.cf
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 11:38:29 +02:00
|
|
|
.if defined(WITH_WEEDS2) && defined(WITHOUT_WEEDS)
|
2004-08-08 10:08:31 +02:00
|
|
|
SPAMASS_FILES+= weeds2.cf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_FILES= ${SPAMASS_FILES:S/^/${SPAMASS_CONF}\//}
|
|
|
|
|
2004-08-08 14:21:43 +02:00
|
|
|
do-build:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2004-08-08 10:08:31 +02:00
|
|
|
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>
|