commit:     cdab26dbefdc03b1dd47c3e396914a393e6d8e48
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 24 21:42:58 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Mon Jun 24 22:29:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdab26db

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 <kangie <AT> gentoo.org>

 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 fed1a8c4198a..04fcfda4d498 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

Reply via email to