From owner-svn-ports-head@freebsd.org Mon Sep 3 05:23:22 2018 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 8E603FDE074; Mon, 3 Sep 2018 05:23:22 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42EA475767; Mon, 3 Sep 2018 05:23:22 +0000 (UTC) (envelope-from pi@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 3DE6C239F7; Mon, 3 Sep 2018 05:23:22 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w835NMtG090008; Mon, 3 Sep 2018 05:23:22 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w835NLx9090007; Mon, 3 Sep 2018 05:23:21 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201809030523.w835NLx9090007@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Mon, 3 Sep 2018 05:23:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478844 - in head/security/base-audit: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/security/base-audit: . files X-SVN-Commit-Revision: 478844 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.27 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, 03 Sep 2018 05:23:22 -0000 Author: pi Date: Mon Sep 3 05:23:21 2018 New Revision: 478844 URL: https://svnweb.freebsd.org/changeset/ports/478844 Log: security/base-audit: update 0.2 -> 0.3 - Use anticongestion function if available PR: 230393 Submitted by: Yasuhiro KIMURA Approved by: Miroslav Lachman <000.fbsd@quip.cz> (maintainer) Modified: head/security/base-audit/Makefile head/security/base-audit/files/405.pkg-base-audit.in Modified: head/security/base-audit/Makefile ============================================================================== --- head/security/base-audit/Makefile Mon Sep 3 05:23:06 2018 (r478843) +++ head/security/base-audit/Makefile Mon Sep 3 05:23:21 2018 (r478844) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= base-audit -PORTVERSION= 0.2 +PORTVERSION= 0.3 CATEGORIES= security MASTER_SITES= # none DISTFILES= # none Modified: head/security/base-audit/files/405.pkg-base-audit.in ============================================================================== --- head/security/base-audit/files/405.pkg-base-audit.in Mon Sep 3 05:23:06 2018 (r478843) +++ head/security/base-audit/files/405.pkg-base-audit.in Mon Sep 3 05:23:21 2018 (r478844) @@ -100,8 +100,12 @@ audit_base() { if [ $rc -ne 0 -o \ $(( 86400 \* "${security_status_baseaudit_expiry}" )) \ -le $(( ${now} - ${then} + 600 )) ]; then - ## Random delay so the mirrors do not get slammed when run by periodic(8) - if [ ! -t 0 ]; then + ## When non-interactive, sleep to reduce congestion on mirrors + if [ -n "$anticongestion_sleeptime" ]; then + # In FreeBSD 12.0 the anticongestion function should be + # used instead of a hard-coded sleep + anticongestion + else sleep `jot -r 1 0 600` fi f="-F"