pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Add public variables EXTRACT_CMD_OPTS.{zip,lha,lhz,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d26515f1da2e
branches:  trunk
changeset: 463648:d26515f1da2e
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Nov 22 23:47:47 2003 +0000

description:
Add public variables EXTRACT_CMD_OPTS.{zip,lha,lhz,zoo} that may be set in
package Makefiles to customize the options passed to the extraction
commands when the defaults don't suffice.  Patch from Michal Pasternak with
additions by me.

diffstat:

 mk/bsd.pkg.mk |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 9c7710b16bf3 -r d26515f1da2e mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Nov 22 23:30:03 2003 +0000
+++ b/mk/bsd.pkg.mk     Sat Nov 22 23:47:47 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1303 2003/11/20 16:59:02 cube Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1304 2003/11/22 23:47:47 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -2032,10 +2032,14 @@
 
 DOWNLOADED_DISTFILE=   $${extract_file}
 
-EXTRACT_CMD.zip?=      ${LOCALBASE}/bin/unzip -Laqo $${extract_file}
-EXTRACT_CMD.lha?=      ${LOCALBASE}/bin/lha xq $${extract_file}
+EXTRACT_CMD.zip?=      ${LOCALBASE}/bin/unzip ${EXTRACT_CMD_OPTS.zip} $${extract_file}
+EXTRACT_CMD_OPTS.zip?= -Laqo
+EXTRACT_CMD.lha?=      ${LOCALBASE}/bin/lha ${EXTRACT_CMD_OPTS.lha} $${extract_file}
+EXTRACT_CMD_OPTS.lha?= xq
 EXTRACT_CMD.lzh?=      ${EXTRACT_CMD.lha}
-EXTRACT_CMD.zoo?=      ${LOCALBASE}/bin/unzoo -x $${extract_file}
+EXTRACT_CMD_OPTS.lzh?= ${EXTRACT_CMD_OPTS.lha}
+EXTRACT_CMD.zoo?=      ${LOCALBASE}/bin/unzoo ${EXTRACT_CMD_OPTS.zoo} $${extract_file}
+EXTRACT_CMD_OPTS.zoo?= -x
 
 .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