summaryrefslogtreecommitdiff
path: root/sysutils/xentools20
diff options
context:
space:
mode:
authorgrant <grant>2005-07-13 02:12:59 +0000
committergrant <grant>2005-07-13 02:12:59 +0000
commit67ec2be6249a143ac96ab3337e0ec4e47de0e47d (patch)
tree8e9f181d6750b80349f5316a82b6373f31abcd78 /sysutils/xentools20
parent3a7551282937eb0c59e13592f095da6e613a8a64 (diff)
downloadpkgsrc-67ec2be6249a143ac96ab3337e0ec4e47de0e47d.tar.gz
don't hardcode /kern/xen/privcmd in xend startup script.
Diffstat (limited to 'sysutils/xentools20')
-rw-r--r--sysutils/xentools20/Makefile6
-rw-r--r--sysutils/xentools20/files/xend.sh7
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
}