diff options
author | agc <agc@pkgsrc.org> | 2005-02-11 16:51:16 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2005-02-11 16:51:16 +0000 |
commit | 696d63a6c24109e7a4b02ec353a35e8df4c72259 (patch) | |
tree | d4b10fb1ce28e33aff4b2cedc7f6e961e227cbd0 | |
parent | 8ce9896b2bc6ca8063a45d6ebd53e5c4f7bad5e6 (diff) | |
download | pkgsrc-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@
-rw-r--r-- | doc/CHANGES | 3 | ||||
-rw-r--r-- | security/audit-packages/Makefile | 4 | ||||
-rw-r--r-- | security/audit-packages/files/download-vulnerability-list | 12 |
3 files changed, 10 insertions, 9 deletions
diff --git a/doc/CHANGES b/doc/CHANGES index d761ed125af..6372886485d 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,4 +1,4 @@ -$NetBSD: CHANGES,v 1.9113 2005/02/11 16:43:25 minskim Exp $ +$NetBSD: CHANGES,v 1.9114 2005/02/11 16:52:27 agc Exp $ Changes to the packages collection and infrastructure in 2005: @@ -848,3 +848,4 @@ Changes to the packages collection and infrastructure in 2005: Updated gtk-send-pr to 0.4.4 [jmmv 2005-02-11] Updated squid to 2.5.8 [taca 2005-02-11] Added pgpool-2.5 [minskim 2005-02-11] + Updated audit-packages to 1.33 [agc 2005-02-11] 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 |