diff options
author | agc <agc@pkgsrc.org> | 2001-03-20 10:36:18 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-03-20 10:36:18 +0000 |
commit | d8c525cce17a10a0fd7a1cba8930e8ec0464fec2 (patch) | |
tree | 5306135a978baed07014641273c66e53ab647d55 /security | |
parent | c403a528b817c5ef68fbacb75682a092053eaba1 (diff) | |
download | pkgsrc-d8c525cce17a10a0fd7a1cba8930e8ec0464fec2.tar.gz |
Update the download-vulnerability-list script to check for the
existence of ${DISTDIR}, and to create it if it doesn't exist. This
is for machines built with binary packages, which lack pkgsrc, but
this way preserves the location of the vulnerabilities file.
Addresses PR 12367
Diffstat (limited to 'security')
-rw-r--r-- | security/audit-packages/Makefile | 8 | ||||
-rw-r--r-- | security/audit-packages/files/download-vulnerability-list | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile index 5dbb2bc0047..c8ffa6914cc 100644 --- a/security/audit-packages/Makefile +++ b/security/audit-packages/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.5 2001/02/17 17:49:40 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2001/03/20 10:36:18 agc Exp $ -DISTNAME= audit-packages-1.3 +DISTNAME= audit-packages-1.4 CATEGORIES= security pkgtools MASTER_SITES= # empty DISTFILES= # empty @@ -14,7 +14,7 @@ NO_BUILD= yes NO_MTREE= yes do-configure: - @for f in audit-packages download-vulnerability-list; do \ + @for f in audit-packages download-vulnerability-list; do \ ${SED} -e 's|\$${DISTDIR}|${DISTDIR}|g' \ -e 's|\$${AWK}|${AWK}|g' \ -e 's|\$${FETCH_CMD}|${FETCH_CMD}|g' \ @@ -24,7 +24,7 @@ do-configure: done do-install: - @for f in audit-packages download-vulnerability-list; do \ + @for f in audit-packages download-vulnerability-list; do \ ${BSD_INSTALL_SCRIPT} ${WRKSRC}/$$f ${PREFIX}/sbin; \ done diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list index 54b46a0f18b..b0a6e643f4c 100644 --- a/security/audit-packages/files/download-vulnerability-list +++ b/security/audit-packages/files/download-vulnerability-list @@ -2,6 +2,11 @@ NEW_VUL_LIST=${DISTDIR}/vulnerabilities.$$ +if [ ! -e ${DISTDIR} ]; then + echo "Creating ${DISTDIR}" + /bin/mkdir -p ${DISTDIR} || (echo "Can't create ${DISTDIR}"; exit 1) +fi + ${FETCH_CMD} -o ${NEW_VUL_LIST} ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/vulnerabilities || \ (echo "Can't download vulnerability list"; exit 1) |