diff --git a/clamav.spec b/clamav.spec index 66822ec..d21844b 100644 --- a/clamav.spec +++ b/clamav.spec @@ -7,7 +7,7 @@ Name: clamav Version: 0.98.4 -Release: 1mamba +Release: 3mamba Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX Group: Applications/Security Vendor: openmamba @@ -20,17 +20,20 @@ Source1: %{name}-clamd.initscript Source2: %{name}-clamd.logrotate Source3: %{name}-freshclam.initscript Source4: %{name}-freshclam.logrotate -Source5: http://db.local.clamav.net/daily.cvd +#Source5: http://db.local.clamav.net/daily.cvd Patch: %{name}-0.98-config.patch Patch1: %{name}-0.98-freshclam_config.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbzip2-devel +BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: libltdl-devel BuildRequires: libncurses-devel +BuildRequires: libopenssl-devel BuildRequires: libstdc++6-devel +BuildRequires: libxml2-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: bash @@ -82,11 +85,13 @@ This package contains the static %{libname} library and its header files. %setup -q %patch -p1 %patch1 -p1 -cp %{SOURCE5} database/daily.cvd +#cp %{SOURCE5} database/daily.cvd %build export SENDMAIL="%{_libdir}/sendmail" -%configure --disable-clamav +%configure \ + --with-dbdir=%{_localstatedir}/lib/clamav/ + %make %install @@ -192,7 +197,7 @@ exit 0 %config(noreplace) %{_sysconfdir}/clamd.conf %config(noreplace) %{_sysconfdir}/freshclam.conf %config(noreplace) %{_sysconfdir}/logrotate.d/freshclam -%dir %attr(0750,%{clamav_usr},%{clamav_grp}) %{_var}/lib/%{name} +%dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/lib/%{name} #%ghost %{_var}/lib/%{name}/daily.cvd #%ghost %{_var}/lib/%{name}/mani.cvd %dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name} @@ -236,6 +241,13 @@ exit 0 %doc BUGS ChangeLog NEWS README %changelog +* Thu Jul 24 2014 Silvan Calarco 0.98.4-3mamba +- rebuilt with correct dbdir (--with-dbdir=%{_localstatedir}/lib/clamav/) +- make /var/lib/clamav world readable to work with amavis + +* Thu Jul 24 2014 Silvan Calarco 0.98.4-2mamba +- rebuilt with correct dbdir (--with-dbdir=/var/lib/clamav) + * Tue Jun 17 2014 Automatic Build System 0.98.4-1mamba - automatic version update by autodist diff --git a/daily.cvd b/daily.cvd deleted file mode 100644 index 0d31d3b..0000000 Binary files a/daily.cvd and /dev/null differ