pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add EXTRACT_ENV.bin, allowing things to be passed i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/417cf8e58212
branches:  trunk
changeset: 481631:417cf8e58212
user:      tv <tv%pkgsrc.org@localhost>
date:      Sat Oct 09 03:47:13 2004 +0000

description:
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.

diffstat:

 mk/bsd.pkg.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d0c74d7ce3b2 -r 417cf8e58212 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Oct 09 01:15:56 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat Oct 09 03:47:13 2004 +0000
@@ -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_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__}`



Home | Main Index | Thread Index | Old Index