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)
This commit is contained in:
Kurt Jaeger 2019-06-03 19:59:48 +00:00
parent 4ecd855a59
commit 16115b35bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=503419
3 changed files with 3 additions and 9 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= base-audit
PORTVERSION= 0.3
PORTVERSION= 0.4
CATEGORIES= security
MASTER_SITES= # none
DISTFILES= # none

View File

@ -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: '

View File

@ -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.