aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xe-guest-utilities
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2016-01-10 07:30:39 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2016-01-10 07:30:39 +0000
commita47b7d97ff7b8950cf45ad32b77a6b1bfcb55096 (patch)
tree36387ebccb6d7d96bfd7b671b48cc1d7f9b2b8dc /sysutils/xe-guest-utilities
parent605de7ca6c73f8c7ac3c24204f620bf56aa1f4bc (diff)
downloadports-a47b7d97ff7b8950cf45ad32b77a6b1bfcb55096.tar.gz
ports-a47b7d97ff7b8950cf45ad32b77a6b1bfcb55096.zip
Notes
Diffstat (limited to 'sysutils/xe-guest-utilities')
-rw-r--r--sysutils/xe-guest-utilities/Makefile2
-rw-r--r--sysutils/xe-guest-utilities/files/xenguest.in11
2 files changed, 11 insertions, 2 deletions
diff --git a/sysutils/xe-guest-utilities/Makefile b/sysutils/xe-guest-utilities/Makefile
index ea05a1ad6a41..17c69d1f9447 100644
--- a/sysutils/xe-guest-utilities/Makefile
+++ b/sysutils/xe-guest-utilities/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xe-guest-utilities
PORTVERSION= 6.2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= LOCAL/feld
DISTNAME= ${PORTNAME}-6.0.2
diff --git a/sysutils/xe-guest-utilities/files/xenguest.in b/sysutils/xe-guest-utilities/files/xenguest.in
index a19bace7884b..13ac7b68ed2d 100644
--- a/sysutils/xe-guest-utilities/files/xenguest.in
+++ b/sysutils/xe-guest-utilities/files/xenguest.in
@@ -19,7 +19,16 @@ rcvar=xenguest_enable
load_rc_config $name
-: ${xenguest_enable:=NO}
+autoxen=`sysctl kern.vm_guest`
+autoxen="${autoxen#kern.vm_guest: }"
+case "${autoxen}" in
+xen)
+ : ${xenguest_enable:=YES}
+ ;;
+*)
+ : ${xenguest_enable:=NO}
+ ;;
+esac
pidfile=/var/run/xe-daemon.pid
command="%%PREFIX%%/sbin/xe-daemon"