From a4273d4b5f0cf147457e45c99524721361cc180c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 4 Sep 2024 10:36:35 +0200 Subject: [PATCH] provide user and group clamav [release 1.4.0-2mamba;Tue Sep 03 2024] --- ...tch => clamav-1.4.0-freshclam_config.patch | 23 +++++-------------- clamav.spec | 12 ++++++++-- 2 files changed, 16 insertions(+), 19 deletions(-) rename clamav-1.2.0-freshclam_config.patch => clamav-1.4.0-freshclam_config.patch (59%) diff --git a/clamav-1.2.0-freshclam_config.patch b/clamav-1.4.0-freshclam_config.patch similarity index 59% rename from clamav-1.2.0-freshclam_config.patch rename to clamav-1.4.0-freshclam_config.patch index 7e03d83..83994d5 100644 --- a/clamav-1.2.0-freshclam_config.patch +++ b/clamav-1.4.0-freshclam_config.patch @@ -1,26 +1,15 @@ ---- clamav-1.2.0/etc/freshclam.conf.sample.orig 2023-09-09 19:55:29.321772627 +0200 -+++ clamav-1.2.0/etc/freshclam.conf.sample 2023-09-09 19:57:02.079706335 +0200 -@@ -4,17 +4,14 @@ - ## - - --# Comment or remove the line below. --Example -- - # Path to the database directory. - # WARNING: It must match clamd.conf's directive! - # Default: hardcoded (depends on installation options) --#DatabaseDirectory /var/lib/clamav -+DatabaseDirectory /var/lib/clamav +--- clamav-1.4.0/etc/freshclam.conf.sample.orig 2024-08-21 20:11:02.703496385 +0200 ++++ clamav-1.4.0/etc/freshclam.conf.sample 2024-08-21 20:12:09.701609375 +0200 +@@ -16,7 +16,7 @@ # Path to the log file (make sure it has proper permissions) # Default: disabled -#UpdateLogFile /var/log/freshclam.log -+#UpdateLogFile /var/log/clamav/freshclam.log ++UpdateLogFile /var/log/clamav/freshclam.log # Maximum size of the log file. # Value of 0 disables the limit. -@@ -35,7 +32,7 @@ +@@ -37,7 +37,7 @@ # Use system logger (can work together with UpdateLogFile). # Default: no @@ -29,7 +18,7 @@ # Specify the type of syslog messages - please refer to 'man syslog' # for facility names. -@@ -52,7 +49,7 @@ +@@ -54,7 +54,7 @@ # It is recommended that the directory where this file is stored is # also owned by root to keep other users from tampering with it. # Default: disabled diff --git a/clamav.spec b/clamav.spec index d946f54..146e0a1 100644 --- a/clamav.spec +++ b/clamav.spec @@ -6,7 +6,7 @@ %define libname lib%{name} Name: clamav -Version: 1.3.1 +Version: 1.4.0 Release: 2mamba Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX Group: Applications/Security @@ -19,7 +19,7 @@ Source1: clamav-tmpfiles Source2: %{name}-clamd.logrotate Source4: %{name}-freshclam.logrotate Patch0: %{name}-1.3.1-config.patch -Patch1: %{name}-1.2.0-freshclam_config.patch +Patch1: %{name}-1.4.0-freshclam_config.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -47,6 +47,8 @@ Requires: unzip Requires(pre): %{libname} = %{?epoch:%epoch:}%{version}-%{release} Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd +Provides: user(clamav) +Provides: group(clamav) %systemd_requires %description @@ -247,6 +249,12 @@ fi #% doc BUGS ChangeLog NEWS README %changelog +* Tue Sep 03 2024 Silvan Calarco 1.4.0-2mamba +- provide user and group clamav + +* Thu Aug 22 2024 Automatic Build System 1.4.0-1mamba +- automatic version update by autodist + * Thu May 02 2024 Silvan Calarco 1.3.1-2mamba - rebuilt with -DDATABASE_DIRECTORY and ENABLE_EXTERNAL_MS_PACK - conf: fix socket file to /run/clamav/clamd.ctl