/[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.4 - (hide annotations) (download)
Thu Feb 2 03:36:21 2017 UTC (7 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-9
Changes since 1.3: +6 -2 lines
* Wed Feb 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-9.sme
- apply local 2017-02-02.patch

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

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