2 %define apxs /usr/sbin/apxs
3 %define mod_name clamav
4 Summary: An Apache virus scanning filter
5 Summary(pl): Filtr skanera antywirusowego dla Apache'a
6 Name: apache-mod_%{mod_name}
10 Group: Networking/Daemons
11 Source0: http://software.othello.ch/mod_clamav/mod_%{mod_name}-%{version}.tar.gz
13 Patch0: %{name}-libtool-tag.patch
14 URL: http://software.othello.ch/mod_clamav/
15 BuildRequires: %{apxs}
16 BuildRequires: apache-devel
17 BuildRequires: apr-devel
18 BuildRequires: apr-util-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
22 Requires: apache-mod_proxy
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
27 %define _sysconfdir /etc/httpd
28 %define _libexecdir %{_libdir}/apache
31 mod_clamav is an Apache 2 filter which scans the content delivered by
32 the proxy module (mod_proxy) for viruses using the Clamav virus
36 mod_clamav to filtr dla serwera Apache 2 skanuj±cy tre¶ci dostarczane
37 przez modu³ proxy (mod_proxy) pod k±tem wirusów przy u¿yciu silnika
38 skanera antywirusowego Clamav.
41 %setup -q -n mod_%{mod_name}-%{version}
49 CPPFLAGS="-I `/usr/bin/apr-config --includedir` -I `/usr/bin/apu-config --includedir`"
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
61 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
63 CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf"
64 install %{SOURCE1} ${CFG}/32_mod_clamav.conf
67 rm -rf $RPM_BUILD_ROOT
70 if [ -f /var/lock/subsys/httpd ]; then
71 /etc/rc.d/init.d/httpd restart 1>&2
73 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
77 if [ "$1" = "0" ]; then
78 if [ -f /var/lock/subsys/httpd ]; then
79 /etc/rc.d/init.d/httpd restart 1>&2
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog COPYING INSTALL mod_clamav.html NEWS README TODO
86 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/32_mod_clamav.conf
87 %attr(755,root,root) %{_libexecdir}/mod_%{mod_name}.so