blob: ef1205e529c56d582f0508772738fadd724e2975 (
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
|
# $NetBSD: Makefile,v 1.31 2007/08/09 13:29:02 joerg Exp $
DISTNAME= pkg_tarup-1.6.6
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= hubertf@NetBSD.org
COMMENT= Generates binary package(s) from installed pkg(s)
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_BUILD= yes
NO_MTREE= yes
USE_LANGUAGES= # none
# Set SCRIPT_SUBST to substitute "@VARIABLE@" with "value"
SCRIPT_SUBST+= \
ECHO=${ECHO:Q} \
ECHO_N=${ECHO_N:Q} \
GREP=${GREP:Q} \
HEAD=${HEAD:Q} \
ID=${ID:Q} \
PKG_DBDIR=${PKG_DBDIR:Q} \
PKG_SUFX=${PKG_SUFX:Q} \
PREFIX=${PREFIX:Q} \
PKG_TOOLS_BIN=${PKG_TOOLS_BIN:Q} \
ROOT_USER=${ROOT_USER:Q} \
SED=${SED:Q} \
SH=${SH:Q} \
SU_CMD=${SU_CMD:Q} \
XARGS=${XARGS:Q}
SCRIPT_SUBST_SED= ${SCRIPT_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-configure:
${SED} ${SCRIPT_SUBST_SED} \
< ${FILESDIR}/pkg_tarup \
> ${WRKSRC}/pkg_tarup
${SED} ${SCRIPT_SUBST_SED} \
< ${FILESDIR}/pkg_tarup_all \
> ${WRKSRC}/pkg_tarup_all
${SED} ${SCRIPT_SUBST_SED} \
< ${FILESDIR}/pkg_tarup.1 \
> ${WRKSRC}/pkg_tarup.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup_all ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pkg_tarup.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"
|