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: 0a6c6d35c9e0c82fbc4a2150e8ffe977
12 Source2: %{name}.httpd
13 Source3: %{name}.lighttpd
14 Source4: %{name}.logrotate
15 Patch0: %{name}-zlib.patch
16 Patch1: %{name}-log.patch
17 Patch2: %{name}-conf.patch
18 URL: http://www.dansguardian.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: clamav-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: rpmbuild(macros) >= 1.304
24 BuildRequires: zlib-devel
29 Requires(post,preun): /sbin/chkconfig
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _webapp %{name}
33 %define _webapps /etc/webapps
34 %define _webappdir %{_webapps}/%{_webapp}
35 %define _appdir %{_datadir}/%{_webapp}
38 DansGuardian is a web filtering engine that checks the content within
39 the page itself in addition to the more traditional URL filtering.
41 DansGuardian is a content filtering proxy. It filters using multiple
42 methods, including URL and domain filtering, content phrase filtering,
43 PICS filtering, MIME filtering, file extension filtering, POST
46 %description -l pl.UTF-8
47 DansGuardian to silnik filtrowania WWW sprawdzający treść na samych
48 stronach oprócz bardziej tradycyjnego filtrowania URL-i.
50 DansGuardian to proxy filtrujące treść przy użyciu wielu metod, w tym
51 filtrowania URL-i i domen, fraz zawartych w treści, filtrowania PICS,
52 filtrowania MIME, filtrowania po rozszerzeniach plików, filtrowania
71 --enable-commandline \
77 --enable-segv-backtrace \
80 --with-proxyuser nobody \
81 --with-proxygroup nobody
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
89 $RPM_BUILD_ROOT/var/log/dansguardian \
90 $RPM_BUILD_ROOT%{_webappdir}
93 DESTDIR=$RPM_BUILD_ROOT
95 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dansguardian
96 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
97 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
98 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
99 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
101 %triggerin -- apache1 < 1.3.37-3, apache1-base
102 %webapp_register apache %{_webapp}
104 %triggerun -- apache1 < 1.3.37-3, apache1-base
105 %webapp_unregister apache %{_webapp}
107 %triggerin -- apache < 2.2.0, apache-base
108 %webapp_register httpd %{_webapp}
110 %triggerun -- apache < 2.2.0, apache-base
111 %webapp_unregister httpd %{_webapp}
113 %%triggerin -- lighttpd
114 %%webapp_register lighttpd %{_webapp}
116 %%triggerun -- lighttpd
117 %%webapp_unregister lighttpd %{_webapp}
120 rm -rf $RPM_BUILD_ROOT
123 /sbin/chkconfig --add dansguardian
124 %service dansguardian restart "Dansguardian daemon"
127 if [ "$1" = "0" ]; then
128 %service dansguardian stop
129 /sbin/chkconfig --del dansguardian
133 %defattr(644,root,root,755)
134 %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
135 %{_mandir}/man8/dansguardian.8*
136 %attr(754,root,root) /etc/rc.d/init.d/dansguardian
137 %attr(755,root,root) %{_sbindir}/dansguardian
138 %dir %{_datadir}/dansguardian
139 %{_datadir}/dansguardian/languages
140 %{_datadir}/dansguardian/scripts
141 %{_datadir}/dansguardian/transparent1x1.gif
142 %attr(755,root,root) %{_datadir}/dansguardian/dansguardian.pl
143 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
144 %dir %{_sysconfdir}/dansguardian
145 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/*.conf
146 %dir %{_sysconfdir}/dansguardian/authplugins
147 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/authplugins/*.conf
148 %dir %{_sysconfdir}/dansguardian/contentscanners/
149 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/contentscanners/*.conf
150 %dir %{_sysconfdir}/dansguardian/downloadmanagers
151 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/downloadmanagers/*.conf
152 %{_sysconfdir}/dansguardian/lists
154 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
155 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
157 %attr(750,root,root) %dir /var/log/dansguardian