diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-10-10 02:07:40 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-10-10 02:07:40 +0000 |
commit | 4b77fe0b4a26b4046f6b855e00ca28d5ae5cc6b0 (patch) | |
tree | 8e2f44dc1b9390fc430f158b8e567ceee2fdae21 /sysutils/xe-guest-utilities | |
parent | - Added search path for libexecinfo to prevent configure error [1] (diff) |
FreeBSD VM tools for Citrix XenServer and XCP
PR: ports/172468
Submitted by: Mark Felder <feld@feld.me>
Notes
Notes:
svn path=/head/; revision=305627
Diffstat (limited to 'sysutils/xe-guest-utilities')
-rw-r--r-- | sysutils/xe-guest-utilities/Makefile | 39 | ||||
-rw-r--r-- | sysutils/xe-guest-utilities/distinfo | 2 | ||||
-rw-r--r-- | sysutils/xe-guest-utilities/files/xenguest.in | 29 | ||||
-rw-r--r-- | sysutils/xe-guest-utilities/pkg-descr | 1 |
4 files changed, 71 insertions, 0 deletions
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 |