summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorryoon <ryoon>2014-06-04 14:16:00 +0000
committerryoon <ryoon>2014-06-04 14:16:00 +0000
commit48678a221253ff6d08e9a9df7c6e3c7075e01df2 (patch)
treec24815dc2aaf072b8afb9865a5b247fa58849b94 /pkgtools
parent82111b385682cf22df0381d14bc035204721160e (diff)
downloadpkgsrc-48678a221253ff6d08e9a9df7c6e3c7075e01df2.tar.gz
Update to 20140604
* Enable for CentOS/RHEL, fix su(1) path.
Diffstat (limited to 'pkgtools')
-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 a51a145d666..74c1d1793e2 100644
--- a/pkgtools/rc.subr/Makefile
+++ b/pkgtools/rc.subr/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2014/03/03 05:12:35 obache Exp $
+# $NetBSD: Makefile,v 1.28 2014/06/04 14:16:00 ryoon Exp $
#
-PKGNAME= rc.subr-20090118
+PKGNAME= rc.subr-20140604
CATEGORIES= pkgtools
MAINTAINER= sbd@NetBSD.org
diff --git a/pkgtools/rc.subr/files/rc.subr b/pkgtools/rc.subr/files/rc.subr
index e7f806f43d9..660bc0af5ad 100644
--- a/pkgtools/rc.subr/files/rc.subr
+++ b/pkgtools/rc.subr/files/rc.subr
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.10 2009/01/18 22:35:35 shattered Exp $
+# $NetBSD: rc.subr,v 1.11 2014/06/04 14:16:00 ryoon Exp $
#
# Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -112,6 +112,9 @@ case $_osname in
# _RCCMD_rcs="/usr/bin/rcs" # not in Slackware 8.1
# _RCCMD_systrace="/bin/systrace" # not in Slackware 8.1
_RCARG_ps="ax"
+ if [ -e /etc/redhat-release ]; then
+ _RCCMD_su="/bin/su" # for CentOS/RHEL
+ fi
;;
QNX)
_RCCMD_chown="/bin/chown"