Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 9a4b9d0d4fe92979532136f2be7aab17 > files > 2

squidclam-0.11-1mdk.src.rpm

Summary:	Redirect program for squid antivirus scanning
Name:		squidclam
Version:	0.11
Release:	1mdk
Group:		System/Servers
License:	GPL
URL:		http://squidclam.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/squidclam/squidclam-%{version}.tar.bz2
BuildRequires:	curl-devel clamav-devel
Requires:	squid curl clamav
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%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 for
viruses and is doing it's job pretty well for me.

%prep

%setup -q

chmod 644 Changelog README TODO

%build

./configure

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_var}/www/html

install -m0644 sample.conf %{buildroot}%{_sysconfdir}/squidclam.conf
install -m0755 squidclam %{buildroot}%{_sbindir}/
install -m0644 antivir.php %{buildroot}%{_var}/www/html/antivir.php

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Changelog README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/squidclam.conf
%attr(0755,root,root) %{_sbindir}/squidclam
%{_var}/www/html/antivir.php

%changelog
* Mon May 30 2005 Oden Eriksson <oeriksson@mandriva.com> 0.11-1mdk
- initial Mandriva package
- used bits from the provided spec file