summaryrefslogtreecommitdiff
path: root/mk/bsd.port.mk
diff options
context:
space:
mode:
authoragc <agc>1998-02-27 13:22:59 +0000
committeragc <agc>1998-02-27 13:22:59 +0000
commita793398e6240628a05f3603fbe9c61490a4075b6 (patch)
tree670159f17128a052de924aef63130df24b46b941 /mk/bsd.port.mk
parentb15b5e97ee18b0ce7041ec6afff7bdf936466612 (diff)
downloadpkgsrc-a793398e6240628a05f3603fbe9c61490a4075b6.tar.gz
Patches from Matthew Green to use pax if it's present, in preference
to tar.
Diffstat (limited to 'mk/bsd.port.mk')
-rw-r--r--mk/bsd.port.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/mk/bsd.port.mk b/mk/bsd.port.mk
index e248023d98e..6f84f918fbb 100644
--- a/mk/bsd.port.mk
+++ b/mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $NetBSD: bsd.port.mk,v 1.49 1998/02/20 22:06:18 hubertf Exp $
+# $NetBSD: bsd.port.mk,v 1.50 1998/02/27 13:22:59 agc Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -510,18 +510,23 @@ PATCH_ARGS+= -C
PATCH_DIST_ARGS+= -C
.endif
+.if exists(/bin/pax)
+EXTRACT_CMD?= /bin/pax
+EXTRACT_BEFORE_ARGS?= -zrf
+.else
.if exists(/bin/tar)
-EXTRACT_CMD?= /bin/tar
+EXTRACT_CMD?= /bin/tar
.else
-EXTRACT_CMD?= /usr/bin/tar
+EXTRACT_CMD?= /usr/bin/tar
.endif
-EXTRACT_SUFX?= .tar.gz
# Backwards compatability.
.if defined(EXTRACT_ARGS)
EXTRACT_BEFORE_ARGS?= ${EXTRACT_ARGS}
.else
EXTRACT_BEFORE_ARGS?= -xzf
.endif
+.endif
+EXTRACT_SUFX?= .tar.gz
# Figure out where the local mtree file is
.if !defined(MTREE_FILE)