summaryrefslogtreecommitdiff
path: root/sysutils/xe-guest-utilities/patches/patch-xe-daemon
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2011-10-03 16:57:03 +0000
committersborrill <sborrill@pkgsrc.org>2011-10-03 16:57:03 +0000
commit06ccee30675525a73f2a86b268f1ea28eb86ad1a (patch)
tree9d2b80b2d543de0b33ebe0b3d3dbdb6ecf1a3aa7 /sysutils/xe-guest-utilities/patches/patch-xe-daemon
parent757025e83e6b48286dca9bc6e4dd1e0629fd3ada (diff)
downloadpkgsrc-06ccee30675525a73f2a86b268f1ea28eb86ad1a.tar.gz
NetBSD can run as a paravirtualised guest of Citrix XenServer using
XEN3PAE_DOMU (i386) or XEN3_DOMU (amd64) kernels. To get full functionality, guest VMs must provide run-time information to the XenServer dom0. Failure to do so will give the message "XenServer Tools not installed". This package allows NetBSD to interface with XenServer to enable: - Memory usage logging - IP address reporting - Suspend/Resume - Migration - OS version reporting This version is for XenServer 6.0 and earlier.
Diffstat (limited to 'sysutils/xe-guest-utilities/patches/patch-xe-daemon')
-rw-r--r--sysutils/xe-guest-utilities/patches/patch-xe-daemon25
1 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/xe-guest-utilities/patches/patch-xe-daemon b/sysutils/xe-guest-utilities/patches/patch-xe-daemon
new file mode 100644
index 00000000000..0fefff7d345
--- /dev/null
+++ b/sysutils/xe-guest-utilities/patches/patch-xe-daemon
@@ -0,0 +1,25 @@
+$NetBSD: patch-xe-daemon,v 1.1.1.1 2011/10/03 16:57:03 sborrill Exp $
+
+--- xe-daemon.orig 2011-09-23 15:39:33.000000000 +0100
++++ xe-daemon 2011-09-23 15:42:48.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ # Copyright (C) 2009 Citrix Systems Inc.
+ #
+@@ -42,12 +42,12 @@
+ esac
+ done
+
+-XE_UPDATE_GUEST_ATTRS=${XE_UPDATE_GUEST_ATTRS:-/usr/sbin/xe-update-guest-attrs}
++XE_UPDATE_GUEST_ATTRS=${XE_UPDATE_GUEST_ATTRS:-@PREFIX@/sbin/xe-update-guest-attrs}
+ XE_DAEMON_RATE=${XE_DAEMON_RATE:-60} # run once a minute by default
+ XE_MEMORY_UPDATE_DIVISOR=${XE_MEMORY_UPDATE_DIVISOR:-2} # update mem stats 1/2 as often by dflt
+
+ # Delete xenstore cache following each reboot
+-rm -rf /var/cache/xenstore
++rm -rf @VARBASE@/cache/xenstore
+
+ MEMORY_UPDATE_COUNTER=0
+ while true ; do