pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Check for /usr/bin/sleep. I have had this in ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a0de12c151b
branches:  trunk
changeset: 526660:3a0de12c151b
user:      reed <reed%pkgsrc.org@localhost>
date:      Sat Mar 17 00:14:50 2007 +0000

description:
Check for /usr/bin/sleep. I have had this in my pkgsrc for a long time.

According to the  Filesystem Hierarchy Standard for Linux, sleep
is not listed as a required command (or symlink) in /bin.

diffstat:

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

diffs (21 lines):

diff -r 0feabb214898 -r 3a0de12c151b mk/tools/tools.Linux.mk
--- a/mk/tools/tools.Linux.mk   Fri Mar 16 23:49:28 2007 +0000
+++ b/mk/tools/tools.Linux.mk   Sat Mar 17 00:14:50 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.Linux.mk,v 1.39 2007/03/15 23:11:12 reed Exp $
+# $NetBSD: tools.Linux.mk,v 1.40 2007/03/17 00:14:50 reed Exp $
 #
 # System-supplied tools for the Linux operating system.
 
@@ -174,7 +174,11 @@
 .endif
 TOOLS_PLATFORM.sed?=           ${TOOLS_PLATFORM.gsed}
 TOOLS_PLATFORM.sh?=            /bin/sh
+.if exists(/usr/bin/sleep)
+TOOLS_PLATFORM.sleep?=         /usr/bin/sleep
+.else
 TOOLS_PLATFORM.sleep?=         /bin/sleep
+.endif
 .if exists(/usr/bin/soelim)
 TOOLS_PLATFORM.soelim?=                /usr/bin/soelim
 .endif



Home | Main Index | Thread Index | Old Index