/[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.7 - (hide annotations) (download)
Mon Dec 17 11:45:29 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-12
Changes since 1.6: +8 -3 lines
* Sun Dec 09 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 2.11-11
- apply locale 2018-12-17 patch

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

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