| @@ -1,178 +1,178 @@ | | | @@ -1,178 +1,178 @@ |
1 | # $NetBSD: Makefile,v 1.3 2008/04/03 10:19:17 sborrill Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2008/04/16 14:55:29 sborrill Exp $ |
2 | | | 2 | |
3 | DISTNAME= dansguardian-2.8.0.6.source | | 3 | DISTNAME= dansguardian-2.8.0.6.source |
4 | PKGNAME= dansguardian-2.8.0.6 | | 4 | PKGNAME= dansguardian-2.8.0.6 |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 3 |
6 | CATEGORIES= www | | 6 | CATEGORIES= www |
7 | MASTER_SITES= http://dansguardian.org/downloads/2/Stable/ | | 7 | MASTER_SITES= http://dansguardian.org/downloads/2/Stable/ |
8 | | | 8 | |
9 | MAINTAINER= sborrill@NetBSD.org | | 9 | MAINTAINER= sborrill@NetBSD.org |
10 | HOMEPAGE= http://dansguardian.org/ | | 10 | HOMEPAGE= http://dansguardian.org/ |
11 | COMMENT= Fast, featureful web content filter for Squid proxy servers | | 11 | COMMENT= Fast, featureful web content filter for Squid proxy servers |
12 | | | 12 | |
13 | WRKSRC= ${WRKDIR}/dansguardian-2.8.0.6 | | 13 | WRKSRC= ${WRKDIR}/dansguardian-2.8.0.6 |
14 | HAS_CONFIGURE= yes | | 14 | HAS_CONFIGURE= yes |
15 | MANCOMPRESSED= yes | | 15 | MANCOMPRESSED= yes |
16 | RCD_SCRIPTS+= dansguardian | | 16 | RCD_SCRIPTS+= dansguardian |
17 | | | 17 | |
18 | PKG_SYSCONFSUBDIR= dansguardian | | 18 | PKG_SYSCONFSUBDIR= dansguardian |
19 | | | 19 | |
20 | EGDIR= ${PREFIX}/share/examples/dansguardian | | 20 | EGDIR= ${PREFIX}/share/examples/dansguardian |
21 | | | 21 | |
22 | SUBST_CLASSES+= egconfpath | | 22 | SUBST_CLASSES+= egconfpath |
23 | SUBST_STAGE.egconfpath= pre-configure | | 23 | SUBST_STAGE.egconfpath= pre-configure |
24 | SUBST_MESSAGE.egconfpath= Setting example configuration path | | 24 | SUBST_MESSAGE.egconfpath= Setting example configuration path |
25 | SUBST_FILES.egconfpath= autoconf/*.in | | 25 | SUBST_FILES.egconfpath= autoconf/*.in |
26 | SUBST_SED.egconfpath= -e 's,\$$(CONFFILELOCATION),${EGDIR}/,g' | | 26 | SUBST_SED.egconfpath= -e 's,\$$(CONFFILELOCATION),${EGDIR}/,g' |
27 | SUBST_SED.egconfpath+= -e '/SYSVLOCATION/d' | | 27 | SUBST_SED.egconfpath+= -e '/SYSVLOCATION/d' |
28 | SUBST_SED.egconfpath+= -e '/chmod.*dansguardian.pl/s,o\+x,+x,' | | 28 | SUBST_SED.egconfpath+= -e '/chmod.*dansguardian.pl/s,o\+x,+x,' |
29 | | | 29 | |
30 | SUBST_CLASSES+= perlpath | | 30 | SUBST_CLASSES+= perlpath |
31 | SUBST_STAGE.perlpath= pre-configure | | 31 | SUBST_STAGE.perlpath= pre-configure |
32 | SUBST_MESSAGE.perlpath= Fixing path to perl executable | | 32 | SUBST_MESSAGE.perlpath= Fixing path to perl executable |
33 | SUBST_FILES.perlpath= *.pl | | 33 | SUBST_FILES.perlpath= *.pl |
34 | SUBST_SED.perlpath= -e 's,/usr/bin,${PREFIX}/bin,g' | | 34 | SUBST_SED.perlpath= -e 's,/usr/bin,${PREFIX}/bin,g' |
35 | | | 35 | |
36 | DANSGUARDIAN_USER?= nobody | | 36 | DANSGUARDIAN_USER?= nobody |
37 | DANSGUARDIAN_GROUP?= nobody | | 37 | DANSGUARDIAN_GROUP?= nobody |
38 | | | 38 | |
39 | CONFIGURE_ARGS= --prefix=${PREFIX:Q} \ | | 39 | CONFIGURE_ARGS= --prefix=${PREFIX:Q} \ |
40 | --cgidir=/libexec/cgi-bin/ \ | | 40 | --cgidir=/libexec/cgi-bin/ \ |
41 | --sysconfdir=/etc/dansguardian/ \ | | 41 | --sysconfdir=/etc/dansguardian/ \ |
42 | --bindir=/sbin/ \ | | 42 | --bindir=/sbin/ \ |
43 | --mandir=/man/ \ | | 43 | --mandir=/man/ \ |
44 | --runas_usr=${DANSGUARDIAN_USER} \ | | 44 | --runas_usr=${DANSGUARDIAN_USER} \ |
45 | --runas_grp=${DANSGUARDIAN_GROUP} \ | | 45 | --runas_grp=${DANSGUARDIAN_GROUP} \ |
46 | --logdir=${VARBASE}/log/dansguardian/ | | 46 | --logdir=${VARBASE}/log/dansguardian/ |
47 | | | 47 | |
48 | OWN_DIRS+= ${VARBASE}/log/dansguardian | | 48 | OWN_DIRS+= ${VARBASE}/log/dansguardian |
49 | OWN_DIRS_PERMS+= ${VARBASE}/log/dansguardian \ | | 49 | OWN_DIRS_PERMS+= ${VARBASE}/log/dansguardian \ |
50 | ${DANSGUARDIAN_USER} ${DANSGUARDIAN_GROUP} 0755 | | 50 | ${DANSGUARDIAN_USER} ${DANSGUARDIAN_GROUP} 0755 |
51 | | | 51 | |
52 | DEPENDS+= squid>=2.5:../../www/squid | | 52 | DEPENDS+= squid>=2.5:../../www/squid |
53 | | | 53 | |
54 | .for f in logrotation pics transparent1x1.gif \ | | 54 | .for f in logrotation pics transparent1x1.gif \ |
55 | dansguardian.conf \ | | 55 | dansguardian.conf \ |
56 | dansguardianf1.conf \ | | 56 | dansguardianf1.conf \ |
57 | bannedextensionlist \ | | 57 | bannedextensionlist \ |
58 | bannediplist \ | | 58 | bannediplist \ |
59 | bannedmimetypelist \ | | 59 | bannedmimetypelist \ |
60 | bannedphraselist \ | | 60 | bannedphraselist \ |
61 | bannedregexpurllist \ | | 61 | bannedregexpurllist \ |
62 | bannedsitelist \ | | 62 | bannedsitelist \ |
63 | bannedurllist \ | | 63 | bannedurllist \ |
64 | banneduserlist \ | | 64 | banneduserlist \ |
65 | contentregexplist \ | | 65 | contentregexplist \ |
66 | exceptioniplist \ | | 66 | exceptioniplist \ |
67 | exceptionphraselist \ | | 67 | exceptionphraselist \ |
68 | exceptionsitelist \ | | 68 | exceptionsitelist \ |
69 | exceptionurllist \ | | 69 | exceptionurllist \ |
70 | exceptionuserlist \ | | 70 | exceptionuserlist \ |
71 | filtergroupslist \ | | 71 | filtergroupslist \ |
72 | greysitelist \ | | 72 | greysitelist \ |
73 | greyurllist \ | | 73 | greyurllist \ |
74 | weightedphraselist \ | | 74 | weightedphraselist \ |
75 | phraselists/badwords/weighted_dutch \ | | 75 | phraselists/badwords/weighted_dutch \ |
76 | phraselists/badwords/weighted_french \ | | 76 | phraselists/badwords/weighted_french \ |
77 | phraselists/badwords/weighted_german \ | | 77 | phraselists/badwords/weighted_german \ |
78 | phraselists/badwords/weighted_portuguese \ | | 78 | phraselists/badwords/weighted_portuguese \ |
79 | phraselists/badwords/weighted_spanish \ | | 79 | phraselists/badwords/weighted_spanish \ |
80 | phraselists/chat/weighted \ | | 80 | phraselists/chat/weighted \ |
81 | phraselists/chat/weighted_italian \ | | 81 | phraselists/chat/weighted_italian \ |
82 | phraselists/drugadvocacy/weighted \ | | 82 | phraselists/drugadvocacy/weighted \ |
83 | phraselists/gambling/banned \ | | 83 | phraselists/gambling/banned \ |
84 | phraselists/gambling/banned_portuguese \ | | 84 | phraselists/gambling/banned_portuguese \ |
85 | phraselists/gambling/weighted \ | | 85 | phraselists/gambling/weighted \ |
86 | phraselists/gambling/weighted_portuguese \ | | 86 | phraselists/gambling/weighted_portuguese \ |
87 | phraselists/games/weighted \ | | 87 | phraselists/games/weighted \ |
88 | phraselists/goodphrases/exception \ | | 88 | phraselists/goodphrases/exception \ |
89 | phraselists/goodphrases/exception_email \ | | 89 | phraselists/goodphrases/exception_email \ |
90 | phraselists/goodphrases/weighted_general \ | | 90 | phraselists/goodphrases/weighted_general \ |
91 | phraselists/goodphrases/weighted_general_danish \ | | 91 | phraselists/goodphrases/weighted_general_danish \ |
92 | phraselists/goodphrases/weighted_general_portuguese \ | | 92 | phraselists/goodphrases/weighted_general_portuguese \ |
93 | phraselists/goodphrases/weighted_news \ | | 93 | phraselists/goodphrases/weighted_news \ |
94 | phraselists/googlesearches/banned \ | | 94 | phraselists/googlesearches/banned \ |
95 | phraselists/gore/weighted \ | | 95 | phraselists/gore/weighted \ |
96 | phraselists/gore/weighted_portuguese \ | | 96 | phraselists/gore/weighted_portuguese \ |
97 | phraselists/illegaldrugs/banned \ | | 97 | phraselists/illegaldrugs/banned \ |
98 | phraselists/illegaldrugs/banned_portuguese \ | | 98 | phraselists/illegaldrugs/banned_portuguese \ |
99 | phraselists/illegaldrugs/weighted \ | | 99 | phraselists/illegaldrugs/weighted \ |
100 | phraselists/illegaldrugs/weighted_portuguese \ | | 100 | phraselists/illegaldrugs/weighted_portuguese \ |
101 | phraselists/intolerance/banned_portuguese \ | | 101 | phraselists/intolerance/banned_portuguese \ |
102 | phraselists/intolerance/weighted \ | | 102 | phraselists/intolerance/weighted \ |
103 | phraselists/intolerance/weighted_portuguese \ | | 103 | phraselists/intolerance/weighted_portuguese \ |
104 | phraselists/legaldrugs/weighted \ | | 104 | phraselists/legaldrugs/weighted \ |
105 | phraselists/malware/weighted \ | | 105 | phraselists/malware/weighted \ |
106 | phraselists/news/weighted \ | | 106 | phraselists/news/weighted \ |
107 | phraselists/nudism/weighted \ | | 107 | phraselists/nudism/weighted \ |
108 | phraselists/peer2peer/weighted \ | | 108 | phraselists/peer2peer/weighted \ |
109 | phraselists/personals/weighted \ | | 109 | phraselists/personals/weighted \ |
110 | phraselists/personals/weighted_portuguese \ | | 110 | phraselists/personals/weighted_portuguese \ |
111 | phraselists/pornography/banned \ | | 111 | phraselists/pornography/banned \ |
112 | phraselists/pornography/banned_portuguese \ | | 112 | phraselists/pornography/banned_portuguese \ |
113 | phraselists/pornography/weighted \ | | 113 | phraselists/pornography/weighted \ |
114 | phraselists/pornography/weighted_danish \ | | 114 | phraselists/pornography/weighted_danish \ |
115 | phraselists/pornography/weighted_dutch \ | | 115 | phraselists/pornography/weighted_dutch \ |
116 | phraselists/pornography/weighted_french \ | | 116 | phraselists/pornography/weighted_french \ |
117 | phraselists/pornography/weighted_german \ | | 117 | phraselists/pornography/weighted_german \ |
118 | phraselists/pornography/weighted_italian \ | | 118 | phraselists/pornography/weighted_italian \ |
119 | phraselists/pornography/weighted_portuguese \ | | 119 | phraselists/pornography/weighted_portuguese \ |
120 | phraselists/pornography/weighted_spanish \ | | 120 | phraselists/pornography/weighted_spanish \ |
121 | phraselists/proxies/weighted \ | | 121 | phraselists/proxies/weighted \ |
122 | phraselists/sport/weighted \ | | 122 | phraselists/sport/weighted \ |
123 | phraselists/violence/weighted \ | | 123 | phraselists/violence/weighted \ |
124 | phraselists/violence/weighted_portuguese \ | | 124 | phraselists/violence/weighted_portuguese \ |
125 | phraselists/warezhacking/weighted \ | | 125 | phraselists/warezhacking/weighted \ |
126 | phraselists/weapons/weighted \ | | 126 | phraselists/weapons/weighted \ |
127 | phraselists/weapons/weighted_portuguese \ | | 127 | phraselists/weapons/weighted_portuguese \ |
128 | phraselists/webmail/weighted \ | | 128 | phraselists/webmail/weighted \ |
129 | languages/ReadMe | | 129 | languages/ReadMe |
130 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 130 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
131 | .endfor | | 131 | .endfor |
132 | | | 132 | |
133 | PHRASEDIRS= badwords chat drugadvocacy gambling games \ | | 133 | PHRASEDIRS= badwords chat drugadvocacy gambling games \ |
134 | goodphrases googlesearches gore illegaldrugs \ | | 134 | goodphrases googlesearches gore illegaldrugs \ |
135 | intolerance legaldrugs malware news nudism \ | | 135 | intolerance legaldrugs malware news nudism \ |
136 | peer2peer personals pornography proxies sport \ | | 136 | peer2peer personals pornography proxies sport \ |
137 | violence warezhacking weapons webmail | | 137 | violence warezhacking weapons webmail |
138 | | | 138 | |
139 | LANGUAGEDIRS= arspanish bulgarian chinesebig5 chinesegb2312 \ | | 139 | LANGUAGEDIRS= arspanish bulgarian chinesebig5 chinesegb2312 \ |
140 | czech danish dutch french german hebrew \ | | 140 | czech danish dutch french german hebrew \ |
141 | indonesian italian lithuanian mxspanish polish \ | | 141 | indonesian italian lithuanian mxspanish polish \ |
142 | portuguese russian-1251 slovak spanish \ | | 142 | portuguese russian-1251 slovak spanish \ |
143 | swedish turkish ukenglish | | 143 | swedish turkish ukenglish |
144 | | | 144 | |
145 | .for d in ${PHRASEDIRS} | | 145 | .for d in ${PHRASEDIRS} |
146 | OWN_DIRS+= ${PKG_SYSCONFDIR}/phraselists/${d} | | 146 | OWN_DIRS+= ${PKG_SYSCONFDIR}/phraselists/${d} |
147 | .endfor | | 147 | .endfor |
148 | | | 148 | |
149 | .for d in ${LANGUAGEDIRS} | | 149 | .for d in ${LANGUAGEDIRS} |
150 | OWN_DIRS+= ${PKG_SYSCONFDIR}/languages/${d} | | 150 | OWN_DIRS+= ${PKG_SYSCONFDIR}/languages/${d} |
151 | CONF_FILES+= ${EGDIR}/languages/${d}/messages \ | | 151 | CONF_FILES+= ${EGDIR}/languages/${d}/messages \ |
152 | ${PKG_SYSCONFDIR}/languages/${d}/messages | | 152 | ${PKG_SYSCONFDIR}/languages/${d}/messages |
153 | CONF_FILES+= ${EGDIR}/languages/${d}/template.html \ | | 153 | CONF_FILES+= ${EGDIR}/languages/${d}/template.html \ |
154 | ${PKG_SYSCONFDIR}/languages/${d}/template.html | | 154 | ${PKG_SYSCONFDIR}/languages/${d}/template.html |
155 | .endfor | | 155 | .endfor |
156 | | | 156 | |
157 | show-conffiles: | | 157 | show-conffiles: |
158 | cd ${WRKSRC}; \ | | 158 | cd ${WRKSRC}; \ |
159 | for file in *.conf *list; \ | | 159 | for file in *.conf *list; \ |
160 | do \ | | 160 | do \ |
161 | ${PRINTF} "\\t$${file}\\t\\\\\\n"; \ | | 161 | ${PRINTF} "\\t$${file}\\t\\\\\\n"; \ |
162 | done; \ | | 162 | done; \ |
163 | for dir in phraselists/* languages/*; \ | | 163 | for dir in phraselists/* languages/*; \ |
164 | do \ | | 164 | do \ |
165 | if [ -d $${dir} ]; then \ | | 165 | if [ -d $${dir} ]; then \ |
166 | for file in $${dir}/*; \ | | 166 | for file in $${dir}/*; \ |
167 | do \ | | 167 | do \ |
168 | ${PRINTF} "\\t$${file}\\t\\\\\\n"; \ | | 168 | ${PRINTF} "\\t$${file}\\t\\\\\\n"; \ |
169 | done; \ | | 169 | done; \ |
170 | else \ | | 170 | else \ |
171 | ${PRINTF} "\\t$${dir}\\t\\\\\\n"; \ | | 171 | ${PRINTF} "\\t$${dir}\\t\\\\\\n"; \ |
172 | fi; \ | | 172 | fi; \ |
173 | done | | 173 | done |
174 | | | 174 | |
175 | USE_LANGUAGES= c c++ | | 175 | USE_LANGUAGES= c c++ |
176 | | | 176 | |
177 | .include "../../lang/perl5/buildlink3.mk" | | 177 | .include "../../lang/perl5/buildlink3.mk" |
178 | .include "../../mk/bsd.pkg.mk" | | 178 | .include "../../mk/bsd.pkg.mk" |