diff options
author | bouyer <bouyer@pkgsrc.org> | 2005-04-01 19:06:12 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2005-04-01 19:06:12 +0000 |
commit | 68fdfc4859e714cb40509434750d9d4476bb3e86 (patch) | |
tree | 8a0949ac0f1a393f7f80d79e0ca11dcbe20e96fa /sysutils | |
parent | a3957edb6bb3e4a6fb7b350999ae1c5acc4e5943 (diff) | |
download | pkgsrc-68fdfc4859e714cb40509434750d9d4476bb3e86.tar.gz |
xend.sh fixes:
- set command_interpreter, so that rc.subr(8) can find the process(es).
- /usr/pkg/sbin/xend {stop,restart} don't to what we expect, to
let rc.subr do it instead.
Bump PKGREVISION.
Should fix pkg/29847.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xentools20/Makefile | 5 | ||||
-rw-r--r-- | sysutils/xentools20/files/xend.sh | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sysutils/xentools20/Makefile b/sysutils/xentools20/Makefile index b4e3bf67ba8..115ab51fcc2 100644 --- a/sysutils/xentools20/Makefile +++ b/sysutils/xentools20/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.5 2005/03/27 15:58:24 bouyer Exp $ +# $NetBSD: Makefile,v 1.6 2005/04/01 19:06:12 bouyer Exp $ # DISTNAME= xen-2.0.3-src PKGNAME= xentools20-2.0.3 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= sysutils MASTER_SITES= http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/ EXTRACT_SUFX= .tgz @@ -51,6 +51,7 @@ SUBST_SED.paths= -e "s|/usr/sbin|${PREFIX}/sbin|g" SUBST_MESSAGE.paths= "Fixing hardcoded paths." RCD_SCRIPTS= xend +FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN} pre-build: ${MKDIR} ${WRKSRC}/libxc/xen/NetBSD diff --git a/sysutils/xentools20/files/xend.sh b/sysutils/xentools20/files/xend.sh index 86ddc462b2d..f36bfc2f832 100644 --- a/sysutils/xentools20/files/xend.sh +++ b/sysutils/xentools20/files/xend.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: xend.sh,v 1.1 2005/03/17 23:53:56 bouyer Exp $ +# $NetBSD: xend.sh,v 1.2 2005/04/01 19:06:12 bouyer Exp $ # # PROVIDE: xend # REQUIRE: disks network @@ -13,10 +13,8 @@ fi name="xend" rcvar=$name command="@PREFIX@/sbin/xend" -ctl_command="@PREFIX@/sbin/xend" -start_cmd="echo starting ${command} && ${command} start" -stop_cmd="echo stopping ${command} && ${command} stop" -restart_cmd="echo restarting ${command} && ${command} restart" +command_interpreter="@RCD_INTERPRETER@" +start_cmd="echo starting ${name}. && ${command} start" load_rc_config $name run_rc_command "$1" |