summaryrefslogtreecommitdiff
path: root/mk/tools/tools.SunOS.mk
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-09-11 23:00:31 +0000
committeradrianp <adrianp>2008-09-11 23:00:31 +0000
commit18a40d2f0ae282819988cc3ab9d34c2de5aa33bc (patch)
tree8f9c1e362ea4f86c5e20171b43224dde983dab5f /mk/tools/tools.SunOS.mk
parent71fb2de5832bcf0ef11aa1790236e19189f9758b (diff)
downloadpkgsrc-18a40d2f0ae282819988cc3ab9d34c2de5aa33bc.tar.gz
If "/usr/gnu/bin/false" exists use that as a value of ${FALSE}. This is known
to exist at least on OpenSolaris. This makes the useradd scripts work under OpenSolaris as it won't accept "false" as a ${SHELL}.
Diffstat (limited to 'mk/tools/tools.SunOS.mk')
-rw-r--r--mk/tools/tools.SunOS.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/tools/tools.SunOS.mk b/mk/tools/tools.SunOS.mk
index 347d5983539..223eb47688e 100644
--- a/mk/tools/tools.SunOS.mk
+++ b/mk/tools/tools.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.SunOS.mk,v 1.29 2008/08/10 15:17:26 ahoka Exp $
+# $NetBSD: tools.SunOS.mk,v 1.30 2008/09/11 23:00:31 adrianp Exp $
#
# System-supplied tools for the Solaris operating system.
#
@@ -44,7 +44,11 @@ TOOLS_PLATFORM.echo?= echo # shell builtin
TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E
TOOLS_PLATFORM.env?= /usr/bin/env
TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr
+.if exists(/usr/gnu/bin/false) # if we are using OpenSolaris
+TOOLS_PLATFORM.false?= /usr/gnu/bin/false
+.else
TOOLS_PLATFORM.false?= false # shell builtin
+.endif
TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find