From owner-svn-ports-head@freebsd.org Sun Feb 9 19:15:02 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E4D5223F878; Sun, 9 Feb 2020 19:15:02 +0000 (UTC) (envelope-from mfechner@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 48FzJ65l7Pz4R1k; Sun, 9 Feb 2020 19:15:02 +0000 (UTC) (envelope-from mfechner@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 C04D7AF86; Sun, 9 Feb 2020 19:15:02 +0000 (UTC) (envelope-from mfechner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 019JF2X8066309; Sun, 9 Feb 2020 19:15:02 GMT (envelope-from mfechner@FreeBSD.org) Received: (from mfechner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 019JF1bA066305; Sun, 9 Feb 2020 19:15:01 GMT (envelope-from mfechner@FreeBSD.org) Message-Id: <202002091915.019JF1bA066305@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mfechner set sender to mfechner@FreeBSD.org using -f From: Matthias Fechner Date: Sun, 9 Feb 2020 19:15:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r525669 - in head/security/clamav-unofficial-sigs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: mfechner X-SVN-Commit-Paths: in head/security/clamav-unofficial-sigs: . files X-SVN-Commit-Revision: 525669 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Sun, 09 Feb 2020 19:15:03 -0000 Author: mfechner Date: Sun Feb 9 19:15:01 2020 New Revision: 525669 URL: https://svnweb.freebsd.org/changeset/ports/525669 Log: Update to 7.0.1. They next version will change the way config files can be used to configure this package. Users should use user.conf to do custom configuration. Changed maintainer. PR: 243556 Submitted by: sf@maxempire.com Reported by: freebsd@mnd.sc Modified: head/security/clamav-unofficial-sigs/Makefile head/security/clamav-unofficial-sigs/distinfo head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh head/security/clamav-unofficial-sigs/files/patch-config_master.conf head/security/clamav-unofficial-sigs/files/patch-config_user.conf Modified: head/security/clamav-unofficial-sigs/Makefile ============================================================================== --- head/security/clamav-unofficial-sigs/Makefile Sun Feb 9 18:08:02 2020 (r525668) +++ head/security/clamav-unofficial-sigs/Makefile Sun Feb 9 19:15:01 2020 (r525669) @@ -2,10 +2,10 @@ # $FreeBSD$ PORTNAME= clamav-unofficial-sigs -PORTVERSION= 6.1.1 +PORTVERSION= 7.0.1 CATEGORIES= security -MAINTAINER= ports@FreeBSD.org +MAINTAINER= freebsd@mnd.sc COMMENT= Update script for third-party ClamAV databases LICENSE= BSD3CLAUSE Modified: head/security/clamav-unofficial-sigs/distinfo ============================================================================== --- head/security/clamav-unofficial-sigs/distinfo Sun Feb 9 18:08:02 2020 (r525668) +++ head/security/clamav-unofficial-sigs/distinfo Sun Feb 9 19:15:01 2020 (r525669) @@ -1,3 +1,3 @@ -TIMESTAMP = 1567631464 -SHA256 (extremeshok-clamav-unofficial-sigs-6.1.1_GH0.tar.gz) = bac14809c8106ebae6c13f4db1c330a75f0a284924b3ab3668c49e30619b299f -SIZE (extremeshok-clamav-unofficial-sigs-6.1.1_GH0.tar.gz) = 55340 +TIMESTAMP = 1581201339 +SHA256 (extremeshok-clamav-unofficial-sigs-7.0.1_GH0.tar.gz) = 20e1bd6da863513ec1dc42c3f498ca1dfe1c1845110442c2e4595df6ab8341ed +SIZE (extremeshok-clamav-unofficial-sigs-7.0.1_GH0.tar.gz) = 59517 Modified: head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh ============================================================================== --- head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Sun Feb 9 18:08:02 2020 (r525668) +++ head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Sun Feb 9 19:15:01 2020 (r525669) @@ -1,6 +1,6 @@ ---- clamav-unofficial-sigs.sh.orig 2019-09-02 22:41:48 UTC +--- clamav-unofficial-sigs.sh.orig 2020-02-08 22:48:12 UTC +++ clamav-unofficial-sigs.sh -@@ -1422,25 +1422,14 @@ force_wget="no" +@@ -1541,48 +1541,17 @@ force_wget="no" enable_log="no" custom_config="no" we_have_a_config="0" @@ -13,25 +13,47 @@ - config_dir="/etc/clamav-unofficial-sigs" -elif [ -f "/usr/local/etc/clamav-unofficial-sigs/master.conf" ] ; then - config_dir="/usr/local/etc/clamav-unofficial-sigs/" --elif [ -f "/opt/zimbra/config/clamav-unofficial-sigs/master.conf" ] ; then -- config_dir="/opt/zimbra/config/clamav-unofficial-sigs/" +-elif [ -f "/opt/zimbra/conf/clamav-unofficial-sigs/master.conf" ] ; then +- config_dir="/opt/zimbra/conf/clamav-unofficial-sigs/" -else - xshok_pretty_echo_and_log "ERROR: config_dir (/etc/clamav-unofficial-sigs/master.conf) could not be found" - exit 1 -fi # Default config files +-if [ -r "${config_dir}/master.conf" ] ; then +- config_files+=( "${config_dir}/master.conf" ) +-else +- xshok_pretty_echo_and_log "ERROR: ${config_dir}/master.conf is not readable" +- exit 1 +-fi +config_dir="%%PREFIX%%/etc/clamav-unofficial-sigs" - config_files=("${config_dir}/master.conf") --#find the a suitable os.conf or os.*.conf file --config_file="$(find "$config_dir" -type f -iname "os.conf" -o -iname "os.*.conf" | tail -n1)" --if [ -r "${config_file}" ]; then -- config_files+=( "${config_file}" ) -+if [ -r "${config_dir}/os.conf" ] ; then -+ config_files+=( "${config_dir}/os.conf" ) ++config_files=("${config_dir}/master.conf") + if [ -r "${config_dir}/os.conf" ] ; then + config_files+=( "${config_dir}/os.conf" ) +-else +- #find the a suitable os.*.conf file +- os_config_number=$(find "$config_dir" -type f -iname "os.*.conf" | wc -l) +- if [ "$os_config_number" == "0" ] ; then +- xshok_pretty_echo_and_log "WARNING: no os.conf or os.*.conf found" +- elif [ "$os_config_number" == "1" ] ; then +- config_file="$(find "$config_dir" -type f -iname "os.*.conf" | head -n1)" +- if [ -r "${config_file}" ]; then +- config_files+=( "${config_file}" ) +- else +- xshok_pretty_echo_and_log "WARNING: ${config_file} is not readable" +- fi +- else +- xshok_pretty_echo_and_log "WARNING: Too many os.*.conf configs found" +- fi fi if [ -r "${config_dir}/user.conf" ] ; then config_files+=( "${config_dir}/user.conf" ) -@@ -1576,10 +1565,8 @@ if [ "$custom_config" != "no" ] ; then +-else +- xshok_pretty_echo_and_log "WARNING: ${config_dir}/user.conf is not readable" + fi + + # Solaris command -v function returns garbage when the program is not found +@@ -1718,10 +1687,8 @@ if [ "$custom_config" != "no" ] ; then else xshok_pretty_echo_and_log "WARNING: ${config_dir}/master.conf not found" fi @@ -44,7 +66,7 @@ else xshok_pretty_echo_and_log "WARNING: ${config_dir}/os.conf not found" fi -@@ -1625,7 +1612,7 @@ for config_file in "${config_files[@]}" ; do +@@ -1767,7 +1734,7 @@ for config_file in "${config_files[@]}" ; do # Delete both trailing and leading whitespace # Delete all trailing whitespace # Delete all empty lines @@ -53,7 +75,7 @@ fi #fix eval of | -@@ -1640,7 +1627,7 @@ for config_file in "${config_files[@]}" ; do +@@ -1782,7 +1749,7 @@ for config_file in "${config_files[@]}" ; do fi # Check there is an = for every set of "" optional whitespace \s* between = and " @@ -62,7 +84,7 @@ if [ $(( ${#config_check} / 2 )) -ne "$config_check_vars" ] ; then xshok_pretty_echo_and_log "ERROR: Your configuration has errors, every = requires a pair of \"\"" -@@ -2316,24 +2303,12 @@ if [ "$sanesecurity_enabled" == "yes" ] ; then +@@ -2504,24 +2471,12 @@ if [ "$sanesecurity_enabled" == "yes" ] ; then echo "$current_time" > "${work_dir_work_configs}/last-ss-update.txt" xshok_pretty_echo_and_log "Sanesecurity Database & GPG Signature File Updates" "=" xshok_pretty_echo_and_log "Checking for Sanesecurity updates..." @@ -90,3 +112,12 @@ sanesecurity_mirror_site_info="$sanesecurity_mirror_name $sanesecurity_mirror_ip" xshok_pretty_echo_and_log "Sanesecurity mirror site used: ${sanesecurity_mirror_site_info}" # shellcheck disable=SC2086 +@@ -2834,7 +2789,7 @@ if [ "$linuxmalwaredetect_enabled" == "yes" ] ; then + ret="$?" + if [ "$ret" -eq 0 ] ; then + # shellcheck disable=SC2035 +- $tar_bin --strip-components=1 --wildcards --overwrite -xzf "${work_dir_linuxmalwaredetect}/sigpack.tgz" --directory "${work_dir_linuxmalwaredetect}" */rfxn.* ++ $tar_bin --strip-components=1 -xzf "${work_dir_linuxmalwaredetect}/sigpack.tgz" --directory "${work_dir_linuxmalwaredetect}" "*/rfxn.*" + for db_file in "${linuxmalwaredetect_dbs[@]}" ; do + if [ "$loop" == "1" ] ; then + xshok_pretty_echo_and_log "---" Modified: head/security/clamav-unofficial-sigs/files/patch-config_master.conf ============================================================================== --- head/security/clamav-unofficial-sigs/files/patch-config_master.conf Sun Feb 9 18:08:02 2020 (r525668) +++ head/security/clamav-unofficial-sigs/files/patch-config_master.conf Sun Feb 9 19:15:01 2020 (r525669) @@ -1,6 +1,6 @@ ---- config/master.conf.orig 2019-09-02 22:41:48 UTC +--- config/master.conf.orig 2020-01-25 12:02:06 UTC +++ config/master.conf -@@ -63,8 +63,8 @@ clamd_reload_opt="clamdscan --reload" +@@ -59,8 +59,8 @@ clamd_reload_opt="clamdscan --reload" work_dir="/var/lib/clamav-unofficial-sigs" #Top level working directory # Log update information to '$log_file_path/$log_file_name'. @@ -11,7 +11,21 @@ log_file_name="clamav-unofficial-sigs.log" ## Use a program to log messages #log_pipe_cmd="/usr/bin/logger -it 'clamav-unofficial-sigs'" -@@ -487,8 +487,6 @@ selinux_fixes="no" # Default is "no" ignore ssl errors +@@ -507,11 +507,11 @@ git_branch="master" + # Enable support for script and master.conf upgrades + # enbles the --upgrade command line option + # packagers, if required please disable or set this option to no in the os.conf +-allow_upgrades="yes" ++allow_upgrades="no" + + # Enable support for script and master.conf update checks + # packagers, if required please disable or set this option to no in the os.conf +-allow_update_checks="yes" ++allow_update_checks="no" + + # How often the script should check for updates + update_check_hours="12"# Default is 12 hours (2 checks daily). +@@ -618,8 +618,6 @@ selinux_fixes="no" # Default is "no" ignore ssl errors #rsync_proxy="username:password@proxy_host:proxy_port" #curl_proxy="--proxy http://username:password@proxy_host:proxy_port" #wget_proxy="-e http_proxy=http://username:password@proxy_host:proxy_port -e https_proxy=https://username:password@proxy_host:proxy_port" Modified: head/security/clamav-unofficial-sigs/files/patch-config_user.conf ============================================================================== --- head/security/clamav-unofficial-sigs/files/patch-config_user.conf Sun Feb 9 18:08:02 2020 (r525668) +++ head/security/clamav-unofficial-sigs/files/patch-config_user.conf Sun Feb 9 19:15:01 2020 (r525669) @@ -1,6 +1,6 @@ ---- config/user.conf.orig 2019-09-02 22:41:48 UTC +--- config/user.conf.orig 2020-01-25 12:02:06 UTC +++ config/user.conf -@@ -49,14 +49,12 @@ +@@ -54,13 +54,11 @@ #) #END ADDITIONAL DATABASES # Uncomment the following line to enable the script @@ -9,10 +9,9 @@ # Proxy Support # If necessary to proxy database downloads, define the rsync, curl, wget, dig, hosr proxy settings here. - #rsync_proxy="username:password@proxy_host:proxy_port" #curl_proxy="--proxy http://username:password@proxy_host:proxy_port" - #wget_proxy="-e http_proxy=http://username:password@proxy_host:proxy_port -e https_proxy=https://username:password@proxy_host:proxy_port" -#dig_proxy="@proxy_host -p proxy_host:proxy_port" -#host_proxy="@proxy_host" #does not support port + #rsync_proxy="username:password@proxy_host:proxy_port" + #wget_proxy="-e http_proxy=http://username:password@proxy_host:proxy_port -e https_proxy=https://username:password@proxy_host:proxy_port" - # https://eXtremeSHOK.com ######################################################