svn commit: r503419 - in head/security/base-audit: . files

Kurt Jaeger pi at FreeBSD.org
Mon Jun 3 19:59:50 UTC 2019


Author: pi
Date: Mon Jun  3 19:59:48 2019
New Revision: 503419
URL: https://svnweb.freebsd.org/changeset/ports/503419

Log:
  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 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
  head/security/base-audit/pkg-descr

Modified: head/security/base-audit/Makefile
==============================================================================
--- head/security/base-audit/Makefile	Mon Jun  3 19:14:18 2019	(r503418)
+++ head/security/base-audit/Makefile	Mon Jun  3 19:59:48 2019	(r503419)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	base-audit
-PORTVERSION=	0.3
+PORTVERSION=	0.4
 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 Jun  3 19:14:18 2019	(r503418)
+++ head/security/base-audit/files/405.pkg-base-audit.in	Mon Jun  3 19:59:48 2019	(r503419)
@@ -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: '

Modified: head/security/base-audit/pkg-descr
==============================================================================
--- head/security/base-audit/pkg-descr	Mon Jun  3 19:14:18 2019	(r503418)
+++ head/security/base-audit/pkg-descr	Mon Jun  3 19:59:48 2019	(r503419)
@@ -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.


More information about the svn-ports-all mailing list