summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld>2000-10-26 17:33:45 +0000
committersommerfeld <sommerfeld>2000-10-26 17:33:45 +0000
commitf89580f17b9604534407566151c892b12e59186e (patch)
treea080b7dc54b075cdeb5793e4eff8173f6a9c2178 /security
parentdd6f55beeb57f8fc1edce60b92dd5864b0d79f39 (diff)
downloadpkgsrc-f89580f17b9604534407566151c892b12e59186e.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')
-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 }