/[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.10 - (show annotations) (download)
Tue Jan 8 14:04:51 2019 UTC (5 years, 10 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-15
Changes since 1.9: +8 -3 lines
* Wed Jan 08 2019 Terry Fage <tfage@yahoo.com.au> 2.11.15
- edit en lang file url for wiki help file
- clean up format and bug number errors in spec file [9526]

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

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