rebuilt with -DDATABASE_DIRECTORY and ENABLE_EXTERNAL_MS_PACK

conf: fix socket file to /run/clamav/clamd.ctl [release 1.3.1-2mamba;Thu May 02 2024]
This commit is contained in:
Silvan Calarco 2024-05-02 20:55:10 +02:00
parent 3dd0b484b8
commit bd2b33659d
2 changed files with 14 additions and 13 deletions

View File

@ -48,7 +48,7 @@
# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
-#LocalSocket /run/clamav/clamd.sock
+LocalSocket /run/clamav/clamd.sock
+LocalSocket /run/clamav/clamd.ctl
#LocalSocket /tmp/clamd.sock
# Sets the group ownership on the unix socket.

View File

@ -7,7 +7,7 @@
Name: clamav
Version: 1.3.1
Release: 1mamba
Release: 2mamba
Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX
Group: Applications/Security
Vendor: openmamba
@ -18,7 +18,7 @@ Source0: http://www.clamav.net/downloads/production/clamav-%{version}.tar.
Source1: clamav-tmpfiles
Source2: %{name}-clamd.logrotate
Source4: %{name}-freshclam.logrotate
Patch0: %{name}-1.2.0-config.patch
Patch0: %{name}-1.3.1-config.patch
Patch1: %{name}-1.2.0-freshclam_config.patch
License: GPL
## AUTOBUILDREQ-BEGIN
@ -27,6 +27,7 @@ BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libjson-c-devel
BuildRequires: libmspack-devel
BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel
BuildRequires: libpcre2-devel
@ -86,19 +87,18 @@ This package contains the static %{libname} library and its header files.
%prep
%setup -q
%define _default_patch_fuzz 2
#%define _default_patch_fuzz 2
%patch 0 -p1
%patch 1 -p1
#cp %{SOURCE5} database/daily.cvd
%build
%cmake -d build \
-DAPP_CONFIG_DIRECTORY=%{_sysconfdir}
-DAPP_CONFIG_DIRECTORY=%{_sysconfdir} \
-DDATABASE_DIRECTORY=%{_localstatedir}/lib/clamav \
-DENABLE_EXTERNAL_MSPACK=ON
#export SENDMAIL="%{_libdir}/sendmail"
#% configure \
# --with-dbdir=%{_localstatedir}/lib/clamav/ \
# --disable-zlib-vcheck
%make
@ -191,9 +191,7 @@ fi
%{_sbindir}/clamav-milter
%{_tmpfilesdir}/clamav.conf
%{_sbindir}/clamonacc
%{_unitdir}/clamav-daemon.service
%{_unitdir}/clamav-clamonacc.service
%{_unitdir}/clamav-daemon.socket
%{_unitdir}/clamav-freshclam.service
%{_unitdir}/clamav-freshclam-once.service
%{_unitdir}/clamav-freshclam-once.timer
@ -220,7 +218,8 @@ fi
%config(noreplace) %{_sysconfdir}/logrotate.d/clamd
%{_sbindir}/clamd
%{_bindir}/clamdtop
#%{_unitdir}/clamd.service
%{_unitdir}/clamav-daemon.service
%{_unitdir}/clamav-daemon.socket
%ghost %attr(0644,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}/clamd.log
%{_mandir}/man1/clamdtop.*
%{_mandir}/man8/clamd.*
@ -228,7 +227,6 @@ fi
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libclamav.so.*
%{_libdir}/libclammspack.so.*
%{_libdir}/libclamunrar.so.*
%{_libdir}/libclamunrar_iface.so.*
%{_libdir}/libfreshclam.so.*
@ -239,7 +237,6 @@ fi
%{_includedir}/*.h
%{_libdir}/libclamav.so
%{_libdir}/libclamav_rust.a
%{_libdir}/libclammspack.so
%{_libdir}/libclamunrar.so
%{_libdir}/libclamunrar_iface.so
%{_libdir}/libfreshclam.so
@ -250,6 +247,10 @@ fi
#% doc BUGS ChangeLog NEWS README
%changelog
* Thu May 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-2mamba
- rebuilt with -DDATABASE_DIRECTORY and ENABLE_EXTERNAL_MS_PACK
- conf: fix socket file to /run/clamav/clamd.ctl
* Thu Apr 18 2024 Automatic Build System <autodist@openmamba.org> 1.3.1-1mamba
- automatic version update by autodist