]> git.pld-linux.org Git - packages/apache-mod_clamav.git/commitdiff
- mod_clamav, apache2 proxy antivirus filter module
authormguevara <mguevara@pld-linux.org>
Tue, 30 Dec 2003 11:55:18 +0000 (11:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_clamav.spec -> 1.1

apache-mod_clamav.spec [new file with mode: 0644]

diff --git a/apache-mod_clamav.spec b/apache-mod_clamav.spec
new file mode 100644 (file)
index 0000000..b6fe1de
--- /dev/null
@@ -0,0 +1,82 @@
+# $Revision: 1.1 $
+%define        apxs    /usr/sbin/apxs
+%define         mod_name        clamav
+Summary:       an Apache virus scanning filter
+Name:          apache-mod_%{mod_name}
+Version:       0.12
+Release:       1
+License:       GPL
+Group:         Networking/Daemons
+Source0:       http://software.othello.ch/mod_clamav/mod_%{mod_name}-%{version}.tar.gz
+Source1:       %{name}.conf
+Patch0:                %{name}-libtool-tag.patch
+URL:           http://software.othello.ch/mod_clamav/
+BuildRequires: %{apxs}
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: apache-devel
+BuildRequires: apr-devel
+BuildRequires: apr-util-devel
+Requires:      apache >= 2
+Requires:      apache-mod_proxy
+Requires:      clamav
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define         _sysconfdir     /etc/httpd
+%define         _libexecdir     %{_libdir}/apache
+
+%description
+mod_clamav is an Apache 2 filter which scans the content delivered by
+the proxy module (mod_proxy) for viruses using the Clamav virus
+scanning engine.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p0
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+
+CPPFLAGS="${CPPFLAGS} -I `/usr/bin/apr-config --includedir`"
+CPPFLAGS="${CPPFLAGS} -I `/usr/bin/apu-config --includedir`"
+export CPPFLAGS
+
+%configure \
+        --with-apxs=%{apxs}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf"
+install %{SOURCE1}  ${CFG}/32_mod_clamav.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+   /etc/rc.d/init.d/httpd restart 1>&2
+else
+   echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+    if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+    fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog COPYING INSTALL mod_clamav.html NEWS README TODO
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/32_mod_clamav.conf
+%attr(755,root,root) %{_libexecdir}/mod_%{mod_name}.so
This page took 0.055856 seconds and 4 git commands to generate.