/[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.9 - (show annotations) (download)
Wed Jan 2 04:48:08 2019 UTC (5 years, 10 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-14
Changes since 1.8: +7 -1 lines
* Wed Jan 02 2019 Terry fage <tfage@yahoo.com.au> 2.11.14
- apply locale 2019-01-02
- edit mismatch tags in pootle lang file [SME: 9528]

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

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