2 Summary: Content filtering web proxy
3 Summary(pl.UTF-8): Proxy WWW filtrujące treść
8 Group: Networking/Daemons
9 Source0: http://dansguardian.org/downloads/2/Stable/%{name}-%{version}.tar.gz
10 # Source0-md5: 68c8e9a97a3b58d2467a19cb15db5599
12 Source2: %{name}.httpd
13 Source3: %{name}.lighttpd
14 Source4: %{name}.logrotate
15 URL: http://www.dansguardian.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: clamav-devel
19 BuildRequires: libstdc++-devel
20 BuildRequires: rpmbuild(macros) >= 1.304
21 BuildRequires: zlib-devel
24 Requires(post,preun): /sbin/chkconfig
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _webapp %{name}
28 %define _webapps /etc/webapps
29 %define _webappdir %{_webapps}/%{_webapp}
30 %define _appdir %{_datadir}/%{_webapp}
33 DansGuardian is a web filtering engine that checks the content within
34 the page itself in addition to the more traditional URL filtering.
36 DansGuardian is a content filtering proxy. It filters using multiple
37 methods, including URL and domain filtering, content phrase filtering,
38 PICS filtering, MIME filtering, file extension filtering, POST
41 %description -l pl.UTF-8
42 DansGuardian to silnik filtrowania WWW sprawdzający treść na samych
43 stronach oprócz bardziej tradycyjnego filtrowania URL-i.
45 DansGuardian to proxy filtrujące treść przy użyciu wielu metod, w tym
46 filtrowania URL-i i domen, fraz zawartych w treści, filtrowania PICS,
47 filtrowania MIME, filtrowania po rozszerzeniach plików, filtrowania
66 --enable-commandline \
72 --enable-segv-backtrace \
75 --with-proxyuser nobody \
76 --with-proxygroup nobody
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
84 $RPM_BUILD_ROOT/var/log/dansguardian \
85 $RPM_BUILD_ROOT%{_webappdir}
88 DESTDIR=$RPM_BUILD_ROOT
90 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dansguardian
91 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
92 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
93 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
94 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
96 %triggerin -- apache1 < 1.3.37-3, apache1-base
97 %webapp_register apache %{_webapp}
99 %triggerun -- apache1 < 1.3.37-3, apache1-base
100 %webapp_unregister apache %{_webapp}
102 %triggerin -- apache < 2.2.0, apache-base
103 %webapp_register httpd %{_webapp}
105 %triggerun -- apache < 2.2.0, apache-base
106 %webapp_unregister httpd %{_webapp}
108 %%triggerin -- lighttpd
109 %%webapp_register lighttpd %{_webapp}
111 %%triggerun -- lighttpd
112 %%webapp_unregister lighttpd %{_webapp}
115 rm -rf $RPM_BUILD_ROOT
118 /sbin/chkconfig --add dansguardian
119 %service dansguardian restart "DansGuardian daemon"
122 if [ "$1" = "0" ]; then
123 %service dansguardian stop
124 /sbin/chkconfig --del dansguardian
128 %defattr(644,root,root,755)
129 %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
130 %{_mandir}/man8/dansguardian.8*
131 %attr(754,root,root) /etc/rc.d/init.d/dansguardian
132 %attr(755,root,root) %{_sbindir}/dansguardian
133 %dir %{_datadir}/dansguardian
134 %{_datadir}/dansguardian/languages
135 %{_datadir}/dansguardian/scripts
136 %{_datadir}/dansguardian/transparent1x1.gif
137 %attr(755,root,root) %{_datadir}/dansguardian/dansguardian.pl
138 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
139 %dir %{_sysconfdir}/dansguardian
140 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/*.conf
141 %dir %{_sysconfdir}/dansguardian/authplugins
142 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/authplugins/*.conf
143 %dir %{_sysconfdir}/dansguardian/contentscanners/
144 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/contentscanners/*.conf
145 %dir %{_sysconfdir}/dansguardian/downloadmanagers
146 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/downloadmanagers/*.conf
147 %{_sysconfdir}/dansguardian/lists
149 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
150 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
151 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
152 %attr(750,root,root) %dir /var/log/dansguardian