/[smecontribs]/rpms/smeserver-dansguardian-panel/contribs9/smeserver-dansguardian-panel.spec
ViewVC logotype

Contents of /rpms/smeserver-dansguardian-panel/contribs9/smeserver-dansguardian-panel.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download)
Sat Dec 7 04:03:49 2019 UTC (4 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-17, HEAD
Changes since 1.11: +6 -1 lines
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.11-17
- apply locale 2019-12-07 patch

1 %define name smeserver-dansguardian-panel
2 %define version 2.11
3 %define release 17
4 Summary: SMEserver panel to set up dansguardian to filter www content.
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 Vendor: dungog.net
9 URL: http://www.dungog.net/wiki
10 Distribution: SME Server
11 Group: SMEServer/addon
12 Source: %{name}-%{version}.tar.gz
13 Patch0: smeserver-dansguardian-panel-2.11-locale-2013-07-14.patch
14 Patch1: smeserver-dansguardian-panel-2.11-x64sup.patch
15 Patch2: smeserver-dansguardian-panel-2.11-locale-2016-03-09.patch
16 Patch3: smeserver-dansguardian-panel-2.11-MainConfigTemplates.patch
17 Patch4: smeserver-dansguardian-panel-2.11-locale-2016-05-26.patch
18 Patch5: smeserver-dansguardian-panel-2.11-newPerlModulesPath.patch
19 Patch6: smeserver-dansguardian-panel-2.11-locale-2017-02-02.patch
20 Patch7: smeserver-dansguardian-panel-2.11-locale-2017-12-02.patch
21 Patch8: smeserver-dansguardian-panel-2.11-locale-2018-12-17.patch
22 Patch9: smeserver-dansguardian-panel-2.11-navigation.patch
23 Patch10: smeserver-dansguardian-panel-2.11-locale-2019-01-02.patch
24 Patch11: smeserver-dansguardian-panel-2.11-en-lang-wikiurl.patch
25 Patch12: smeserver-dansguardian-panel-2.11-locale-2019-01-10.patch
26 Patch13: smeserver-dansguardian-panel-2.11-locale-2019-12-07.patch
27 Packager: Stephen Noble <support@dungog.net>
28 BuildRoot: /var/tmp/%{name}-%{version}
29 BuildArchitectures: noarch
30 Requires: e-smith-release >= 8
31 Requires: e-smith-formmagick >= 1.4.0-10
32 Requires: smeserver-dansguardian >= 2.9-5
33 Requires: dansguardian >= 2.10
34 AutoReqProv: no
35 License: dungog.net
36 BuildRequires: e-smith-devtools >= 1.13.1-03
37
38 %description
39 rpm to setup dansguardian.org web content filter
40 with a server-manager panel, /etc/dansguardian templates
41 and other custom modifications to tie into ongong smeserver changes.
42 Requires dansguardian and smeserver-dansguardian
43
44 %changelog
45 * Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 2.11-17
46 - apply locale 2019-12-07 patch
47
48 * Fri Jan 11 2019 Terry Fage <tfage@yahoo.com.au> 2.11.16
49 - apply locale update 2019.01.10 [SME: 9526]
50
51 * Wed Jan 08 2019 Terry Fage <tfage@yahoo.com.au> 2.11.15
52 - edit en lang file url for wiki help file
53 - clean up format and bug number errors in spec file [SME: 9526]
54
55 * Wed Jan 02 2019 Terry fage <tfage@yahoo.com.au> 2.11.14
56 - apply locale 2019-01-02
57 - edit mismatch tags in pootle lang file [SME: 9526]
58
59 * Mon Dec 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.11-13
60 - Update URL wiki help
61 - fix unknown nagivation panel error [SME: 9526]
62 - jump release number from 12-13 due to numbering error
63
64 * Sun Dec 09 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.11-11
65 - apply locale 2018-12-17 patch
66
67 * Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 2.11-10
68 - apply locale 2017-12-02 patch
69
70 * Wed Feb 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-9.sme
71 - apply local 2017-02-02.patch
72
73 * Thu May 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-8.sme
74 - fix wrong path to module [SME: 9526]
75
76 * Thu May 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-7.sme
77 - fix needing new dansguardian.conf template [SME: 9526]
78 - thank you to Steve Semple to parse the file
79 - apply locale 2016-05-26 patch
80
81 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 2.11-6.sme
82 - apply locale 2016-03-09 patch
83
84 * Wed Sep 25 2013 JP Pialasse <tests@pialasse.com> 2.11-5.sme
85 - x64 support [SME: 7866]
86
87 * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.11-3.sme
88 - apply locale 2013-07-14 patch
89
90 * Tue Jun 25 2013 JP Pialasse <tests@pialasse.com> 2.11-2
91 - initial import
92 - thanks to Stephen Noble permission
93 - added devtools to build requires
94
95 * Fri Dec 12 2008 Stephen Noble <support@dungog.net> 2.10-2
96 - fix cosmetic uninitialized values in logs
97
98 * Fri Dec 12 2008 Stephen Noble <support@dungog.net> 2.10-1
99 - update Requires to dansguardian >= 2.10
100
101 * Tue Nov 18 2008 Stephen Noble <support@dungog.net> 2.9-20
102 - force safe search on Google,Yahoo,Metacrawler,Singingfish,Lycos
103
104 * Tue Oct 21 2008 Stephen Noble <support@dungog.net> 2.9-19
105 - new proxy method LDAP, beta-see wiki
106
107 * Thu May 08 2008 Stephen Noble <support@dungog.net> 2.9-18
108 - fix bypass AV label in filtergroup page
109
110 * Thu Apr 24 2008 Stephen Noble <support@dungog.net> 2.9-17
111 - add fields for proxybypass and portblock
112
113 * Sun Apr 20 2008 Stephen Noble <support@dungog.net> 2.9-16
114 - fixed dansguardian-filtergroup fragment
115
116 * Fri Apr 4 2008 Stephen Noble <support@dungog.net> 2.9-15
117 - fixed 3128 portblocking
118
119 * Sat Mar 22 2008 Stephen Noble <support@dungog.net> 2.9-14
120 - Removed non FM panel, testing
121
122 * Sun Mar 16 2008 Stephen Noble <support@dungog.net> 2.9-7
123 - Initial FM version
124
125 * Sat Dec 22 2007 Stephen Noble <support@dungog.net> 2.9-6
126 - 'Block all file and mimetypes' checkbox fixed
127
128 * Sat Dec 22 2007 Stephen Noble <support@dungog.net> 2.9-5
129 - split banning https to seperate check box
130
131 * Sat Nov 10 2007 Stephen Noble <support@dungog.net> 2.9-4
132 - adjust config files, remove -g and -Q options
133 - denied.pl, very quiet denied page
134
135 * Sun Oct 28 2007 Stephen Noble <support@dungog.net> 2.9-3
136 - upgrade to require dans 2.9.9.1
137 - help file is now at dungog.net/wiki
138 - fixed display of phraselists, badwords & google searches
139 - blanket ban of extension & mimetype added
140 - extension & mimetype override clarified
141
142 * Sat Jun 09 2007 Stephen Noble <support@dungog.net>
143 - *main page now uses -Q restart, (& -r, reload, this applies filtering on IP changes)
144 - -Q kill any running copy AND start a new one with current options.
145 - -r closes all connections and reloads config files by issuing a HUP,
146 - but this does not reset the maxchildren option.
147 - *filter group page uses -g
148 - -g gently restarts by not closing all current connections and only reloads
149 - filter group config files by issuing a USR1.
150
151
152 * Mon Oct 2 2006 Stephen Noble <support@dungog.net>
153 - update to dansguardian 2.9 (beta)
154 - regexp checks requires update of pcre rpm
155 -
156 - exception group and banned group removed
157 -
158 - global group for most lists added
159 - settings stored in /home/e-smith/db/dungog/*f0
160 - bypass dansguardian and squid authentication in
161 - Common > modify > entire domain > allow = exceptionsitelistf0
162 -
163 - default list settings stored in *f1
164 - extra groups *f4 and *f5 added
165 - db for language added
166 -
167 - example scripts tproxy and dproxy added, reconfigure with cron
168 -
169 - each group (*f1,*f2 etc) can have different settings for:
170 - banned/filtered/unfiltered
171 - time restriction to be banned/filtered/unfiltered
172 - have a bypass link
173 - virus scanned
174 - reporting level
175 - custom denied page
176 - filter lists (except AVexceptions which are global)
177 - check boxes for urlregexp proxies (ok), urlregexp safesearch (not working?)
178 - urlregexp for porn and ads tweeked
179 - new lists, regexp modify url, regexp replace content, allow mine/type
180 - , allow file type, allow files from site
181 - [2.9-1]
182
183 * Wed Aug 30 2006 Stephen Noble <support@dungog.net>
184 - dansguardian.pl modified, old version is .old in Primary cgi-bin
185 - mailto link and back link added, bypass wording changed
186 - ident working
187 - [1.2-9]
188
189 * Thu Apr 6 2006 Stephen Noble <support@dungog.net>
190 - default exceptionsitelist used to bypass dans and squid auth
191 - reporting options changed, bypass link possible without rudeness
192 - restarting comment...
193 - [1.2-8]
194
195 * Wed Mar 8 2006 Stephen Noble <support@dungog.net>
196 - Primary/cgi-bin files chmod differently
197 - Requires dansguardian
198 - loglevel warning fixed
199 - [1.2-7]
200
201 * Mon Feb 6 2006 Stephen Noble <support@dungog.net>
202 - phraselist and blacklist db's moved to correct dir
203 - [1.2-6]
204
205 * Fri Dec 2 2005 Stephen Noble <support@dungog.net>
206 - dans restart button added
207 - [1.2-5]
208
209 * Wed Nov 9 2005 Stephen Noble <support@dungog.net>
210 - ident and proxyauth only enabled when selected
211 - filtergroup for proxyuser/ncsa fixed
212 - dans starts last with a 5 second delay on a save all
213 - [1.2-4]
214
215 * Sat Nov 5 2005 Stephen Noble <support@dungog.net>
216 - simplified panel
217 - proxy and port blocking db values seperated
218 - [1.2-3]
219
220 * Mon Oct 3 2005 Stephen Noble <support@dungog.net>
221 - modified service restarting
222 - instruction and fragments for ncsa users, passwords and groups
223 - [1.2-2]
224
225 * Fri Sep 16 2005 Stephen Noble <support@dungog.net>
226 - SME7 initial version
227 - runs under daemontools
228 - for DG 2.8.0.6-el4 no patches
229 - [1.2-1]
230
231 * Fri Sep 16 2005 Stephen Noble <support@dungog.net>
232 - dgav updated to 6.4.3 based on DG 2.8.0.6
233 - google patch not included
234 - AVexceptions moved to filtergroups
235 - phraselist expanded and explained better
236 - note on rsyncing mesd blacklists
237 - requires 2.8.0.6-av643
238 - 2.8-21
239
240 <snip>
241 * Tue Nov 6 2001 Stephen Noble <stephen@dungog.net> 0.1-1
242 - initial release
243
244 %prep
245 %setup
246 %patch0 -p1
247 %patch1 -p1
248 %patch2 -p1
249 %patch3 -p1
250 %patch4 -p1
251 %patch5 -p1
252 %patch6 -p1
253 %patch7 -p1
254 %patch8 -p1
255 %patch9 -p1
256 %patch10 -p1
257 %patch11 -p1
258 %patch12 -p1
259 %patch13 -p1
260
261 %build
262 perl createlinks
263
264 /sbin/e-smith/validate-lexicon root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/dungogdansguardian
265 /sbin/e-smith/validate-lexicon root/etc/e-smith/web/functions/dungogdansguardian
266
267 mkdir -p root/etc/e-smith/db/dungog/defaults/dansguardian
268 echo "settings" > root/etc/e-smith/db/dungog/defaults/dansguardian/type
269 echo "2" > root/etc/e-smith/db/dungog/defaults/dansguardian/loglevel
270 echo "3" > root/etc/e-smith/db/dungog/defaults/dansguardian/logfileformat
271 echo "8080" > root/etc/e-smith/db/dungog/defaults/dansguardian/port
272 echo "transparent" > root/etc/e-smith/db/dungog/defaults/dansguardian/proxyaccess
273 echo "none" > root/etc/e-smith/db/dungog/defaults/dansguardian/contentscanner
274 echo "3" > root/etc/e-smith/db/dungog/defaults/dansguardian/reportinglevel
275
276
277
278 for link in f0 f1 f2 f3 f4 f5
279 do
280 mkdir -p root/etc/dansguardian/lists/$link
281 mkdir -p root/etc/e-smith/db/dungog/defaults/dansguardian$link
282 echo "settings" > root/etc/e-smith/db/dungog/defaults/dansguardian$link/type
283 done
284
285 for link in badwords domainsforsale gambling googlesearches illegaldrugs malware nudism pornography safelabel translation violence webmail chat drugadvocacy games gore intolerance music peer2peer proxies secretsocieties travel warezhacking conspiracy forums goodphrases idtheft legaldrugs news personals rta sport upstreamfilter weapons
286 do
287 mkdir -p root/etc/e-smith/db/phraselist/defaults/$link
288 echo "list" > root/etc/e-smith/db/phraselist/defaults/$link/type
289 done
290
291 for link in ads adult aggressive artnudes audio-video beerliquorinfo beerliquorsale cellphones chat childcare clothing culnary dialers drugs ecommerce entertainment forums frencheducation gambling gardening government hacking homerepair hygiene jewelry jobsearch kidstimewasting news mail onlineauctions onlinegames onlinepayment personalfinance pets porn proxy publicite radio redirector religion ringtones searchengines sportnews sports spyware updatesites vacation violence virusinfected warez weapons webmail whitelist
292 do
293 mkdir -p root/etc/e-smith/db/blacklist/defaults/$link
294 echo "list" > root/etc/e-smith/db/blacklist/defaults/$link/type
295 done
296
297 %install
298 rm -rf $RPM_BUILD_ROOT
299 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
300 rm -f %{name}-%{version}-filelist
301 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
302 --file '/usr/bin/rsync-sgbl' 'attr(0755,root,root)' \
303 --file '/usr/bin/tproxy' 'attr(0755,root,root)' \
304 --file '/usr/bin/dproxy' 'attr(0755,root,root)' \
305 --file '/home/e-smith/files/ibays/Primary/cgi-bin/dansguardian.pl' 'attr(4755,root,root)' \
306 --file '/home/e-smith/files/ibays/Primary/cgi-bin/denied.pl' 'attr(4755,root,root)' \
307 > %{name}-%{version}-filelist
308 echo "%doc " >> %{name}-%{version}-filelist
309
310 %clean
311 cd ..
312 rm -rf %{name}-%{version}
313
314 %pre
315
316 %preun
317 %post
318 touch /home/e-smith/db/dungog
319 touch /etc/dansguardian/lists/phraselists/goodphrases/weighted
320 touch /home/e-smith/files/ibays/Primary/cgi-bin/notempty
321
322 #&upgrades
323
324 %postun
325 #uninstalls
326 if [ $1 = 0 ] ; then
327 /sbin/e-smith/db configuration setprop squid TransparentPort 3128
328 /sbin/e-smith/expand-template /etc/httpd/conf/proxy/proxy.pac
329 /sbin/e-smith/expand-template /etc/squid/squid.conf
330 echo 'optionally run signal-event network-create to complete uninstall'
331 fi
332
333 #&upgrades
334
335 %files -f %{name}-%{version}-filelist
336 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed