Date: Thu, 15 Dec 2016 06:33:34 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428603 - in head/security/clamav-unofficial-sigs: . files Message-ID: <201612150633.uBF6XYeG048655@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Thu Dec 15 06:33:34 2016 New Revision: 428603 URL: https://svnweb.freebsd.org/changeset/ports/428603 Log: security/clamav-unofficial-sigs: fix regexp problems PR: 214573 Submitted by: Marko Njezic <sf@maxempire.com> (maintainer) Reported by: freebsdbug@patpro.net 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 Thu Dec 15 04:18:30 2016 (r428602) +++ head/security/clamav-unofficial-sigs/Makefile Thu Dec 15 06:33:34 2016 (r428603) @@ -3,6 +3,7 @@ PORTNAME= clamav-unofficial-sigs PORTVERSION= 5.3.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 Thu Dec 15 04:18:30 2016 (r428602) +++ head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh Thu Dec 15 06:33:34 2016 (r428603) @@ -1,4 +1,4 @@ ---- clamav-unofficial-sigs.sh.orig 2016-06-03 09:51:21 UTC +--- clamav-unofficial-sigs.sh.orig 2016-11-18 10:05:40 UTC +++ clamav-unofficial-sigs.sh @@ -753,6 +753,8 @@ function make_signature_database_from_as #Remove the clamav-unofficial-sigs script @@ -27,7 +27,7 @@ - if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -lt 1 ] ; then - sanesecurity_mirror_ips=$(host -t A "$sanesecurity_url" | sed -n '/has address/{s/.*address \([^ ]*\).*/\1/;p;}') - fi -+ sanesecurity_mirror_ips=$(host "$sanesecurity_url" | sed 's/.*\s//') ++ sanesecurity_mirror_ips=$(host "$sanesecurity_url" | sed 's/.*[[:space:]]//') if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -ge "1" ] ; then for sanesecurity_mirror_ip in $sanesecurity_mirror_ips ; do @@ -37,7 +37,7 @@ - if [ "$sanesecurity_mirror_name" == "" ] ; then - sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed -n '/name pointer/{s/.*pointer \([^ ]*\).*\.$/\1/;p;}') - fi -+ sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed 's/.*\s//' | sed 's/\.$//') ++ sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed 's/.*[[:space:]]//' | sed 's/\.$//') sanesecurity_mirror_site_info="$sanesecurity_mirror_name $sanesecurity_mirror_ip" xshok_pretty_echo_and_log "Sanesecurity mirror site used: $sanesecurity_mirror_site_info" $rsync_bin $rsync_output_level $no_motd --files-from="$sanesecurity_include_dbs" -ctuz $connect_timeout --timeout="$rsync_max_time" "rsync://$sanesecurity_mirror_ip/sanesecurity" "$work_dir_sanesecurity" 2>/dev/null
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612150633.uBF6XYeG048655>