summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/xe-guest-utilities/Makefile39
-rw-r--r--sysutils/xe-guest-utilities/distinfo2
-rw-r--r--sysutils/xe-guest-utilities/files/xenguest.in29
-rw-r--r--sysutils/xe-guest-utilities/pkg-descr1
5 files changed, 72 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 42dd8e10b530..be3031d7c94a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1029,6 +1029,7 @@
SUBDIR += xcdroast
SUBDIR += xcpustate
SUBDIR += xdu
+ SUBDIR += xe-guest-utilities
SUBDIR += xen-tools
SUBDIR += xfburn
SUBDIR += xfce4-battery-plugin
diff --git a/sysutils/xe-guest-utilities/Makefile b/sysutils/xe-guest-utilities/Makefile
new file mode 100644
index 000000000000..d77066663270
--- /dev/null
+++ b/sysutils/xe-guest-utilities/Makefile
@@ -0,0 +1,39 @@
+# Created by: Mark Felder <feld@feld.me>
+#
+# $FreeBSD$
+
+PORTNAME= xe-guest-utilities
+PORTVERSION= 6.0.2
+CATEGORIES= sysutils
+MASTER_SITES= https://github.com/${GIT_ACCOUNT}/${GIT_PROJECT}/tarball/${GIT_VERSION}/
+DISTNAME= ${GIT_ACCOUNT}-${GIT_PROJECT}-${GIT_VERSION}
+
+MAINTAINER= feld@feld.me
+COMMENT= FreeBSD VM tools for Citrix XenServer and XCP
+
+RUN_DEPENDS= xen-tools>0:${PORTSDIR}/sysutils/xen-tools
+
+FETCH_ARGS= -pRr
+GIT_ACCOUNT= felderado
+GIT_PROJECT= freebsd-xen-tools-scripts
+GIT_VERSION= 5a355c9
+GITSRC= ${WRKDIR}/${GIT_ACCOUNT}-${GIT_PROJECT}-${GIT_VERSION}/src/
+
+USE_GMAKE= yes
+USE_PYTHON= yes
+USE_RC_SUBR= xenguest
+
+ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS_REASON= "Requires i385 XEN or amd64 XENHVM kernels"
+
+PLIST_FILES= sbin/xe-daemon \
+ sbin/xe-update-guest-attrs
+
+do-build:
+ @${DO_NADA}
+
+do-install:
+ ${INSTALL_SCRIPT} ${GITSRC}/sbin/xe-daemon ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${GITSRC}/sbin/xe-update-guest-attrs ${PREFIX}/sbin
+
+.include <bsd.port.mk>
diff --git a/sysutils/xe-guest-utilities/distinfo b/sysutils/xe-guest-utilities/distinfo
new file mode 100644
index 000000000000..60572f5caaea
--- /dev/null
+++ b/sysutils/xe-guest-utilities/distinfo
@@ -0,0 +1,2 @@
+SHA256 (felderado-freebsd-xen-tools-scripts-5a355c9.tar.gz) = c6d934103079cae5f9bd4abdb77586cea56eb04bdafd7dfc2e3401ab271bf278
+SIZE (felderado-freebsd-xen-tools-scripts-5a355c9.tar.gz) = 49171
diff --git a/sysutils/xe-guest-utilities/files/xenguest.in b/sysutils/xe-guest-utilities/files/xenguest.in
new file mode 100644
index 000000000000..e3e1e75ca745
--- /dev/null
+++ b/sysutils/xe-guest-utilities/files/xenguest.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: xenguest
+# REQUIRE: LOGIN
+# KEYWORD: nojail shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# xenguest_enable (bool): Set to NO by default.
+# Set it to YES to enable xenguest.
+
+. /etc/rc.subr
+
+name=xenguest
+rcvar=xenguest_enable
+
+load_rc_config $name
+
+: ${xe_daemon_enable="NO"}
+
+pidfile="/var/run/xe-daemon.pid"
+command="%%PREFIX%%/sbin/xe-daemon"
+command_interpreter="/bin/sh"
+command_args='-p $pidfile &'
+
+run_rc_command "$1"
diff --git a/sysutils/xe-guest-utilities/pkg-descr b/sysutils/xe-guest-utilities/pkg-descr
new file mode 100644
index 000000000000..deb10799397d
--- /dev/null
+++ b/sysutils/xe-guest-utilities/pkg-descr
@@ -0,0 +1 @@
+FreeBSD VM tools for Citrix XenServer and XCP