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 Name: clamav
Version: 0.98.4 Version: 0.98.4
Release: 1mamba Release: 3mamba
Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX
Group: Applications/Security Group: Applications/Security
Vendor: openmamba Vendor: openmamba
@ -20,17 +20,20 @@ Source1: %{name}-clamd.initscript
Source2: %{name}-clamd.logrotate Source2: %{name}-clamd.logrotate
Source3: %{name}-freshclam.initscript Source3: %{name}-freshclam.initscript
Source4: %{name}-freshclam.logrotate 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 Patch: %{name}-0.98-config.patch
Patch1: %{name}-0.98-freshclam_config.patch Patch1: %{name}-0.98-freshclam_config.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libbzip2-devel BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libltdl-devel BuildRequires: libltdl-devel
BuildRequires: libncurses-devel BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: bash BuildRequires: bash
@ -82,11 +85,13 @@ This package contains the static %{libname} library and its header files.
%setup -q %setup -q
%patch -p1 %patch -p1
%patch1 -p1 %patch1 -p1
cp %{SOURCE5} database/daily.cvd #cp %{SOURCE5} database/daily.cvd
%build %build
export SENDMAIL="%{_libdir}/sendmail" export SENDMAIL="%{_libdir}/sendmail"
%configure --disable-clamav %configure \
--with-dbdir=%{_localstatedir}/lib/clamav/
%make %make
%install %install
@ -192,7 +197,7 @@ exit 0
%config(noreplace) %{_sysconfdir}/clamd.conf %config(noreplace) %{_sysconfdir}/clamd.conf
%config(noreplace) %{_sysconfdir}/freshclam.conf %config(noreplace) %{_sysconfdir}/freshclam.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/freshclam %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}/daily.cvd
#%ghost %{_var}/lib/%{name}/mani.cvd #%ghost %{_var}/lib/%{name}/mani.cvd
%dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name} %dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}
@ -236,6 +241,13 @@ exit 0
%doc BUGS ChangeLog NEWS README %doc BUGS ChangeLog NEWS README
%changelog %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 * Tue Jun 17 2014 Automatic Build System <autodist@mambasoft.it> 0.98.4-1mamba
- automatic version update by autodist - automatic version update by autodist

BIN
daily.cvd

Binary file not shown.