diff options
author | bapt <bapt@FreeBSD.org> | 2015-04-06 22:27:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-04-06 22:27:26 +0800 |
commit | 9638496d6249acc417f68d2b5f276bf5eb852112 (patch) | |
tree | 8266c15ae488eacae53a7dff784dbf205148b4ed /sysutils/xen-guest-tools | |
parent | 0aae6d21916a550884ded0eb9bcbf86a6b05666a (diff) | |
download | freebsd-ports-gnome-9638496d6249acc417f68d2b5f276bf5eb852112.tar.gz freebsd-ports-gnome-9638496d6249acc417f68d2b5f276bf5eb852112.tar.zst freebsd-ports-gnome-9638496d6249acc417f68d2b5f276bf5eb852112.zip |
Rename xen-tools into xen-guest-tools
Requested by: roger@
Approved by: dinoex@ (maintainer)
Diffstat (limited to 'sysutils/xen-guest-tools')
-rw-r--r-- | sysutils/xen-guest-tools/Makefile | 64 | ||||
-rw-r--r-- | sysutils/xen-guest-tools/distinfo | 2 | ||||
-rw-r--r-- | sysutils/xen-guest-tools/files/patch-Config.mk | 14 | ||||
-rw-r--r-- | sysutils/xen-guest-tools/files/patch-config_StdGNU.mk | 15 | ||||
-rw-r--r-- | sysutils/xen-guest-tools/files/patch-tools_xenstore_xs__lib.c | 11 | ||||
-rw-r--r-- | sysutils/xen-guest-tools/pkg-descr | 4 |
6 files changed, 110 insertions, 0 deletions
diff --git a/sysutils/xen-guest-tools/Makefile b/sysutils/xen-guest-tools/Makefile new file mode 100644 index 000000000000..5721460cf574 --- /dev/null +++ b/sysutils/xen-guest-tools/Makefile @@ -0,0 +1,64 @@ +# Created by: Evan Sarmiento <esarmiento@wayfair.com> +# $FreeBSD$ + +PORTNAME= xen-guest-tools +PORTVERSION= 4.2.2 +PORTREVISION= 0 +CATEGORIES= sysutils +DISTNAME= xen-${PORTVERSION} + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Xen tools within FreeBSD domU + +MASTER_SITES= http://bits.xensource.com/oss-xen/release/${PORTVERSION}/ +DISTFILES= xen-${PORTVERSION}.tar.gz + +BUILD_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \ + ${LOCALBASE}/lib/libglib-2.0.so:${PORTSDIR}/devel/glib20 \ + ${LOCALBASE}/lib/libyajl.so:${PORTSDIR}/devel/yajl + +USES= gmake python:configure perl5 gettext-runtime:build gettext-tools:build pkgconfig +USE_PERL5= build +GNU_CONFIGURE= yes +CONFIGURE_ENV+= PYTHON=${PYTHON_CMD} PYTHON_PATH=${PYTHON_CMD} +CONFIGURE_ENV+= APPEND_LIB="${LOCALBASE}/lib" +USE_LDCONFIG= yes + +ONLY_FOR_ARCHS= amd64 i386 ia64 +ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than amd64, i386, or ia64" + +PLIST_FILES= lib/libxenstore.so.3.0 \ + bin/xen-detect \ + bin/xenstore \ + bin/xenstore-control \ + bin/xenstore-chmod \ + bin/xenstore-exists \ + bin/xenstore-list \ + bin/xenstore-ls \ + bin/xenstore-read \ + bin/xenstore-rm \ + bin/xenstore-write + +post-patch: + ${REINPLACE_CMD} -e 's;86|x86_64;86no|x86_64no;' \ + ${WRKSRC}/tools/configure + +do-build: + cd ${WRKSRC}/tools && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C include + cd ${WRKSRC}/tools/misc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} xen-detect + cd ${WRKSRC}/tools/xenstore && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} clients + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/xen-detect ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore-control ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/libxenstore.so.3.0 ${STAGEDIR}${PREFIX}/lib + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-chmod + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-exists + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-list + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-ls + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-read + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-rm + ${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-write + +.include <bsd.port.mk> diff --git a/sysutils/xen-guest-tools/distinfo b/sysutils/xen-guest-tools/distinfo new file mode 100644 index 000000000000..8f257664cd8c --- /dev/null +++ b/sysutils/xen-guest-tools/distinfo @@ -0,0 +1,2 @@ +SHA256 (xen-4.2.2.tar.gz) = c9bfe91a5e72f8545acebad9889d64368020359bfe18044c0e683133e55ae005 +SIZE (xen-4.2.2.tar.gz) = 15602746 diff --git a/sysutils/xen-guest-tools/files/patch-Config.mk b/sysutils/xen-guest-tools/files/patch-Config.mk new file mode 100644 index 000000000000..825ad460e515 --- /dev/null +++ b/sysutils/xen-guest-tools/files/patch-Config.mk @@ -0,0 +1,14 @@ +--- Config.mk.orig 2013-10-30 14:55:12.664590030 -0500 ++++ Config.mk 2013-10-30 14:55:29.462580127 -0500 +@@ -13,9 +13,8 @@ + SHELL ?= /bin/sh + + # Tools to run on system hosting the build +-HOSTCC = gcc +-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer +-HOSTCFLAGS += -fno-strict-aliasing ++HOSTCC = ${CC} ++HOSTCFLAGS = ${CFLAGS} + + DISTDIR ?= $(XEN_ROOT)/dist + DESTDIR ?= / diff --git a/sysutils/xen-guest-tools/files/patch-config_StdGNU.mk b/sysutils/xen-guest-tools/files/patch-config_StdGNU.mk new file mode 100644 index 000000000000..90eeb4cec51c --- /dev/null +++ b/sysutils/xen-guest-tools/files/patch-config_StdGNU.mk @@ -0,0 +1,15 @@ +--- config/StdGNU.mk.orig 2013-04-23 18:42:55.000000000 +0200 ++++ config/StdGNU.mk 2015-01-30 09:12:53.000000000 +0100 +@@ -1,10 +1,10 @@ + AS = $(CROSS_COMPILE)as + LD = $(CROSS_COMPILE)ld + ifeq ($(clang),y) +-CC = $(CROSS_COMPILE)clang ++CC ?= $(CROSS_COMPILE)clang + LD_LTO = $(CROSS_COMPILE)llvm-ld + else +-CC = $(CROSS_COMPILE)gcc ++CC ?= $(CROSS_COMPILE)gcc + LD_LTO = $(CROSS_COMPILE)ld + endif + CPP = $(CC) -E diff --git a/sysutils/xen-guest-tools/files/patch-tools_xenstore_xs__lib.c b/sysutils/xen-guest-tools/files/patch-tools_xenstore_xs__lib.c new file mode 100644 index 000000000000..28c17b0c3bef --- /dev/null +++ b/sysutils/xen-guest-tools/files/patch-tools_xenstore_xs__lib.c @@ -0,0 +1,11 @@ +--- tools/xenstore/xs_lib.c.orig 2011-01-30 15:56:52.985324929 -0800 ++++ tools/xenstore/xs_lib.c 2011-01-30 15:55:14.024346135 -0800 +@@ -84,6 +84,8 @@ + return "/proc/xen/xenbus"; + #elif defined(__NetBSD__) + return "/kern/xen/xenbus"; ++#elif defined(__FreeBSD__) ++ return "/dev/xen/xenstore"; + #else + return "/dev/xen/xenbus"; + #endif diff --git a/sysutils/xen-guest-tools/pkg-descr b/sysutils/xen-guest-tools/pkg-descr new file mode 100644 index 000000000000..3f15d9c52987 --- /dev/null +++ b/sysutils/xen-guest-tools/pkg-descr @@ -0,0 +1,4 @@ +These tools are useful for debugging Xen related problems when one +does not have access to the dom0 or wants to view the entries from +domU's perspective. These work on FreeBSD VMs using the XEN (i386) +kernel or the XENHVM kernel. |