Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2018 05:23:21 +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: r478844 - in head/security/base-audit: . files
Message-ID:  <201809030523.w835NLx9090007@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <yasu@utahime.org>
  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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809030523.w835NLx9090007>