summaryrefslogtreecommitdiff
path: root/pkgtools/rc.subr
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2015-05-10 19:20:09 +0000
committerbsiegert <bsiegert>2015-05-10 19:20:09 +0000
commitbc398d4b23feca4201427e8a34aa915d8f694fe5 (patch)
treef04fc9f6d9c833c7dbb1d644d5dd99a2d40d2ae3 /pkgtools/rc.subr
parent8adc68fdc9c386dc08b257f58b0d9a1048468c05 (diff)
downloadpkgsrc-bc398d4b23feca4201427e8a34aa915d8f694fe5.tar.gz
Use /bin/echo on Darwin, as the builtin does not have the -n option.
Bump version. Patch from Jason White in PR pkg/49724.
Diffstat (limited to 'pkgtools/rc.subr')
-rw-r--r--pkgtools/rc.subr/Makefile4
-rw-r--r--pkgtools/rc.subr/files/rc.subr5
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/rc.subr/Makefile b/pkgtools/rc.subr/Makefile
index 74c1d1793e2..224d002cddf 100644
--- a/pkgtools/rc.subr/Makefile
+++ b/pkgtools/rc.subr/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2014/06/04 14:16:00 ryoon Exp $
+# $NetBSD: Makefile,v 1.29 2015/05/10 19:20:09 bsiegert Exp $
#
-PKGNAME= rc.subr-20140604
+PKGNAME= rc.subr-20150510
CATEGORIES= pkgtools
MAINTAINER= sbd@NetBSD.org
diff --git a/pkgtools/rc.subr/files/rc.subr b/pkgtools/rc.subr/files/rc.subr
index 660bc0af5ad..d0110df43b2 100644
--- a/pkgtools/rc.subr/files/rc.subr
+++ b/pkgtools/rc.subr/files/rc.subr
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.11 2014/06/04 14:16:00 ryoon Exp $
+# $NetBSD: rc.subr,v 1.12 2015/05/10 19:20:09 bsiegert Exp $
#
# Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -67,6 +67,9 @@ _RCARG_su="-m"
_osname=$(uname -s)
_osrelease=$(uname -r)
case $_osname in
+ Darwin)
+ _RCCMD_echo="/bin/echo"
+ ;;
SunOS)
_RCCMD_chown="/bin/chown"
# _RCCMD_ci="/usr/bin/ci" # not in Solaris 9