/[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.3 - (hide annotations) (download)
Thu May 26 16:59:10 2016 UTC (8 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-panel-2_11-8
Changes since 1.2: +8 -2 lines
* Thu May 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.11-8.sme
- fix wrong path to module [SME: 9526]

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

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