summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-17 20:58:58 +0000
committerjlam <jlam>2005-06-17 20:58:58 +0000
commit102f2ae64d14d3acfff8f02c18fbadd851a8d15c (patch)
tree4a4d68a558f407a04d4d26de37863cb7f7ec1bda
parentfcbb13859d75768a2ad98d37a8d252016c34a8a8 (diff)
downloadpkgsrc-102f2ae64d14d3acfff8f02c18fbadd851a8d15c.tar.gz
The OpenBSD chgrp and chown can be in different places depending on the
OpenBSD release, so check for the right location.
-rw-r--r--mk/tools/tools.OpenBSD.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/tools/tools.OpenBSD.mk b/mk/tools/tools.OpenBSD.mk
index 9ac67f74ac2..35c6df00096 100644
--- a/mk/tools/tools.OpenBSD.mk
+++ b/mk/tools/tools.OpenBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.OpenBSD.mk,v 1.14 2005/06/03 22:54:44 jlam Exp $
+# $NetBSD: tools.OpenBSD.mk,v 1.15 2005/06/17 20:58:58 jlam Exp $
#
# System-supplied tools for the OpenBSD operating system.
@@ -6,9 +6,17 @@ TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= /usr/bin/awk
TOOLS_PLATFORM.basename?= /usr/bin/basename
TOOLS_PLATFORM.cat?= /bin/cat
+.if exists(/bin/chgrp)
+TOOLS_PLATFORM.chgrp?= /bin/chgrp
+.elif exists(/usr/bin/chgrp)
TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
+.endif
TOOLS_PLATFORM.chmod?= /bin/chmod
+.if exists(/sbin/chown)
+TOOLS_PLATFORM.chown?= /sbin/chown
+.elif exists(/usr/sbin/chown)
TOOLS_PLATFORM.chown?= /usr/sbin/chown
+.endif
TOOLS_PLATFORM.cmp?= /usr/bin/cmp
TOOLS_PLATFORM.cp?= /bin/cp
TOOLS_PLATFORM.cut?= /usr/bin/cut