2013-09-21 01:05:58 +02:00
|
|
|
# Created by: Evan Sarmiento <esarmiento@wayfair.com>
|
2011-12-14 10:03:23 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xen-tools
|
2015-01-30 16:12:28 +01:00
|
|
|
PORTVERSION= 4.2.2
|
|
|
|
PORTREVISION= 0
|
2011-12-14 10:03:23 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
DISTNAME= xen-${PORTVERSION}
|
|
|
|
|
2015-01-30 16:12:28 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2011-12-14 10:03:23 +01:00
|
|
|
COMMENT= Xen tools within FreeBSD domU
|
|
|
|
|
2012-10-10 03:34:04 +02:00
|
|
|
MASTER_SITES= http://bits.xensource.com/oss-xen/release/${PORTVERSION}/
|
|
|
|
DISTFILES= xen-${PORTVERSION}.tar.gz
|
2011-12-14 10:03:23 +01:00
|
|
|
|
2015-02-01 08:04:36 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
|
|
|
|
${LOCALBASE}/lib/libglib-2.0.so:${PORTSDIR}/devel/glib20 \
|
2015-02-03 05:52:44 +01:00
|
|
|
${LOCALBASE}/lib/libyajl.so:${PORTSDIR}/devel/yajl
|
2015-01-30 16:12:28 +01:00
|
|
|
|
|
|
|
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
|
2011-12-14 10:03:23 +01:00
|
|
|
|
2012-01-03 06:41:39 +01:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386 ia64
|
|
|
|
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than amd64, i386, or ia64"
|
|
|
|
|
2011-12-14 10:03:23 +01:00
|
|
|
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 \
|
2012-10-10 03:34:04 +02:00
|
|
|
bin/xenstore-write
|
2012-09-17 16:21:21 +02:00
|
|
|
|
2015-02-09 21:36:52 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's;86|x86_64;86no|x86_64no;' \
|
|
|
|
${WRKSRC}/tools/configure
|
|
|
|
|
2011-12-14 10:03:23 +01:00
|
|
|
do-build:
|
2013-12-15 00:14:13 +01:00
|
|
|
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
|
2011-12-14 10:03:23 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-10-31 12:02:05 +01:00
|
|
|
${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
|
2011-12-14 10:03:23 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|