blob: 7d5aea3efa01b231561a53bdebefe69022c100e1 (
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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
# $NetBSD: Makefile,v 1.1.1.1 2008/02/22 17:13:29 sborrill Exp $
DISTNAME= dansguardian-2.8.0.6.source
PKGNAME= dansguardian-2.8.0.6
CATEGORIES= www
MASTER_SITES= http://dansguardian.org/downloads/2/Stable/
MAINTAINER= sborrill@NetBSD.org
HOMEPAGE= http://dansguardian.org/
COMMENT= Fast, featureful web content filter for Squid proxy servers
WRKSRC= ${WRKDIR}/dansguardian-2.8.0.6
HAS_CONFIGURE= yes
MANCOMPRESSED= yes
RCD_SCRIPTS+= dansguardian
EGDIR= ${PREFIX}/share/examples/dansguardian
SUBST_CLASSES+= egconfpath
SUBST_STAGE.egconfpath= pre-configure
SUBST_MESSAGE.egconfpath= Setting example configuration path
SUBST_FILES.egconfpath= autoconf/*.in
SUBST_SED.egconfpath= -e 's,\$$(CONFFILELOCATION),${EGDIR}/,g'
SUBST_SED.egconfpath+= -e '/SYSVLOCATION/d'
SUBST_SED.egconfpath+= -e '/chmod.*dansguardian.pl/s,o\+x,+x,'
SUBST_CLASSES+= perlpath
SUBST_STAGE.perlpath= pre-configure
SUBST_MESSAGE.perlpath= Fixing path to perl executable
SUBST_FILES.perlpath= *.pl
SUBST_SED.perlpath= -e 's,/usr/bin,${PREFIX}/bin,g'
CONFIGURE_ARGS= --prefix=${PREFIX:Q} \
--cgidir=/libexec/cgi-bin/ \
--sysconfdir=/etc/dansguardian/ \
--bindir=/sbin/ \
--mandir=/man/ \
--logdir=/var/log/
DEPENDS+= squid>=2.5:../../www/squid
.for f in logrotation pics transparent1x1.gif \
dansguardian.conf \
dansguardianf1.conf \
bannedextensionlist \
bannediplist \
bannedmimetypelist \
bannedphraselist \
bannedregexpurllist \
bannedsitelist \
bannedurllist \
banneduserlist \
contentregexplist \
exceptioniplist \
exceptionphraselist \
exceptionsitelist \
exceptionurllist \
exceptionuserlist \
filtergroupslist \
greysitelist \
greyurllist \
weightedphraselist \
phraselists/badwords/weighted_dutch \
phraselists/badwords/weighted_french \
phraselists/badwords/weighted_german \
phraselists/badwords/weighted_portuguese \
phraselists/badwords/weighted_spanish \
phraselists/chat/weighted \
phraselists/chat/weighted_italian \
phraselists/drugadvocacy/weighted \
phraselists/gambling/banned \
phraselists/gambling/banned_portuguese \
phraselists/gambling/weighted \
phraselists/gambling/weighted_portuguese \
phraselists/games/weighted \
phraselists/goodphrases/exception \
phraselists/goodphrases/exception_email \
phraselists/goodphrases/weighted_general \
phraselists/goodphrases/weighted_general_danish \
phraselists/goodphrases/weighted_general_portuguese \
phraselists/goodphrases/weighted_news \
phraselists/googlesearches/banned \
phraselists/gore/weighted \
phraselists/gore/weighted_portuguese \
phraselists/illegaldrugs/banned \
phraselists/illegaldrugs/banned_portuguese \
phraselists/illegaldrugs/weighted \
phraselists/illegaldrugs/weighted_portuguese \
phraselists/intolerance/banned_portuguese \
phraselists/intolerance/weighted \
phraselists/intolerance/weighted_portuguese \
phraselists/legaldrugs/weighted \
phraselists/malware/weighted \
phraselists/news/weighted \
phraselists/nudism/weighted \
phraselists/peer2peer/weighted \
phraselists/personals/weighted \
phraselists/personals/weighted_portuguese \
phraselists/pornography/banned \
phraselists/pornography/banned_portuguese \
phraselists/pornography/weighted \
phraselists/pornography/weighted_danish \
phraselists/pornography/weighted_dutch \
phraselists/pornography/weighted_french \
phraselists/pornography/weighted_german \
phraselists/pornography/weighted_italian \
phraselists/pornography/weighted_portuguese \
phraselists/pornography/weighted_spanish \
phraselists/proxies/weighted \
phraselists/sport/weighted \
phraselists/violence/weighted \
phraselists/violence/weighted_portuguese \
phraselists/warezhacking/weighted \
phraselists/weapons/weighted \
phraselists/weapons/weighted_portuguese \
phraselists/webmail/weighted \
languages/ReadMe \
languages/arspanish/messages \
languages/arspanish/template.html \
languages/bulgarian/messages \
languages/bulgarian/template.html \
languages/chinesebig5/messages \
languages/chinesebig5/template.html \
languages/chinesegb2312/messages \
languages/chinesegb2312/template.html \
languages/czech/messages \
languages/czech/template.html \
languages/danish/messages \
languages/danish/template.html \
languages/dutch/messages \
languages/dutch/template.html \
languages/french/messages \
languages/french/template.html \
languages/german/messages \
languages/german/template.html \
languages/hebrew/messages \
languages/hebrew/template.html \
languages/indonesian/messages \
languages/indonesian/template.html \
languages/italian/messages \
languages/italian/template.html \
languages/lithuanian/messages \
languages/lithuanian/template.html \
languages/mxspanish/messages \
languages/mxspanish/template.html \
languages/polish/messages \
languages/polish/template.html \
languages/portuguese/messages \
languages/portuguese/messagesaccents \
languages/portuguese/template.html \
languages/russian-1251/messages \
languages/russian-1251/template.html \
languages/slovak/messages \
languages/slovak/template.html \
languages/spanish/messages \
languages/spanish/template.html \
languages/swedish/messages \
languages/swedish/template.html \
languages/turkish/messages \
languages/turkish/template.html \
languages/ukenglish/messages \
languages/ukenglish/template.html
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/dansguardian/${f}
.endfor
pre-install:
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian; \
for dir in badwords chat drugadvocacy gambling games \
goodphrases googlesearches gore illegaldrugs \
intolerance legaldrugs malware news nudism \
peer2peer personals pornography proxies sport \
violence warezhacking weapons webmail; \
do \
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian/phraselists/$${dir}; \
done; \
for dir in arspanish bulgarian chinesebig5 chinesegb2312 \
czech danish dutch french german hebrew \
indonesian italian lithuanian mxspanish polish \
portuguese russian-1251 slovak spanish \
swedish turkish ukenglish; \
do \
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/dansguardian/languages/$${dir}; \
done
show-conffiles:
cd ${WRKSRC}; \
for file in *.conf *list; \
do \
${PRINTF} "\\t$${file}\\t\\\\\\n"; \
done; \
for dir in phraselists/* languages/*; \
do \
if [ -d $${dir} ]; then \
for file in $${dir}/*; \
do \
${PRINTF} "\\t$${file}\\t\\\\\\n"; \
done; \
else \
${PRINTF} "\\t$${dir}\\t\\\\\\n"; \
fi; \
done
USE_LANGUAGES= c c++
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|