From cdab26dbefdc03b1dd47c3e396914a393e6d8e48 Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Tue, 25 Jun 2024 07:42:58 +1000 Subject: [PATCH] app-antivirus/clamav: 1.3.1-r1: fix build with USE=milter I dropped the escape and the end of a capture group! Also drop superfluous 'MilterSocket Unix.*' sed. Closes: https://bugs.gentoo.org/934816 Signed-off-by: Matt Jolly --- app-antivirus/clamav/clamav-1.3.1-r1.ebuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app-antivirus/clamav/clamav-1.3.1-r1.ebuild b/app-antivirus/clamav/clamav-1.3.1-r1.ebuild index fed1a8c4198a9..04fcfda4d4987 100644 --- a/app-antivirus/clamav/clamav-1.3.1-r1.ebuild +++ b/app-antivirus/clamav/clamav-1.3.1-r1.ebuild @@ -331,10 +331,9 @@ src_install() { if use milter ; then # Note: only keep the "unix" ClamdSocket and MilterSocket! sed -e "s:^\(Example\):\# \1:" \ - -e "s:^#\(PidFile) .*\:\1 ${EPREFIX}/run/clamav-milter.pid:" \ + -e "s:^\#\(PidFile\) .*:\1 ${EPREFIX}/run/clamav-milter.pid:" \ -e "s/^#\(ClamdSocket unix:.*\)/\1/" \ -e "s/^#\(User .*\)/\1/" \ - -e "s/^#\(MilterSocket unix:.*\)/\1/" \ -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ "${ED}"/etc/clamav/clamav-milter.conf.sample > \ "${ED}"/etc/clamav/clamav-milter.conf || die