pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools If "/usr/gnu/bin/false" exists use that as a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7534bda0544
branches:  trunk
changeset: 547072:a7534bda0544
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Thu Sep 11 23:00:31 2008 +0000

description:
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:

 mk/tools/tools.SunOS.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c1205e169850 -r a7534bda0544 mk/tools/tools.SunOS.mk
--- a/mk/tools/tools.SunOS.mk   Thu Sep 11 22:36:30 2008 +0000
+++ b/mk/tools/tools.SunOS.mk   Thu Sep 11 23:00:31 2008 +0000
@@ -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.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



Home | Main Index | Thread Index | Old Index