aboutsummaryrefslogtreecommitdiff
path: root/sysutils/mcollective
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2012-08-30 03:08:13 +0000
committerSteve Wills <swills@FreeBSD.org>2012-08-30 03:08:13 +0000
commitc04679110d9a0dc2bfe2cd23be30fdfe824e3477 (patch)
treefeb4fbd44e511e1a12c69707cd66569d3a009975 /sysutils/mcollective
parent0d7134ae9dc75be0a89e3ed60249ad8ae8a88aa2 (diff)
downloadports-c04679110d9a0dc2bfe2cd23be30fdfe824e3477.tar.gz
ports-c04679110d9a0dc2bfe2cd23be30fdfe824e3477.zip
- Fix rc script status and restart/shutdown
PR: ports/170980 Reported by: Nicolas Szalay <nicolas.szalay@fotolia.com>
Notes
Notes: svn path=/head/; revision=303359
Diffstat (limited to 'sysutils/mcollective')
-rw-r--r--sysutils/mcollective/Makefile4
-rw-r--r--sysutils/mcollective/files/mcollectived.in2
2 files changed, 4 insertions, 2 deletions
diff --git a/sysutils/mcollective/Makefile b/sysutils/mcollective/Makefile
index 23c519beea0e..e31d4c0c65a2 100644
--- a/sysutils/mcollective/Makefile
+++ b/sysutils/mcollective/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mcollective
PORTVERSION= 2.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://downloads.puppetlabs.com/${PORTNAME}/
EXTRACT_SUFX= .tgz
@@ -28,6 +28,8 @@ REINPLACE_ARGS= -i ""
SCRIPTS= mco mc-call-agent
+SUB_LIST+= RUBY=${RUBY}
+
do-patch:
@${REINPLACE_CMD} -e "s|/etc/mcollective|${ETCDIR}|" \
${WRKSRC}/bin/mcollectived \
diff --git a/sysutils/mcollective/files/mcollectived.in b/sysutils/mcollective/files/mcollectived.in
index 057259d704ef..24abc8f8a168 100644
--- a/sysutils/mcollective/files/mcollectived.in
+++ b/sysutils/mcollective/files/mcollectived.in
@@ -25,6 +25,6 @@ load_rc_config "${name}"
pidfile="/var/run/${name}.pid"
command="%%PREFIX%%/sbin/${name}"
command_args="-p $pidfile"
-procname="ruby"
+command_interpreter=%%RUBY%%
run_rc_command "$1"