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