pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xentools20 don't hardcode /kern/xen/privcmd i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d3f560647fe3
branches: trunk
changeset: 496775:d3f560647fe3
user: grant <grant%pkgsrc.org@localhost>
date: Wed Jul 13 02:12:59 2005 +0000
description:
don't hardcode /kern/xen/privcmd in xend startup script.
diffstat:
sysutils/xentools20/Makefile | 6 +++++-
sysutils/xentools20/files/xend.sh | 7 ++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (50 lines):
diff -r a439a2157ae6 -r d3f560647fe3 sysutils/xentools20/Makefile
--- a/sysutils/xentools20/Makefile Wed Jul 13 01:30:17 2005 +0000
+++ b/sysutils/xentools20/Makefile Wed Jul 13 02:12:59 2005 +0000
@@ -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+= 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 -r a439a2157ae6 -r d3f560647fe3 sysutils/xentools20/files/xend.sh
--- a/sysutils/xentools20/files/xend.sh Wed Jul 13 01:30:17 2005 +0000
+++ b/sysutils/xentools20/files/xend.sh Wed Jul 13 02:12:59 2005 +0000
@@ -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_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
}
Home |
Main Index |
Thread Index |
Old Index