pkgsrc/security/audit-packages/Makefile
agc 0db172cd34 Update audit-packages to 1.8:
Fix a problem which occurs if the vulnerability list does not already exist.

This fixes PR 12763 from Brian de Alwis (bsd@cs.ubc.ca), albeit in a
slightly different manner.  (I also added a check for the existence of
the new vulnerabilities file, in case it was not downloaded for some
reason).
2001-04-27 08:40:53 +00:00

31 lines
800 B
Makefile

# $NetBSD: Makefile,v 1.10 2001/04/27 08:40:53 agc Exp $
DISTNAME= audit-packages-1.8
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= agc@netbsd.org
COMMENT= tools to show vulnerabilities in installed packages
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
NO_BUILD= yes
NO_MTREE= yes
do-configure:
@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' \
-e 's|\$${PKG_INFO}|${PKG_INFO}|g' \
-e 's|\$${TOUCH}|${TOUCH}|g' \
${FILESDIR}/$$f > ${WRKSRC}/$$f; \
done
do-install:
@for f in audit-packages download-vulnerability-list; do \
${BSD_INSTALL_SCRIPT} ${WRKSRC}/$$f ${PREFIX}/sbin; \
done
.include "../../mk/bsd.pkg.mk"