From 696d63a6c24109e7a4b02ec353a35e8df4c72259 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 11 Feb 2005 16:51:16 +0000 Subject: 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@ --- security/audit-packages/Makefile | 4 ++-- security/audit-packages/files/download-vulnerability-list | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'security/audit-packages') 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 -- cgit v1.2.3