summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2019-06-03 19:59:48 +0000
committerKurt Jaeger <pi@FreeBSD.org>2019-06-03 19:59:48 +0000
commit16115b35bb8a9acd59d7103a8348e9bd5b9e1213 (patch)
tree9629fc0a5ec36eeb04c381390da3f8af7b97dc32
parentsecurity/py-zxcvbn-python: update to 4.4.28 (diff)
security/base-audit: upgrade 0.3 -> 0.4
- Since all supported FreeBSD versions have anticongestion function in /etc/default/periodic.conf, always use it to insert random sleep with non-interactive mode. - pet portlint PR: 236751 Submitted by: Yasuhiro KIMURA <yasu@utahime.org> Approved by: Miroslav Lachman <000.fbsd@quip.cz> (maintainer)
-rw-r--r--security/base-audit/Makefile2
-rw-r--r--security/base-audit/files/405.pkg-base-audit.in8
-rw-r--r--security/base-audit/pkg-descr2
3 files changed, 3 insertions, 9 deletions
diff --git a/security/base-audit/Makefile b/security/base-audit/Makefile
index d30a12a4b38d..6b5b76143ae4 100644
--- a/security/base-audit/Makefile
+++ b/security/base-audit/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= base-audit
-PORTVERSION= 0.3
+PORTVERSION= 0.4
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 9f94247152e3..94f9899907b5 100644
--- a/security/base-audit/files/405.pkg-base-audit.in
+++ b/security/base-audit/files/405.pkg-base-audit.in
@@ -101,13 +101,7 @@ audit_base() {
$(( 86400 \* "${security_status_baseaudit_expiry}" )) \
-le $(( ${now} - ${then} + 600 )) ]; 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
+ anticongestion
f="-F"
else
echo -n 'Database fetched: '
diff --git a/security/base-audit/pkg-descr b/security/base-audit/pkg-descr
index 0b560575e978..11e8cb99a1aa 100644
--- a/security/base-audit/pkg-descr
+++ b/security/base-audit/pkg-descr
@@ -1,4 +1,4 @@
-Audit base system against known vulnerabilities and generate reports
+Audit base system against known vulnerabilities and generate reports
including references to security advisories.
It uses pkg audit and Vuxml database as is used for packages but this script
checks base system.