blob: b6975b9d7c81437a33029ce77b13deed6ffd33c2 (
plain) (
blame)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
# New ports collection makefile for: spamass-rules
# Date created: 20040725
# Whom: mranner@inode.at
#
# $FreeBSD$
#
PORTNAME= spamass-rules
PORTVERSION= 20050515
CATEGORIES= mail
MASTER_SITES= http://www.ranner.jawa.at/stuff/ \
http://web.inforum.at/downloads/
MAINTAINER= mranner@inode.at
COMMENT= Custom rulesets for SpamAssassin
RUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
OPTIONS= AHBL "Check AHBL Blacklist" off \
AIRMAX "Some custom rulesets" off \
ANTIDRUG "Already included in SA 3.0" off \
BACKHAIR "Catch those ugly, unsightly HTML tags" on \
BOGUS_VIRUS "Catch 'collateral spam' caused by viruses" on \
BRAZILIAN "Catches spam written in Portuguese" off \
CHICKENPOX "Catch spam like 'l.ooks f|or th.is garb+age'" on \
CHINESE "Catches spam written in Chinese" off \
EVILNUMBERS "Phone numbers, PO boxes, ... from spam " on \
FRENCH "Catches spam written in French" off \
GERMAN "Catches spam written in German" off \
MANGLED "Looks for obfuscated/gappy words" off \
MIMEVLD "Some mime validation rules" off \
RANDOM "Detects spamware mistakes like: %RANDOM_WORD" on \
ROMANIAN "Catches spam written in Romanian" off \
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 \
SAREH "Installs SARE high risk 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
SUB_FILES= pkg-message
NO_BUILD= yes
NO_WRKSUBDIR= yes
SPAMASS_CONF= etc/mail/spamassassin
SPAMASS_FILES=
USE_BZIP2= yes
INSTALL_DIR= ${PREFIX}/${SPAMASS_CONF}
.include <bsd.port.pre.mk>
.if defined(WITH_AHBL)
SPAMASS_FILES+= 20_dnsbl_ahbl.cf
.endif
.if defined(WITH_AIRMAX)
SPAMASS_FILES+= airmax.cf
.endif
.if defined(WITH_ANTIDRUG)
SPAMASS_FILES+= antidrug.cf
.endif
.if !defined(WITHOUT_BACKHAIR)
SPAMASS_FILES+= backhair.cf
.endif
.if !defined(WITHOUT_BOGUS_VIRUS)
SPAMASS_FILES+= bogus-virus-warnings.cf
.endif
.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
.if !defined(WITHOUT_CHICKENPOX)
SPAMASS_FILES+= chickenpox.cf
.endif
.if defined(WITH_CHINESE)
SPAMASS_FILES+= chinese_rules.cf
.endif
.if !defined(WITHOUT_EVILNUMBERS)
SPAMASS_FILES+= evilnumbers.cf
.endif
.if defined(WITH_FRENCH)
SPAMASS_FILES+= french_rules.cf
.endif
.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
.if defined(WITH_MANGLED)
SPAMASS_FILES+= mangled.cf
.endif
.if defined(WITH_MIMEVLD)
SPAMASS_FILES+= mime_validate.cf
.endif
.if !defined(WITHOUT_RANDOM)
SPAMASS_FILES+= random.cf
.endif
.if defined(WITH_ROMANIAN)
SPAMASS_FILES+= blacklist_ro.cf
.endif
.if !defined(WITHOUT_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_obfu0.cf \
70_sare_random.cf 70_sare_specific.cf 70_sare_spoof.cf \
70_sare_unsub.cf 70_sare_uri.cf 72_sare_redirect_post3.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 70_sare_obfu1.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 70_sare_obfu2.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 70_sare_obfu3.cf
SPAMASS_FILES+= $i
.endfor
.endif
.if defined(WITH_SAREH)
SPAMASS_FILES+= 70_sare_highrisk.cf
.endif
.if defined(WITH_TRIPWIRE)
SPAMASS_FILES+= 99_FVGT_Tripwire.cf
.endif
.if !defined(WITHOUT_WEEDS) && !defined(WITH_WEEDS2)
SPAMASS_FILES+= weeds.cf
.endif
.if defined(WITH_WEEDS2) && defined(WITHOUT_WEEDS)
SPAMASS_FILES+= weeds2.cf
.endif
PLIST_FILES= ${SPAMASS_FILES:S/^/${SPAMASS_CONF}\//}
do-build:
@${DO_NADA}
do-install:
@${MKDIR} ${INSTALL_DIR}
@${INSTALL_DATA} ${SPAMASS_FILES:S/^/${WRKSRC}\//} ${INSTALL_DIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|