summaryrefslogtreecommitdiff
path: root/mk/tools/tools.SunOS.mk
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2008-09-11 23:00:31 +0000
committeradrianp <adrianp@pkgsrc.org>2008-09-11 23:00:31 +0000
commit6cdb89bbe634792ce365c5f700581fc0eee65eff (patch)
tree8f9c1e362ea4f86c5e20171b43224dde983dab5f /mk/tools/tools.SunOS.mk
parent839123bb08bc8c251e43e6b278d8a32c4e96167e (diff)
downloadpkgsrc-6cdb89bbe634792ce365c5f700581fc0eee65eff.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