blob: 876e4e8421fb85b40fcfe98d6e798728ab8bb1d8 (
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
|
# $NetBSD: Makefile,v 1.40 2006/08/04 12:04:00 rillig Exp $
DISTNAME= pkg_chk-1.77
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= abs@NetBSD.org
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
COMMENT= Check installed package versions against pkgsrc
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
EXTRACT_ONLY= # empty
USE_LANGUAGES= # empty
USE_TOOLS+= mktemp:run
NO_CHECKSUM= YES
CONFLICTS= pkgchk-[0-9]*
INSTALLATION_DIRS= sbin man/man8
.include "../../mk/bsd.prefs.mk"
MAKECONF?= /etc/mk.conf
#XXX: how to get GZIP_CMD?!
do-build:
${SED} -e 's#@AWK@#${AWK}#g' \
-e 's#@GREP@#${GREP}#g' \
-e 's#@GZIP_CMD@#gzip#g' \
-e 's#@MAKE@#${MAKE}#g' \
-e 's#@MAKECONF@#${MAKECONF}#g' \
-e 's#@PKG_ADD@#${PKG_ADD}#g' \
-e 's#@PKG_DELETE@#${PKG_DELETE}#g' \
-e 's#@PKG_INFO@#${PKG_INFO}#g' \
-e 's#@SED@#${SED}#g' \
-e 's#@SH@#${SH}#g' \
-e 's#@SORT@#${SORT}#g' \
-e 's#@TSORT@#${TSORT}#g' \
-e 's#@PREFIX@#${PREFIX}#g' \
${FILESDIR}/pkg_chk.sh >${WRKSRC}/pkg_chk.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkg_chk.sh ${PREFIX}/sbin/pkg_chk
${INSTALL_MAN} ${FILESDIR}/pkg_chk.8 ${PREFIX}/${PKGMANDIR}/man8/pkg_chk.8
.include "../../mk/bsd.pkg.mk"
|