Name: squidclam Version: 0.22 Release: 1 Summary: Redirect program for squid antivirus scanning Group: System Environment/Daemons License: GPL URL: http://squidclam.sourceforge.net/ Source0: squidclam-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) BuildRequires: curl-devel clamav-devel Requires: squid curl clamav-server %description squidclam is going to be a program to scan files served to win32 machines by a squid proxy. It hast du be fast and small to get this job done. Also it has to be secure to not weaken the server system. At the moment squidclam is pretty small, scans files up to 100kB for viruses and is doing it's job pretty well for me. %prep %setup -q %build ./configure cd src %{__make} %{?_smp_mflags} %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ mkdir -p $RPM_BUILD_ROOT%{_sbindir}/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/www/html/ install sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/squidclam.conf install src/squidclam $RPM_BUILD_ROOT%{_sbindir}/ install antivir.php $RPM_BUILD_ROOT%{_localstatedir}/www/html/. %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %pre %post /sbin/service squid condrestart > /dev/null 2>&1 || : %preun %postun %files %defattr(0644,root,root,0755) %doc Changelog README TODO %config(noreplace) %{_sysconfdir}/squidclam.conf %attr(0755,root,root) %{_sbindir}/squidclam %{_localstatedir}/www/html/antivir.php %changelog * Sun Mar 4 2007 Petr Krištof 0.22-1 - Update to 0.22 * Sun Mar 26 2006 Petr Krištof 0.20-2 - Rebuild on FC-5 * Fri Jan 6 2006 Petr Krištof 0.20-1 - Update to 0.20 * Mon Dec 26 2005 Petr Krištof 0.19-0 - Update to 0.19 * Mon Jun 20 2005 Petr Krištof 0.11-2 - Rebuild on FC-4 * Sun May 22 2005 Petr Krištof 0.11-1 - Update to 0.11 * Wed Apr 27 2005 Petr Krištof 0.10-1 - Update to 0.10 - Add /etc/squidclam.conf * Thu Mar 17 2005 Petr Krištof 0.9-0 - Initial RPM release