/[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.4 - (hide annotations) (download)
Wed Sep 25 16:07:52 2013 UTC (11 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-4
Changes since 1.3: +6 -1 lines
* Wed Sep 25 2013 JP Pialasse <tests@pialasse.com> 2.11-4.sme
- x64 support [SME: 7866]

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

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