/[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.1 - (hide annotations) (download)
Tue May 17 15:01:45 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-6
Initial import

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

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