summaryrefslogtreecommitdiff
path: root/sysutils/xen-tools/Makefile
blob: 9d0b4c12e33931155f0d075f274d75ad4b97db68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:    xen-tools
# Date created:                         13 December 2011
# Whom:                                 Evan Sarmiento <esarmiento@wayfair.com>
#
# $FreeBSD$

PORTNAME=	xen-tools
PORTVERSION=	4.1.3
PORTREVISION=	3
CATEGORIES=	sysutils
DISTNAME=	xen-${PORTVERSION}

MAINTAINER=	feld@FreeBSD.org
COMMENT=	Xen tools within FreeBSD domU

MASTER_SITES=	http://bits.xensource.com/oss-xen/release/${PORTVERSION}/
DISTFILES=	xen-${PORTVERSION}.tar.gz

USE_GMAKE=	yes
USE_PYTHON=	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

do-build:
	cd ${WRKSRC}/tools && ${GMAKE} -C include
	cd ${WRKSRC}/tools/misc && ${GMAKE} xen-detect
	cd ${WRKSRC}/tools/xenstore && ${GMAKE} clients

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/xen-detect ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore-control ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/libxenstore.so.3.0 ${PREFIX}/lib

post-install:
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-chmod
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-exists
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-list
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-ls
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-read
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-rm
	${LN} -sf ${PREFIX}/bin/xenstore ${PREFIX}/bin/xenstore-write

.include <bsd.port.mk>