diff options
author | grant <grant@pkgsrc.org> | 2005-07-13 02:12:59 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-07-13 02:12:59 +0000 |
commit | e8dbbcb481cdead673118462f534db83f0baea58 (patch) | |
tree | 8e9f181d6750b80349f5316a82b6373f31abcd78 /sysutils/xentools20 | |
parent | 0aef46b77da1370ad455040661ffcf4861e5544d (diff) | |
download | pkgsrc-e8dbbcb481cdead673118462f534db83f0baea58.tar.gz |
don't hardcode /kern/xen/privcmd in xend startup script.
Diffstat (limited to 'sysutils/xentools20')
-rw-r--r-- | sysutils/xentools20/Makefile | 6 | ||||
-rw-r--r-- | sysutils/xentools20/files/xend.sh | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/sysutils/xentools20/Makefile b/sysutils/xentools20/Makefile index f4b4f23bbb8..0061def50cb 100644 --- a/sysutils/xentools20/Makefile +++ b/sysutils/xentools20/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2005/07/13 01:30:17 grant Exp $ +# $NetBSD: Makefile,v 1.15 2005/07/13 02:12:59 grant Exp $ # DISTNAME= xen-2.0.6-src @@ -66,10 +66,14 @@ SUBST_FILES.proc= python/xen/xend/XendVnet.py SUBST_FILES.proc+= libxc/xc_misc.c SUBST_FILES.proc+= xentrace/xentrace.c SUBST_SED.proc= -e "s|/proc|/kern|g" +PROCPATH= /kern +.else +PROCPATH= /proc .endif RCD_SCRIPTS= xend FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN} +FILES_SUBST+= PROCPATH=${PROCPATH} INSTALLATION_DIRS= share/examples/xen diff --git a/sysutils/xentools20/files/xend.sh b/sysutils/xentools20/files/xend.sh index 27be32ff7a0..0d4b6e3619d 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.3 2005/05/24 16:02:08 xtraeme Exp $ +# $NetBSD: xend.sh,v 1.4 2005/07/13 02:12:59 grant Exp $ # # PROVIDE: xend # REQUIRE: disks network @@ -15,11 +15,12 @@ command="@PREFIX@/sbin/xend" command_interpreter="@RCD_INTERPRETER@" start_cmd="@ECHO@ Starting ${name}. && ${command} start" start_precmd="test_kern_privcmd" +privcmd_path="@PROCPATH@/xen/privcmd" test_kern_privcmd() { - if [ ! -f /kern/xen/privcmd ]; then - @ECHO@ "${name}: Cannot find /kern/xen/privcmd!" + if [ ! -f ${privcmd_path} ]; then + @ECHO@ "${name}: Cannot find ${privcmd_path}!" exit 1 fi } |