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