/[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.2 - (show annotations) (download)
Thu May 26 08:27:30 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-7
Changes since 1.1: +14 -3 lines
* Thu May 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-7.sme
- fix needing new dansguardian.conf template [SME: 9526]
- thank you to Seve Semple to parse the file
- apply locale 2016-05-26 patch

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

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