blob: 9ea65899215f3e30a2fff99c6e0a81583af62779 (
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
|
# $NetBSD: Makefile,v 1.59 2002/12/20 18:27:14 schmonz Exp $
# Notes to package maintainers:
#
# To update this package, import from src/usr.sbin/pkg_install.
#
# Updating this package does not automatically necessitate bumping
# PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical
# change in the pkg_* tools that pkgsrc relies on for proper operation.
DISTNAME= pkg_install-${VERSION}
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.netbsd.org/
COMMENT= NetBSD-current's pkg_* tools
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR}
NO_CHECKSUM= # defined
NO_PATCH= # defined
NO_MTREE= # defined
NO_PKG_REGISTER= # defined
NO_PACKAGE= Deinstallation is not permitted
MANCOMPRESSED_IF_MANZ= # defined
BUILD_DEFS+= MANINSTALL
.include "../../mk/bsd.prefs.mk"
VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
${FILESDIR}/lib/version.h
LOCALBASE:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
PKG_DBDIR?= /var/db/pkg
.if ${OPSYS} == "NetBSD" && !exists(/usr/share/tmac/tmac.andoc)
PKG_FAIL_REASON+= "You need to have the 'text' set installed to build this package!"
.endif
do-extract:
@${CP} -Rp ${FILESDIR} ${WRKSRC}
post-install:
if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \
if [ ! -d ${PKG_DBDIR} ]; then \
${INSTALL_DATA_DIR} ${PKG_DBDIR}; \
fi; \
${PKG_ADMIN} rebuild ; \
fi
.include "../../mk/bsd.pkg.mk"
|