rebuilt with correct dbdir (--with-dbdir=%{_localstatedir}/lib/clamav/)

make /var/lib/clamav world readable to work with amavis [release 0.98.4-3mamba;Thu Jul 24 2014]
This commit is contained in:
Silvan Calarco 2024-01-05 21:23:32 +01:00
parent 70a9fe2e57
commit c7a64c1fc3
2 changed files with 17 additions and 5 deletions

View File

@ -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 <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 0.98.4-2mamba
- rebuilt with correct dbdir (--with-dbdir=/var/lib/clamav)
* Tue Jun 17 2014 Automatic Build System <autodist@mambasoft.it> 0.98.4-1mamba
- automatic version update by autodist

BIN
daily.cvd

Binary file not shown.