summaryrefslogtreecommitdiff
path: root/mail/spamass-rules/Makefile
blob: 2d1f434ff690e67f61b647146bf49f82c2f221a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97

PORTNAME=	spamass-rules
PORTVERSION=	20190101
CATEGORIES=	mail
MASTER_SITES=	http://www.ranner.eu/stuff/

MAINTAINER=	michael@ranner.eu
COMMENT=	Custom rulesets for SpamAssassin

RUN_DEPENDS=	spamc:mail/spamassassin

USES=		tar:bzip2

OPTIONS_DEFINE=	AIRMAX BACKHAIR BOGUS_VIRUS CHICKENPOX DBRACKETS \
		EVILNUMBERS MANGLED MIMEVLD RANDOM TRIPWIRE

OPTIONS_SINGLE=		WEEDS
OPTIONS_GROUP=		LANG BLACKLIST

OPTIONS_SINGLE_WEEDS=	WEEDS1 WEEDS2
WEEDS_DESC=		Looks at alphanum, hex, lower-, uppercase chars

OPTIONS_GROUP_LANG=	CHINESE GERMAN GREEK POLISH
LANG_DESC=		Catch spam written in...

OPTIONS_GROUP_BLACKLIST=AHBL MALWARE MSPIKE NIXSPAM
BLACKLIST=		DNS Blacklists

OPTIONS_DEFAULT=	BOGUS_VIRUS DBRACKETS MIMEVLD MSPIKE NIXSPAM RANDOM TRIPWIRE WEEDS WEEDS2

AHBL_DESC=		AHBL Blacklist
MALWARE_DESC=		Malware Patrol
MSPIKE_DESC=		mailspike.net blacklist
NIXSPAM_DESC=		NiX Spam blacklist

AIRMAX_DESC=		Some custom rulesets
BACKHAIR_DESC=		Catch those ugly, unsightly HTML tags
BOGUS_VIRUS_DESC=	Catch 'collateral spam' caused by viruses
CHICKENPOX_DESC=	Catch spam like 'l.ooks f|or th.is garb+age'
DBRACKETS_DESC=		Double-brackets around To header address
EVILNUMBERS_DESC=	Phone numbers, PO boxes, ... from spam
MANGLED_DESC=		Looks for obfuscated/gappy words
MIMEVLD_DESC=		Some mime validation rules
RANDOM_DESC=		Detects spamware mistakes like: %RANDOM_WORD
TRIPWIRE_DESC=		Matches 3 chars that shouldn't be together

CHINESE_DESC=		Chinese
GERMAN_DESC=		German
GREEK_DESC=		Greek
POLISH_DESC=		Polish

WEEDS1_DESC=		Less restrictive rules
WEEDS2_DESC=		More restrictive rules

SUB_FILES=		pkg-message
NO_BUILD=		yes
NO_WRKSUBDIR=		yes
DATADIR=		${PREFIX}/etc/mail/spamassassin

AHBL_CONF=		20_dnsbl_ahbl.cf
AIRMAX_CONF=		airmax.cf
BACKHAIR_CONF=		backhair.cf
BOGUS_VIRUS_CONF=	bogus-virus-warnings.cf
CHICKENPOX_CONF=	chickenpox.cf
CHINESE_CONF=		chinese_rules.cf
DBRACKETS_CONF=		99_SMF_BRACKETS_TO.cf
EVILNUMBERS_CONF=	evilnumbers.cf
GERMAN_CONF=		70_zmi_german.cf
GREEK_CONF=		gr_domain.cf
MALWARE_CONF=		99_malware_patrol_blocklist.cf
MANGLED_CONF=		mangled.cf
MIMEVLD_CONF=		mime_validate.cf
MSPIKE_CONF=		10_dnsbl_mspike.cf
NIXSPAM_CONF=		20_dnsbl_nixspam.cf
POLISH_CONF=		25_body_tests_pl.cf
RANDOM_CONF=		random.cf
TRIPWIRE_CONF=		99_FVGT_Tripwire.cf
WEEDS1_CONF=		weeds.cf
WEEDS2_CONF=		weeds2.cf

.include <bsd.port.options.mk>

.for opt in ${PORT_OPTIONS}
.  if defined(${opt}_CONF)
PLIST_FILES+=	${DATADIR_REL}/${${opt}_CONF}
.  endif
.endfor

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
.for opt in ${PORT_OPTIONS}
.  if defined(${opt}_CONF)
	${INSTALL_DATA} ${WRKSRC}/${${opt}_CONF} ${STAGEDIR}${DATADIR}
.  endif
.endfor

.include <bsd.port.mk>