git: 02ad51df301f - main - security/clamassassin: fix non-compliant email header

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 18 Jan 2022 06:50:10 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=02ad51df301f8d70e32382580d4018ab0ba730e3

commit 02ad51df301f8d70e32382580d4018ab0ba730e3
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-01-17 08:39:58 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-01-18 06:48:34 +0000

    security/clamassassin: fix non-compliant email header
    
    The X-Virus-Checker-Version: header added by clamassassin contains a newline if
    clamd is down.  This creates a non-compliant email header (because it doesn't
    end with a colon).
    
    PR:     261131
    Reported by:    martin@lispworks.com
    Approved by:    chalpin@cs.wisc.edu (maintainer, timeout > 1 week)
---
 security/clamassassin/files/patch-clamassassin.in | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/security/clamassassin/files/patch-clamassassin.in b/security/clamassassin/files/patch-clamassassin.in
new file mode 100644
index 000000000000..e99f320686b6
--- /dev/null
+++ b/security/clamassassin/files/patch-clamassassin.in
@@ -0,0 +1,11 @@
+--- clamassassin.in.orig	2007-03-05 04:19:48 UTC
++++ clamassassin.in
+@@ -132,7 +132,7 @@ ${CAT} > ${MSGTMP}
+ bailiferr $?
+ 
+ # Set version header string
+-CLAMVERS=`${CLAMSCAN} -V --stdout`
++CLAMVERS=`${CLAMSCAN} -V --stdout | tail -1`
+ 
+ if [ ${ADDSCANNERFLAG} != 0 ]
+ then