diff options
Diffstat (limited to 'security/audit-packages/Makefile')
-rw-r--r-- | security/audit-packages/Makefile | 63 |
1 files changed, 41 insertions, 22 deletions
diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile index 088bd5bfbb3..5c4088e2699 100644 --- a/security/audit-packages/Makefile +++ b/security/audit-packages/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.73 2006/11/25 13:43:42 agc Exp $ +# $NetBSD: Makefile,v 1.74 2006/12/09 12:30:46 adrianp Exp $ -DISTNAME= audit-packages-1.45 +DISTNAME= audit-packages-1.46 CATEGORIES= security pkgtools MASTER_SITES= # empty DISTFILES= # empty @@ -16,7 +16,7 @@ USE_TOOLS+= digest:run BUILD_DEFS+= PKGVULNDIR WRKSRC= ${WRKDIR} -NO_CHECKSUM= yes +NO_CHECKSUM= yes OWN_DIRS= ${PKGVULNDIR} MAN8DIR= ${PREFIX}/${PKGMANDIR}/man8 @@ -31,38 +31,57 @@ MESSAGE_SRC= ${PKGDIR}/MESSAGE.DragonFly MESSAGE_SRC= ${PKGDIR}/MESSAGE .endif +CONF_FILES= ${PREFIX}/share/examples/audit-packages/audit-packages.conf \ + ${PKG_SYSCONFDIR}/audit-packages.conf + +SUBST_CLASSES= paths +SUBST_STAGE.paths= post-build +SUBST_FILES.paths= audit-packages audit-packages.0 audit-packages.8 +SUBST_FILES.paths+= download-vulnerability-list +SUBST_SED.paths= -e 's|@PKGVULNDIR@|${PKGVULNDIR}|g' +SUBST_SED.paths+= -e 's|@AWK@|${AWK}|g' +SUBST_SED.paths+= -e 's|@FETCH_CMD@|${FETCH_CMD:Q}|g' +SUBST_SED.paths+= -e 's|@FETCH_CMD_SHORT@|${FETCH_CMD:T:Q}|g' +SUBST_SED.paths+= -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' +SUBST_SED.paths+= -e 's|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g' +SUBST_SED.paths+= -e 's|@PREFIX@|${PREFIX}|g' +SUBST_SED.paths+= -e 's|@SH@|${SH}|g' +SUBST_SED.paths+= -e 's|@DIGEST@|${DIGEST}|g' +SUBST_SED.paths+= -e 's|@CHMOD@|${CHMOD}|g' +SUBST_SED.paths+= -e 's|@MV@|${MV}|g' +SUBST_SED.paths+= -e 's|@RM@|${RM}|g' +SUBST_SED.paths+= -e 's|@MKDIR@|${MKDIR}|g' +SUBST_SED.paths+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' +SUBST_SED.paths+= -e 's|@FIND@|${FIND}|g' +SUBST_MESSAGE.paths= Fixing paths. + do-build: - @for f in audit-packages audit-packages.0 audit-packages.8 \ + for f in audit-packages audit-packages.0 audit-packages.8 \ download-vulnerability-list; do \ - ${SED} -e 's|@PKGVULNDIR@|${PKGVULNDIR}|g' \ - -e 's|@AWK@|${AWK}|g' \ - -e 's|@FETCH_CMD@|${FETCH_CMD}|g' \ - -e 's|@FETCH_CMD_SHORT@|${FETCH_CMD:T}|g' \ - -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \ - -e 's|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g' \ - -e 's|@PREFIX@|${PREFIX}|g' \ - -e 's|@SH@|${SH}|g' \ - -e 's|@DIGEST@|${DIGEST}|g' \ - -e 's|@CHMOD@|${CHMOD}|g' \ - -e 's|@MV@|${MV}|g' \ - -e 's|@RM@|${RM}|g' \ - -e 's|@MKDIR@|${MKDIR}|g' \ - -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \ - -e 's|@FIND@|${FIND}|g' \ - ${FILESDIR}/$$f > ${WRKSRC}/$$f; \ + ${CP} ${FILESDIR}/$$f ${WRKSRC} ; \ done + .if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" +USE_TOOLS+= nroff + # pre-created man-pages are "mandoc" pages, these OS need "man", # so regen the .0 page - nroff -man ${WRKSRC}/audit-packages.8 >${WRKSRC}/audit-packages.0 + ${NROFF} -man ${WRKSRC}/audit-packages.8 >${WRKSRC}/audit-packages.0 .endif do-install: - @for f in audit-packages download-vulnerability-list; do \ + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/audit-packages + + ${INSTALL_DATA} ${FILESDIR}/audit-packages.conf \ + ${PREFIX}/share/examples/audit-packages + + for f in audit-packages download-vulnerability-list; do \ ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/sbin; \ done + ${INSTALL_MAN} ${WRKSRC}/audit-packages.0 ${DESTDIR}${CAT8DIR}/ ${INSTALL_MAN} ${WRKSRC}/audit-packages.8 ${DESTDIR}${MAN8DIR}/ + ${RM} -f ${DESTDIR}${CAT8DIR}/download-vulnerability-list.0 ${LN} -s audit-packages.0 ${DESTDIR}${CAT8DIR}/download-vulnerability-list.0 ${RM} -f ${DESTDIR}${MAN8DIR}/download-vulnerability-list.8 |