/[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.6 - (hide annotations) (download)
Sat Dec 2 06:08:31 2017 UTC (7 years ago) by jpp
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-10
Changes since 1.5: +2 -2 lines
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 2.11-10
- apply locale 2017-12-02 patch

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

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