pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xentools20 xend.sh fixes:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4aac07fb17f2
branches:  trunk
changeset: 491951:4aac07fb17f2
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Fri Apr 01 19:06:12 2005 +0000

description:
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:

 sysutils/xentools20/Makefile      |  5 +++--
 sysutils/xentools20/files/xend.sh |  8 +++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 82e3fc1ece50 -r 4aac07fb17f2 sysutils/xentools20/Makefile
--- a/sysutils/xentools20/Makefile      Fri Apr 01 18:42:08 2005 +0000
+++ b/sysutils/xentools20/Makefile      Fri Apr 01 19:06:12 2005 +0000
@@ -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_MESSAGE.paths=    "Fixing hardcoded paths."
 
 RCD_SCRIPTS=           xend
+FILES_SUBST+=          RCD_INTERPRETER=${PYTHONBIN}
 
 pre-build:
        ${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
diff -r 82e3fc1ece50 -r 4aac07fb17f2 sysutils/xentools20/files/xend.sh
--- a/sysutils/xentools20/files/xend.sh Fri Apr 01 18:42:08 2005 +0000
+++ b/sysutils/xentools20/files/xend.sh Fri Apr 01 19:06:12 2005 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index