summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_tarup/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-10-07 14:43:08 +0000
committerhubertf <hubertf@pkgsrc.org>2002-10-07 14:43:08 +0000
commit0d44ca0a05b0cc03a14ae979c2765cfbc3d0baaf (patch)
tree556584f015758f4bd95ffb6ee9ab988db5761fe9 /pkgtools/pkg_tarup/Makefile
parent04ef07cefbada6abae4ac9973cc5c4afdbe0bb4b (diff)
downloadpkgsrc-0d44ca0a05b0cc03a14ae979c2765cfbc3d0baaf.tar.gz
Update to 1.1. Mostly cosmetic changes, among others incudes patch from
PR 18546 by woods@weird.com (Greg A. Woods).
Diffstat (limited to 'pkgtools/pkg_tarup/Makefile')
-rw-r--r--pkgtools/pkg_tarup/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/pkgtools/pkg_tarup/Makefile b/pkgtools/pkg_tarup/Makefile
index d8c0cad4498..5be7ca18bda 100644
--- a/pkgtools/pkg_tarup/Makefile
+++ b/pkgtools/pkg_tarup/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2001/09/20 17:06:01 agc Exp $
+# $NetBSD: Makefile,v 1.6 2002/10/07 14:43:08 hubertf Exp $
-DISTNAME= pkg_tarup-1.0.3
+DISTNAME= pkg_tarup-1.1
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
@@ -8,14 +8,32 @@ DISTFILES= # empty
MAINTAINER= hubertf@netbsd.org
COMMENT= Generates binary package from installed pkg
+EXTRACT_ONLY= # empty
WRKSRC= ${WRKDIR}
NO_CHECKSUM= yes
NO_PATCH= yes
-NO_CONFIGURE= yes
NO_BUILD= yes
NO_MTREE= yes
+# Set SCRIPT_SUBST to substitute "${variable}" to "value" in MESSAGE
+SCRIPT_SUBST+= AWK=${AWK} \
+ ECHO=${ECHO} \
+ ID=${ID} \
+ PKG_DBDIR=${PKG_DBDIR} \
+ PKG_SUFX=${PKG_SUFX} \
+ PREFIX=${PREFIX} \
+ SH=${SH} \
+ SU=${SU}
+
+# XXX this should probably use the @VAR@ form instead of ${VAR}...
+SCRIPT_SUBST_SED= ${SCRIPT_SUBST:S/=/}!/:S/$/!g/:S/^/ -e s!\\\${/}
+
+do-configure:
+ ${SED} ${SCRIPT_SUBST_SED} \
+ < ${FILESDIR}/pkg_tarup \
+ > ${WRKSRC}/pkg_tarup \
+
do-install:
- ${INSTALL_SCRIPT} ${FILESDIR}/pkg_tarup ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup ${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"