summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortv <tv>2004-10-09 03:47:13 +0000
committertv <tv>2004-10-09 03:47:13 +0000
commitc23fe72a71715c9d173e0fa2aec887820e219a0f (patch)
tree7e98c7e0be323b1709c3f070435ce10405a8b48e
parenta88414a41829bea3d93ed6cad5683a887c321a3a (diff)
downloadpkgsrc-c23fe72a71715c9d173e0fa2aec887820e219a0f.tar.gz
Add EXTRACT_ENV.bin, allowing things to be passed into the environment of
a ".bin" extraction (to be used shortly by lang/sun-jre15). This isn't a generic EXTRACT_ENV, as the rest of the extraction tools don't currently need such a knob. The most common use would be to set things in the env of a binary-only distribution to make for silent or otherwise twiddled package extraction.
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 2f4da90b84f..bdadf726393 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1510 2004/10/07 02:01:38 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1511 2004/10/09 03:47:13 tv Exp $
#
# This file is in the public domain.
#
@@ -1999,7 +1999,8 @@ EXTRACT_CMD.zoo?= ${LOCALBASE}/bin/unzoo ${EXTRACT_CMD_OPTS.zoo} $${extract_file
EXTRACT_CMD_OPTS.zoo?= -x
EXTRACT_CMD.rar?= ${LOCALBASE}/bin/unrar ${EXTRACT_CMD_OPTS.rar} $${extract_file}
EXTRACT_CMD_OPTS.rar?= x -inul
-EXTRACT_CMD.bin?= ${ECHO} yes | $${extract_file} ${EXTRACT_CMD_OPTS.bin} >/dev/null
+EXTRACT_ENV.bin?= # empty
+EXTRACT_CMD.bin?= ${ECHO} yes | ${SETENV} ${EXTRACT_ENV.bin} $${extract_file} ${EXTRACT_CMD_OPTS.bin} >/dev/null
.for __suffix__ in .gz .bz2 .Z
EXTRACT_CMD${__suffix__}?= ${DECOMPRESS_CMD${__suffix__}} $${extract_file} > `${BASENAME} $${extract_file} ${__suffix__}`