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

Annotation of /rpms/smeserver-dansguardian-panel/contribs8/smeserver-dansguardian-panel.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 25 22:25:52 2013 UTC (11 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-1
Initial import

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

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