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 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
26 Requires(post,preun): /sbin/chkconfig
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _webapp %{name}
30 %define _webapps /etc/webapps
31 %define _webappdir %{_webapps}/%{_webapp}
32 %define _appdir %{_datadir}/%{_webapp}
35 DansGuardian is a web filtering engine that checks the content within
36 the page itself in addition to the more traditional URL filtering.
38 DansGuardian is a content filtering proxy. It filters using multiple
39 methods, including URL and domain filtering, content phrase filtering,
40 PICS filtering, MIME filtering, file extension filtering, POST
43 %description -l pl.UTF-8
44 DansGuardian to silnik filtrowania WWW sprawdzający treść na samych
45 stronach oprócz bardziej tradycyjnego filtrowania URL-i.
47 DansGuardian to proxy filtrujące treść przy użyciu wielu metod, w tym
48 filtrowania URL-i i domen, fraz zawartych w treści, filtrowania PICS,
49 filtrowania MIME, filtrowania po rozszerzeniach plików, filtrowania
68 --enable-commandline \
74 --enable-segv-backtrace \
77 --with-proxyuser nobody \
78 --with-proxygroup nobody
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
86 $RPM_BUILD_ROOT/var/log/dansguardian \
87 $RPM_BUILD_ROOT%{_webappdir}
90 DESTDIR=$RPM_BUILD_ROOT
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dansguardian
93 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
94 install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
95 install %{SOURCE3} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
96 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
98 %triggerin -- apache1 < 1.3.37-3, apache1-base
99 %webapp_register apache %{_webapp}
101 %triggerun -- apache1 < 1.3.37-3, apache1-base
102 %webapp_unregister apache %{_webapp}
104 %triggerin -- apache < 2.2.0, apache-base
105 %webapp_register httpd %{_webapp}
107 %triggerun -- apache < 2.2.0, apache-base
108 %webapp_unregister httpd %{_webapp}
110 %%triggerin -- lighttpd
111 %%webapp_register lighttpd %{_webapp}
113 %%triggerun -- lighttpd
114 %%webapp_unregister lighttpd %{_webapp}
117 rm -rf $RPM_BUILD_ROOT
120 /sbin/chkconfig --add dansguardian
121 %service dansguardian restart "Dansguardian daemon"
124 if [ "$1" = "0" ]; then
125 %service dansguardian stop
126 /sbin/chkconfig --del dansguardian
130 %defattr(644,root,root,755)
131 %doc doc/AuthPlugins doc/ContentScanners doc/DownloadManagers doc/FAQ doc/FAQ.html doc/Plugins
132 %{_mandir}/man8/dansguardian.8*
133 %attr(754,root,root) /etc/rc.d/init.d/dansguardian
134 %attr(755,root,root) %{_sbindir}/dansguardian
135 %dir %{_datadir}/dansguardian
136 %{_datadir}/dansguardian/languages
137 %{_datadir}/dansguardian/scripts
138 %{_datadir}/dansguardian/transparent1x1.gif
139 %attr(755,root,root) %{_datadir}/dansguardian/dansguardian.pl
140 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
141 %dir %{_sysconfdir}/dansguardian
142 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/*.conf
143 %dir %{_sysconfdir}/dansguardian/authplugins
144 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/authplugins/*.conf
145 %dir %{_sysconfdir}/dansguardian/contentscanners/
146 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/contentscanners/*.conf
147 %dir %{_sysconfdir}/dansguardian/downloadmanagers
148 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dansguardian/downloadmanagers/*.conf
149 %{_sysconfdir}/dansguardian/lists
151 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
152 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
153 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
154 %attr(750,root,root) %dir /var/log/dansguardian