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

Annotation 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.8 - (hide annotations) (download)
Mon Dec 17 13:43:26 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-13
Changes since 1.7: +8 -1 lines
* Mon Dec 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.11-13
- Update URL wiki help
- fix unknown nagivation panel error [SME: 9526]
- jump release number from 12-13 due to numbering error

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

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