Merge ~sergiodj/ubuntu/+source/clamav:ifupdown-replacement into ubuntu/+source/clamav:ubuntu/devel
Status: | Merged |
---|---|
Approved by: | git-ubuntu bot |
Approved revision: | not available |
Merged at revision: | db8e0afc1fed692a5656954eb20500a341bd5d7f |
Proposed branch: | ~sergiodj/ubuntu/+source/clamav:ifupdown-replacement |
Merge into: | ubuntu/+source/clamav:ubuntu/devel |
Diff against target: |
217 lines (+119/-52) 3 files modified
debian/changelog (+13/-0) debian/clamav-freshclam-ifupdown (+104/-52) debian/clamav-freshclam.links (+2/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Bryce Harrington (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+442791@code.launchpad.net |
Description of the change
This MP implements support for the networkd-dispatcher utility on clamav.
This feature request has been file in bug #1718227 and opened for quite a while now. I submitted a Merge Request to Debian's clamav 2 years ago, but unfortunately it hasn't been reviewed/accepted yet. You can see it here:
https:/
There's also a bug that proposes the same patch:
https:/
networkd-dispatcher is a modern (TM) replacement for the ifupdown scripts. It basically detects changes in the network configuration and executes certain scripts based on these changes. For clamav, we're only interested in running specific script snippets when the network is off, or when it becomes online (which, in networkd-
I'm taking the opportunity to modernize the script a little bit, because it uses old and non-idiomatic shell expressions.
An easy way to test these scripts is to echo something when they start and then bring the ethernet interface down/up. You can monitor the "journalctl -u networkd-
# ip link set <INTERFACE> [down|up]
There's a PPA with the proposed change here: https:/
dep8 tests:
Results: (from http:// autopkgtest. ubuntu. com/results/ autopkgtest- mantic- sergiodj- clamav/ ?format= plain) 0.103.8+ dfsg-0ubuntu2~ ppa1 0.103.8+ dfsg-0ubuntu2~ ppa1 0.103.8+ dfsg-0ubuntu2~ ppa1 0.103.8+ dfsg-0ubuntu2~ ppa1 0.103.8+ dfsg-0ubuntu2~ ppa1
clamav @ amd64:
15.05.23 02:53:16 Log 🗒️ ✅ Triggers: clamav/
clamav @ arm64:
12.05.23 21:41:02 Log 🗒️ ✅ Triggers: clamav/
clamav @ armhf:
12.05.23 21:09:01 Log 🗒️ ✅ Triggers: clamav/
clamav @ ppc64el:
12.05.23 21:13:01 Log 🗒️ ✅ Triggers: clamav/
clamav @ s390x:
12.05.23 21:58:26 Log 🗒️ ✅ Triggers: clamav/