/[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.3 - (hide annotations) (download)
Sun Jul 14 16:20:50 2013 UTC (11 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-3
Changes since 1.2: +6 -1 lines
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.11-3.sme
- apply locale 2013-07-14 patch

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

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