diff options
author | adrianp <adrianp@pkgsrc.org> | 2008-12-21 00:03:32 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2008-12-21 00:03:32 +0000 |
commit | 03bc05ff5ad023ababf4e79dcdb98296c04348f6 (patch) | |
tree | f68c9349e814abaa656470363bfe2b69944b16a4 /pkgtools | |
parent | 1fa3e4b853b5031d5ecf6a8510ca13afcb0404f1 (diff) | |
download | pkgsrc-03bc05ff5ad023ababf4e79dcdb98296c04348f6.tar.gz |
Make this work on OpenSolaris
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/rc.subr/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/rc.subr/files/rc.subr | 18 |
2 files changed, 17 insertions, 5 deletions
diff --git a/pkgtools/rc.subr/Makefile b/pkgtools/rc.subr/Makefile index 4ffee4c4565..84ece48b891 100644 --- a/pkgtools/rc.subr/Makefile +++ b/pkgtools/rc.subr/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.17 2008/06/04 13:34:46 sketch Exp $ +# $NetBSD: Makefile,v 1.18 2008/12/21 00:03:32 adrianp Exp $ # -DISTNAME= rc.subr-20080423 +DISTNAME= rc.subr-20081208 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/rc.subr/files/rc.subr b/pkgtools/rc.subr/files/rc.subr index 8a8b9902135..a017d81e208 100644 --- a/pkgtools/rc.subr/files/rc.subr +++ b/pkgtools/rc.subr/files/rc.subr @@ -1,4 +1,4 @@ -# $NetBSD: rc.subr,v 1.8 2008/04/23 18:04:03 joerg Exp $ +# $NetBSD: rc.subr,v 1.9 2008/12/21 00:03:32 adrianp Exp $ # # Copyright (c) 1997-2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -65,17 +65,29 @@ _RCARG_ps="-ax" _RCARG_su="-m" _osname=$(uname -s) +_osrelease=$(uname -r) case $_osname in SunOS) _RCCMD_chown="/bin/chown" # _RCCMD_ci="/usr/bin/ci" # not in Solaris 9 # _RCCMD_co="/usr/bin/co" # not in Solaris 9 - _RCCMD_echo="/usr/ucb/echo" # _RCCMD_systrace="/bin/systrace" # not in Solaris 9 - _RCCMD_whoami="/usr/ucb/whoami" _RCARG_psformat="-o pid,comm" _RCARG_ps="-ef" _RCARG_su="" + if [ "$_osrelease" = "5.11" ]; then + bsd_echo () { + if [ "$1" = "-n" ]; then + shift; echo "$@\c" + else + echo "$@" + fi + } + _RCCMD_echo="bsd_echo" + else + _RCCMD_echo="/usr/ucb/echo" # not in Solaris 11 + _RCCMD_whoami="/usr/ucb/whoami" # not in Solaris 11 + fi ;; Interix) bsd_echo () { |