commit:     4ae5cd8e3ab88c25f68c1a9fc7bbc40cecafd9ed
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 24 10:42:36 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun 24 11:04:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ae5cd8e

app-antivirus/clamav: drop our downstream systemd services

Upstream have been providing better examples for a long
time now, and we've been installing duplicate files.

https://bugs.gentoo.org/662196

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 app-antivirus/clamav/clamav-1.3.1-r1.ebuild | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/app-antivirus/clamav/clamav-1.3.1-r1.ebuild 
b/app-antivirus/clamav/clamav-1.3.1-r1.ebuild
index 05280603ec9e..fed1a8c4198a 100644
--- a/app-antivirus/clamav/clamav-1.3.1-r1.ebuild
+++ b/app-antivirus/clamav/clamav-1.3.1-r1.ebuild
@@ -304,13 +304,9 @@ src_install() {
                        # fundamentally flawed, and the maintainer is not up to
                        # the task of fixing it.
                        dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
-                       systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" 
"[email protected]"
-                       systemd_dounit "${FILESDIR}/clamd.service"
-                       systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
-                                                       "freshclamd.service"
                fi
 
-                               if use clamapp ; then
+               if use clamapp ; then
                        # Modify /etc/{clamd,freshclam}.conf to be usable out 
of the box
                        sed -e "s:^\(Example\):\# \1:" \
                                -e "s:^#\(PidFile\) .*:\1 
${EPREFIX}/run/clamd.pid:" \
@@ -399,6 +395,13 @@ pkg_postinst() {
                ewarn "clamd service now starts only the clamd daemon itself. 
You"
                ewarn "should add freshclam (and perhaps clamav-milter) to any"
                ewarn "runlevels that previously contained clamd."
+       else
+               if [[ -n "${REPLACING_VERSIONS}" ]] && ver_test 
"${REPLACING_VERSIONS}" -le 1.3.1; then
+                       ewarn "From 1.3.1-r1 the Gentoo-provided systemd 
services have been"
+                       ewarn "Retired in favour of using the units shipped by 
upstream."
+                       ewarn "Ensure that any required services are configured 
and started."
+                       ewarn "[email protected] has been retired as part of this 
transition."
+               fi
        fi
 
        if [[ -z ${REPLACING_VERSIONS} ]] && use clamonacc; then
@@ -406,4 +409,5 @@ pkg_postinst() {
                einfo "can be enabled, and may not produce any output if not 
properly"
                einfo "configured. Read the appropriate man page if clamonacc 
is desired."
        fi
+
 }

Reply via email to