diff options
Diffstat (limited to 'security/audit-packages/files/download-vulnerability-list')
-rw-r--r-- | security/audit-packages/files/download-vulnerability-list | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list index 886c2e0d399..e25b6b536ff 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.27 2005/10/20 10:26:54 agc Exp $ +# $NetBSD: download-vulnerability-list,v 1.28 2006/05/21 13:31:27 adrianp Exp $ # # Copyright (c) 2000-2003 Alistair Crooks. All rights reserved. # @@ -34,8 +34,8 @@ # : ${PKGVULNDIR=@PKGVULNDIR@} +: ${FETCH_PROTO=ftp} -VUL_SOURCE="ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/pkg-vulnerabilities" NEW_VUL_LIST=pkg-vulnerabilities.$$ EXIST_VUL_LIST=pkg-vulnerabilities @@ -45,11 +45,21 @@ if [ -r @PKG_SYSCONFDIR@/audit-packages.conf ]; then . @PKG_SYSCONFDIR@/audit-packages.conf fi +VUL_SOURCE="${FETCH_PROTO}://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/pkg-vulnerabilities" + if [ ! -d ${PKGVULNDIR}/. ]; then echo "Creating ${PKGVULNDIR}" @MKDIR@ ${PKGVULNDIR} || (echo "Can't create ${PKGVULNDIR}" 1>&2; exit 1) fi +case ${FETCH_PROTO} in +http) ;; +ftp) ;; +*) echo "Unknown FETCH_PROTO specified - Only http and ftp are aurrently supported." + exit 1 + ;; +esac + cd ${PKGVULNDIR} utility=`echo "@FETCH_CMD@" | @AWK@ '{ print $1 }'` case "$utility" in |