From c0e27f9707ca0335d5f4c1e701f6ec3e3a8c18b017308c8e2bb51aea9b198335 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 18 Apr 2018 08:35:09 +0000 Subject: [PATCH] - On update, remove obsolete option SubmitDetectionStats from /etc/freshclam.conf otherwise freshclam refuses to start. OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=163 --- clamav.changes | 2 ++ clamav.spec | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/clamav.changes b/clamav.changes index bf5e1c5..7550ae1 100644 --- a/clamav.changes +++ b/clamav.changes @@ -33,6 +33,8 @@ Fri Apr 13 15:07:48 UTC 2018 - max@suse.com - Update key ring and add signature file. - Use system-wide LLVM instead of the deprecated bundled one. - Move pkgconfig stuff the main to the devel package. +- On update, remove obsolete option SubmitDetectionStats from + /etc/freshclam.conf otherwise freshclam refuses to start. ------------------------------------------------------------------- Wed Mar 7 13:15:11 UTC 2018 - max@suse.com diff --git a/clamav.spec b/clamav.spec index dcd3060..6c1c8f1 100644 --- a/clamav.spec +++ b/clamav.spec @@ -199,6 +199,11 @@ getent passwd vscan >/dev/null || \ %post systemd-tmpfiles --create %_tmpfilesdir/clamav.conf %service_add_post clamd.service freshclam.service clamav-milter.service +%if $1 == 2; then +# If upgrading, comment out obsolete config file options +# https://bugzilla.clamav.net/show_bug.cgi?id=12097 +sed -i '/^[[:space:]]*SubmitDetectionStats/s/^/# OBSOLETE: /' /etc/freshclam.conf +%endif %preun %service_del_preun clamd.service freshclam.service clamav-milter.service