blob: 088bd5bfbb310bdf78745bfb3d4b681034f44e2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.73 2006/11/25 13:43:42 agc Exp $
DISTNAME= audit-packages-1.45
CATEGORIES= security pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= agc@NetBSD.org
COMMENT= Tools to show vulnerabilities in installed packages
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= digest:run
BUILD_DEFS+= PKGVULNDIR
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
OWN_DIRS= ${PKGVULNDIR}
MAN8DIR= ${PREFIX}/${PKGMANDIR}/man8
CAT8DIR= ${PREFIX}/${PKGMANDIR}/cat8
INSTALLATION_DIRS= ${CAT8DIR} ${MAN8DIR} sbin
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
MESSAGE_SRC= ${PKGDIR}/MESSAGE.DragonFly
.else
MESSAGE_SRC= ${PKGDIR}/MESSAGE
.endif
do-build:
@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; \
done
.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"
# 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
.endif
do-install:
@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
${LN} -s audit-packages.8 ${DESTDIR}${MAN8DIR}/download-vulnerability-list.8
.include "../../mk/bsd.pkg.mk"
|