summaryrefslogtreecommitdiff
path: root/pkgtools/rc.subr
diff options
context:
space:
mode:
authorgrant <grant>2003-06-23 07:03:49 +0000
committergrant <grant>2003-06-23 07:03:49 +0000
commit2d44647db91ede756540b293ad75819afb6266eb (patch)
tree2bd57e42a29320d80b8c746fff1d34957739433a /pkgtools/rc.subr
parent7d5ee0bd4beb1e0c1d283cfa1d0291209b53081f (diff)
downloadpkgsrc-2d44647db91ede756540b293ad75819afb6266eb.tar.gz
Allow this to work on Linux (at least Slackware 8.1).
Diffstat (limited to 'pkgtools/rc.subr')
-rw-r--r--pkgtools/rc.subr/Makefile4
-rw-r--r--pkgtools/rc.subr/files/rc.subr16
2 files changed, 16 insertions, 4 deletions
diff --git a/pkgtools/rc.subr/Makefile b/pkgtools/rc.subr/Makefile
index e756fe84729..8949f533fa3 100644
--- a/pkgtools/rc.subr/Makefile
+++ b/pkgtools/rc.subr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2003/06/23 07:02:16 grant Exp $
+# $NetBSD: Makefile,v 1.3 2003/06/23 07:03:49 grant Exp $
#
DISTNAME= rc.subr-20030622
@@ -10,7 +10,7 @@ MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= Portable NetBSD rc.subr implementation for pkgsrc
-ONLY_FOR_PLATFORM= SunOS-*-*
+ONLY_FOR_PLATFORM= Linux-*-* SunOS-*-*
NO_BUILD= # defined
NO_CHECKSUM= # defined
diff --git a/pkgtools/rc.subr/files/rc.subr b/pkgtools/rc.subr/files/rc.subr
index d96c43b3b8e..7adb7cbfba6 100644
--- a/pkgtools/rc.subr/files/rc.subr
+++ b/pkgtools/rc.subr/files/rc.subr
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.1.1.1 2003/06/19 16:07:12 grant Exp $
+# $NetBSD: rc.subr,v 1.2 2003/06/23 07:03:50 grant Exp $
#
# Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -67,11 +67,23 @@ _osname=$(uname -s)
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"
- ;;
+ ;;
+ Linux)
+ _RCCMD_chown="/bin/chown"
+# _RCCMD_ci="/usr/bin/ci" # not in Slackware 8.1
+# _RCCMD_co="/usr/bin/co" # not in Slackware 8.1
+ _RCCMD_nice=$(which nice)
+# _RCCMD_rcs="/usr/bin/rcs" # not in Slackware 8.1
+# _RCCMD_systrace="/bin/systrace" # not in Slackware 8.1
+ _RCARG_ps="ax"
+ ;;
esac
#