aboutsummaryrefslogtreecommitdiff
path: root/security/base-audit
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2018-09-03 05:23:21 +0000
committerKurt Jaeger <pi@FreeBSD.org>2018-09-03 05:23:21 +0000
commit1722513b5c2aa3273920b36f2c91b9f08fcc0e65 (patch)
tree5a8c821771027104207458e8e70cf4c31feaf9af /security/base-audit
parentcc331ca2d4805f06ef982e93c0b4d16b71e0d4fc (diff)
downloadports-1722513b5c2aa3273920b36f2c91b9f08fcc0e65.tar.gz
ports-1722513b5c2aa3273920b36f2c91b9f08fcc0e65.zip
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)
Notes
Notes: svn path=/head/; revision=478844
Diffstat (limited to 'security/base-audit')
-rw-r--r--security/base-audit/Makefile2
-rw-r--r--security/base-audit/files/405.pkg-base-audit.in8
2 files changed, 7 insertions, 3 deletions
diff --git a/security/base-audit/Makefile b/security/base-audit/Makefile
index 247b4eb624bd..d30a12a4b38d 100644
--- a/security/base-audit/Makefile
+++ b/security/base-audit/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= base-audit
-PORTVERSION= 0.2
+PORTVERSION= 0.3
CATEGORIES= security
MASTER_SITES= # none
DISTFILES= # none
diff --git a/security/base-audit/files/405.pkg-base-audit.in b/security/base-audit/files/405.pkg-base-audit.in
index 8d317ca2a271..9f94247152e3 100644
--- a/security/base-audit/files/405.pkg-base-audit.in
+++ b/security/base-audit/files/405.pkg-base-audit.in
@@ -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"