Bug#946557: buster-pu: package clamav/0.102.1+dfsg-0+deb10u1
On 2019-12-10 23:46:47 [+0100], To submit@bugs.debian.org wrote:
> It is unstable for 10 days now. It did not migrate to testing due to a
> debci regression in pg-snakeoil. I opened a bug against pg-snakeoil, I
> don't see anything wrong within clamav.
In the meantime the package migrated into testing. I didn't manage to
reproduce the ci bug. The pg-snakeoil package change its testsuite to
avoid downloading the whole database on each test.
I slightly updated the package to
- add the new `clamonacc' binary to the clamav-daemon package.
- remove the `ScanOnAccess' option from the postinst/debconf script.
The option is deprecated and the functionality moved into the clamonacc
binary.
Sebastian
diff --git a/debian/changelog b/debian/changelog
index bca40e2..d3cd598 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,10 @@ clamav (0.102.1+dfsg-0+deb10u1) buster; urgency=medium
- Let freshclam show progress during download (Closes: #690789).
* Update symbol file.
* Add libfreshclam to the libclamav9 package.
+ * Add the clamonacc binary to the clamav-daemon package.
+ * Drop ScanOnAccess option. The clamonacc provides this functionality.
- -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 08 Dec 2019 12:40:16 +0100
+ -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Mon, 23 Dec 2019 21:04:45 +0100
clamav (0.101.4+dfsg-0+deb10u1) buster; urgency=medium
diff --git a/debian/clamav-daemon.config.in b/debian/clamav-daemon.config.in
index 60bef89..131336c 100644
--- a/debian/clamav-daemon.config.in
+++ b/debian/clamav-daemon.config.in
@@ -72,7 +72,6 @@ set_debconf_value daemon LogSyslog
set_debconf_value daemon LogFile
set_debconf_value daemon LogTime
set_debconf_value daemon LogRotate
-set_debconf_value daemon ScanOnAccess
set_debconf_value daemon OnAccessMaxFileSize
set_debconf_value daemon AllowAllMatchScan
set_debconf_value daemon ForceToDisk
@@ -327,13 +326,10 @@ while [ "$STATE" != "End" ]; do
StateGeneric low clamav-daemon/LogTime LogRotate LogFile
;;
"LogRotate")
- StateGeneric low clamav-daemon/LogRotate ScanOnAccess LogFile
- ;;
- "ScanOnAccess")
- StateGeneric low clamav-daemon/ScanOnAccess OnAccessMaxFileSize LogFile
+ StateGeneric low clamav-daemon/LogRotate LogFile
;;
"OnAccessMaxFileSize")
- StateGeneric low clamav-daemon/OnAccessMaxFileSize AllowAllMatchScan ScanOnAccess
+ StateGeneric low clamav-daemon/OnAccessMaxFileSize AllowAllMatchScan
;;
"AllowAllMatchScan")
StateGeneric low clamav-daemon/AllowAllMatchScan ForceToDisk OnAccessMaxFileSize
diff --git a/debian/clamav-daemon.install b/debian/clamav-daemon.install
index 1ae9a50..ef63c2a 100644
--- a/debian/clamav-daemon.install
+++ b/debian/clamav-daemon.install
@@ -2,5 +2,6 @@ debian/script usr/share/bug/clamav-daemon/
debian/tmp/lib/systemd/system/clamav-daemon.service
debian/tmp/usr/bin/clamconf
debian/tmp/usr/bin/clamdtop
+debian/tmp/usr/bin/clamonacc
debian/tmp/usr/sbin/clamd
debian/usr.sbin.clamd etc/apparmor.d/
diff --git a/debian/clamav-daemon.postinst.in b/debian/clamav-daemon.postinst.in
index a4a3595..0770634 100644
--- a/debian/clamav-daemon.postinst.in
+++ b/debian/clamav-daemon.postinst.in
@@ -116,12 +116,8 @@ case "$1" in
db_get clamav-daemon/BytecodeTimeout || true
BytecodeTimeout="$RET"
fi
- db_get clamav-daemon/ScanOnAccess || true
- ScanOnAccess="$RET"
- if [ "$ScanOnAccess" = "true" ]; then
- db_get clamav-daemon/OnAccessMaxFileSize || true
- OnAccessMaxFileSize="$RET"
- fi
+ db_get clamav-daemon/OnAccessMaxFileSize || true
+ OnAccessMaxFileSize="$RET"
db_get clamav-daemon/AllowAllMatchScan || true
AllowAllMatchScan="$RET"
db_get clamav-daemon/ForceToDisk || true
@@ -148,8 +144,6 @@ case "$1" in
# Use the defaults instead of the bogus values created by that versions.
db_metaget clamav-daemon/LogRotate default || true
LogRotate="$RET"
- db_metaget clamav-daemon/ScanOnAccess default || true
- ScanOnAccess="$RET"
OnAccessMaxFileSize=""
OnAccessIncludePath=""
OnAccessExcludePath=""
@@ -327,7 +321,6 @@ SendBufTimeout $SendBufTimeout
MaxQueue $MaxQueue
ExtendedDetectionInfo $ExtendedDetectionInfo
OLE2BlockMacros $OLE2BlockMacros
-ScanOnAccess $ScanOnAccess
AllowAllMatchScan $AllowAllMatchScan
ForceToDisk $ForceToDisk
DisableCertCheck $DisableCertCheck
diff --git a/debian/clamav-daemon.templates b/debian/clamav-daemon.templates
index 8b71902..0b8ea43 100644
--- a/debian/clamav-daemon.templates
+++ b/debian/clamav-daemon.templates
@@ -143,11 +143,6 @@ Type: boolean
Default: true
_Description: Do you want to enable log rotation?
-Template: clamav-daemon/ScanOnAccess
-Type: boolean
-Default: false
-_Description: Do you want to enable on-access scanning?
-
Template: clamav-daemon/OnAccessMaxFileSize
Type: string
Default: 5M
Reply to: