svn commit: r478844 - in head/security/base-audit: . files
Kurt Jaeger
pi at FreeBSD.org
Mon Sep 3 05:23:22 UTC 2018
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 at utahime.org>
Approved by: Miroslav Lachman <000.fbsd at 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"
More information about the svn-ports-head
mailing list