summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authortnn <tnn>2008-04-04 15:49:18 +0000
committertnn <tnn>2008-04-04 15:49:18 +0000
commit8b9a647e5ef99f2e227cf364ce4148c789806874 (patch)
treead4044ffb2cdfd4e7c52286c002470c9d52be4be /mk/tools
parent034f8dc20ddeec3ba9631515760dbfbc0d351583 (diff)
downloadpkgsrc-8b9a647e5ef99f2e227cf364ce4148c789806874.tar.gz
Detect and use native bzip2(1) tool.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/tools.Linux.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/tools/tools.Linux.mk b/mk/tools/tools.Linux.mk
index ac8b44bd42a..23dfa3d4c5c 100644
--- a/mk/tools/tools.Linux.mk
+++ b/mk/tools/tools.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.Linux.mk,v 1.42 2008/02/19 03:03:08 epg Exp $
+# $NetBSD: tools.Linux.mk,v 1.43 2008/04/04 15:49:18 tnn Exp $
#
# System-supplied tools for the Linux operating system.
@@ -21,6 +21,11 @@ TOOLS_PLATFORM.bzcat?= /bin/bzcat
.elif exists(/usr/bin/bzip2)
TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
.endif
+.if exists(/usr/bin/bzip2)
+TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2
+.elif exists(/bin/bzip2)
+TOOLS_PLATFORM.bzip2?= /bin/bzip2
+.endif
TOOLS_PLATFORM.cat?= /bin/cat
TOOLS_PLATFORM.chgrp?= /bin/chgrp
TOOLS_PLATFORM.chmod?= /bin/chmod