From owner-svn-ports-head@freebsd.org Mon Jan 28 19:37:03 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4235114BD02F; Mon, 28 Jan 2019 19:37:03 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DB9FF748EC; Mon, 28 Jan 2019 19:37:02 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CEF2B2444C; Mon, 28 Jan 2019 19:37:02 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0SJb2pJ086068; Mon, 28 Jan 2019 19:37:02 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0SJb2lD086066; Mon, 28 Jan 2019 19:37:02 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201901281937.x0SJb2lD086066@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 28 Jan 2019 19:37:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491514 - in head/security/clamav-unofficial-sigs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/security/clamav-unofficial-sigs: . files X-SVN-Commit-Revision: 491514 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DB9FF748EC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.95)[-0.955,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 19:37:03 -0000 Author: tobik Date: Mon Jan 28 19:37:02 2019 New Revision: 491514 URL: https://svnweb.freebsd.org/changeset/ports/491514 Log: security/clamav-unofficial-sigs: Patch out GNU extended regex There are a couple of cases of GNU extensions being used in clamav-unofficial-sigs.sh; all being \s, or [[:space:]]. Patch these over to [[:space:]] since this script is already otherwise patched until our base sed becomes GNU-compatible in this respect. This worked up until this point because \s is being interpreted as an escaped 's', which is an ordinary character. Future versions of regex(3) will disallowed escaped ordinary characters, so this will become an error if left unpatched. PR: 233461 Submitted by: kevans, Marko Njezic (maintainer, final patch) Modified: head/security/clamav-unofficial-sigs/Makefile head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Modified: head/security/clamav-unofficial-sigs/Makefile ============================================================================== --- head/security/clamav-unofficial-sigs/Makefile Mon Jan 28 19:24:50 2019 (r491513) +++ head/security/clamav-unofficial-sigs/Makefile Mon Jan 28 19:37:02 2019 (r491514) @@ -3,6 +3,7 @@ PORTNAME= clamav-unofficial-sigs PORTVERSION= 5.6.2 +PORTREVISION= 1 CATEGORIES= security MAINTAINER= sf@maxempire.com Modified: head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh ============================================================================== --- head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Mon Jan 28 19:24:50 2019 (r491513) +++ head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Mon Jan 28 19:37:02 2019 (r491514) @@ -1,4 +1,4 @@ ---- clamav-unofficial-sigs.sh.orig 2018-03-27 15:43:43 UTC +--- clamav-unofficial-sigs.sh.orig 2018-11-24 16:35:07 UTC +++ clamav-unofficial-sigs.sh @@ -1290,7 +1290,7 @@ minimum_required_config_version="72" minimum_yara_clamav_version="0.99" @@ -18,6 +18,24 @@ # Solaris which function returns garbage when the program is not found # only define the new which function if running under Solaris +@@ -1455,7 +1457,7 @@ for config_file in "${config_files[@]}" + # Delete both trailing and leading whitespace + # Delete all trailing whitespace + # Delete all empty lines +- clean_config="$(command sed -e '/^#.*/d' -e 's/[[:space:]]#.*//' -e 's/#[[:space:]].*//' -e 's/^[ \t]*//;s/[ \t]*$//' -e '/^\s*$/d' "$config_file")" ++ clean_config="$(command sed -e '/^#.*/d' -e 's/[[:space:]]#.*//' -e 's/#[[:space:]].*//' -e 's/^[[:blank:]]*//;s/[[:blank:]]*$//' -e '/^[[:space:]]*$/d' "$config_file")" + fi + + #fix eval of | +@@ -1470,7 +1472,7 @@ for config_file in "${config_files[@]}" + fi + + # Check there is an = for every set of "" optional whitespace \s* between = and " +- config_check_vars="$(echo "$clean_config" | $grep_bin -c '=\s*\"' )" ++ config_check_vars="$(echo "$clean_config" | $grep_bin -c '=[[:space:]]*\"' )" + + if [ $(( ${#config_check} / 2 )) -ne "$config_check_vars" ] ; then + xshok_pretty_echo_and_log "ERROR: Your configuration has errors, every = requires a pair of \"\"" "=" @@ -2131,20 +2133,11 @@ if [ "$sanesecurity_enabled" == "yes" ] xshok_pretty_echo_and_log "Sanesecurity Database & GPG Signature File Updates" "=" xshok_pretty_echo_and_log "Checking for Sanesecurity updates..."