/[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.11 - (show annotations) (download)
Fri Jan 11 06:58:45 2019 UTC (5 years, 5 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-16
Changes since 1.10: +7 -2 lines
* Fri Jan 11 2019 Terry Fage <tfage@yahoo.com.au> 2.11.16
- apply locale update 2019.01.10 [SME: 9526]

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

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