summaryrefslogtreecommitdiff
path: root/security/audit-packages
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-02-11 16:51:16 +0000
committeragc <agc@pkgsrc.org>2005-02-11 16:51:16 +0000
commit696d63a6c24109e7a4b02ec353a35e8df4c72259 (patch)
treed4b10fb1ce28e33aff4b2cedc7f6e961e227cbd0 /security/audit-packages
parent8ce9896b2bc6ca8063a45d6ebd53e5c4f7bad5e6 (diff)
downloadpkgsrc-696d63a6c24109e7a4b02ec353a35e8df4c72259.tar.gz
Update audit-packages to 1.33:
In download-vulnerability-list, first set the PKGVULNDIR, then create the directory if it doesn't already exist. Pointed out by Geert Hendrickx on tech-pkg@
Diffstat (limited to 'security/audit-packages')
-rw-r--r--security/audit-packages/Makefile4
-rw-r--r--security/audit-packages/files/download-vulnerability-list12
2 files changed, 8 insertions, 8 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile
index c4a629b1ff4..140dcac9853 100644
--- a/security/audit-packages/Makefile
+++ b/security/audit-packages/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.50 2004/10/07 02:01:38 jlam Exp $
+# $NetBSD: Makefile,v 1.51 2005/02/11 16:51:16 agc Exp $
-DISTNAME= audit-packages-1.32
+DISTNAME= audit-packages-1.33
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list
index 3ce13ae10ab..7a2c566e4c2 100644
--- a/security/audit-packages/files/download-vulnerability-list
+++ b/security/audit-packages/files/download-vulnerability-list
@@ -1,6 +1,6 @@
#! @SH@
-# $NetBSD: download-vulnerability-list,v 1.25 2004/10/29 10:45:45 grant Exp $
+# $NetBSD: download-vulnerability-list,v 1.26 2005/02/11 16:51:16 agc Exp $
#
# Copyright (c) 2000-2003 Alistair Crooks. All rights reserved.
#
@@ -35,11 +35,6 @@
: ${PKGVULNDIR=@PKGVULNDIR@}
-if [ ! -d ${PKGVULNDIR}/. ]; then
- echo "Creating ${PKGVULNDIR}"
- @MKDIR@ ${PKGVULNDIR} || (echo "Can't create ${PKGVULNDIR}" 1>&2; exit 1)
-fi
-
VUL_SOURCE="ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/pkg-vulnerabilities"
NEW_VUL_LIST=pkg-vulnerabilities.$$
EXIST_VUL_LIST=pkg-vulnerabilities
@@ -49,6 +44,11 @@ if [ -r @PKG_SYSCONFDIR@/audit-packages.conf ]; then
. @PKG_SYSCONFDIR@/audit-packages.conf
fi
+if [ ! -d ${PKGVULNDIR}/. ]; then
+ echo "Creating ${PKGVULNDIR}"
+ @MKDIR@ ${PKGVULNDIR} || (echo "Can't create ${PKGVULNDIR}" 1>&2; exit 1)
+fi
+
cd ${PKGVULNDIR}
utility=`echo "@FETCH_CMD@" | @AWK@ '{ print $1 }'`
case "$utility" in