/[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.2 - (hide annotations) (download)
Thu Jun 27 17:40:07 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-2
Changes since 1.1: +4 -2 lines
* Tue Jun 25 2013 JP Pialasse <tests@pialasse.com> 2.11-2
- initial import
- thanks to  Stephen Noble permission
- added devtools to build requires

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

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