summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@pkgsrc.org>2000-10-26 17:33:45 +0000
committersommerfeld <sommerfeld@pkgsrc.org>2000-10-26 17:33:45 +0000
commit017538a28b3ab589fa50f003b9beeb09b46a14c0 (patch)
treea080b7dc54b075cdeb5793e4eff8173f6a9c2178 /security/audit-packages
parent37d63dab25457ed807cb4e7a8441a63bda50e66b (diff)
downloadpkgsrc-017538a28b3ab589fa50f003b9beeb09b46a14c0.tar.gz
audit-packages 1.2:
check if vulnerabilities file is more than a week old, and whine if it is whine to stderr rather than stdout
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/Makefile4
-rwxr-xr-xsecurity/audit-packages/files/audit-packages12
2 files changed, 12 insertions, 4 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index d56a8ccea8c..713a73efe17 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2000/10/02 17:51:07 abs Exp $
+# $NetBSD: Makefile,v 1.3 2000/10/26 17:33:45 sommerfeld Exp $
-DISTNAME= audit-packages-1.1
+DISTNAME= audit-packages-1.2
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/security/audit-packages/files/audit-packages b/security/audit-packages/files/audit-packages
index 727a8aa8050..aec5a34a820 100755
--- a/security/audit-packages/files/audit-packages
+++ b/security/audit-packages/files/audit-packages
@@ -1,10 +1,18 @@
#! /bin/sh
if [ ! -f ${DISTDIR}/vulnerabilities ] ;then
- echo "** Missing ${DISTDIR}/vulnerabilities"
- echo "** run download-vulnerability-list"
+ echo "** Missing ${DISTDIR}/vulnerabilities" 1>&2
+ echo "** run download-vulnerability-list" 1>&2
exit 1
fi
+
+if [ -n "$(find ${DISTDIR}/vulnerabilities -mtime +7)" ]
+then
+ echo "** ${DISTDIR}/vulnerabilities more than a week old" 1>&2
+ echo "** run download-vulnerability-list" 1>&2
+ exit 1
+fi
+
${AWK} '
/^#.*/ { next }
NF == 0 { next }