summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authorjoerg <joerg>2006-10-05 14:26:42 +0000
committerjoerg <joerg>2006-10-05 14:26:42 +0000
commit6ad9e2318e715305c2d77c1b184a6e1f5e1e0920 (patch)
tree2bc8fc473d6b8c37a979985e35f9774ccdb03d2b /security/audit-packages
parentd360b0b52f6b3f722149ca238b6d7cae35224d5e (diff)
downloadpkgsrc-6ad9e2318e715305c2d77c1b184a6e1f5e1e0920.tar.gz
When in verbose mode, print a note when no vulnerable packages are
found. Bump to 1.44. Addresses PR 24454. OK agc@
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/Makefile4
-rwxr-xr-xsecurity/audit-packages/files/audit-packages8
2 files changed, 9 insertions, 3 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index 3acd5e1edf4..4c03c7bc987 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.69 2006/09/20 14:43:30 rillig Exp $
+# $NetBSD: Makefile,v 1.70 2006/10/05 14:26:42 joerg Exp $
-DISTNAME= audit-packages-1.43
+DISTNAME= audit-packages-1.44
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 6fbc712dba2..5edd318b0c9 100755
--- a/security/audit-packages/files/audit-packages
+++ b/security/audit-packages/files/audit-packages
@@ -1,6 +1,6 @@
#! @SH@
#
-# $NetBSD: audit-packages,v 1.27 2006/04/15 15:02:10 salo Exp $
+# $NetBSD: audit-packages,v 1.28 2006/10/05 14:26:42 joerg Exp $
#
# Copyright (c) 2000-2003 Alistair Crooks. All rights reserved.
#
@@ -186,6 +186,7 @@ case "$errmsg" in
;;
esac
+found_vulnpkg=0
# check for vulnerabilities
while read pat type url; do
case "$pat" in
@@ -201,9 +202,14 @@ while read pat type url; do
fi
fi
for pkg in $vulnpkgs ; do
+ found_vulnpkg=`expr $found_vulnpkg + 1`
echo "Package $pkg has a" \
"$type vulnerability, see $url"
done
done < "$vuls"
+if [ "$verbose" = "yes" -a "$found_vulnpkg" -eq 0 ]; then
+ echo "No vulnerable packages found."
+fi
+
exit 0