blob: 115ab51fcc2677a4052e22b40ad27ccb9abe4561 (
plain)
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
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.6 2005/04/01 19:06:12 bouyer Exp $
#
DISTNAME= xen-2.0.3-src
PKGNAME= xentools20-2.0.3
PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/
EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.netbsd.org/Ports/xen/
COMMENT= Userland Tools for Xen
DEPENDS+= ${PYPKGPREFIX}-twisted*:../../net/py-twisted
USE_PKGINSTALL= yes
ONLY_FOR_PLATFORM= NetBSD-*-i386
WRKSRC= ${WRKDIR}/xen-2.0/tools
EGDIR= ${PREFIX}/share/examples/${PKGNAME_NOREV}
USE_GNU_TOOLS+= make
MAKE_ENV+= EGDIR="${EGDIR}"
MAKE_ENV+= MV="${MV}" PYTHON="${PYTHONBIN}" SED="${SED}"
PYTHON_VERSIONS_ACCEPTED= 24 23 22
PY_PATCHPLIST= yes
PYTHON_PATCH_SCRIPTS= python/xen/util/console_client.py
PYTHON_PATCH_SCRIPTS+= python/xen/xend/server/SrvServer.py
PYTHON_PATCH_SCRIPTS+= python/xen/xend/XendClient.py
PYTHON_PATCH_SCRIPTS+= python/xen/xend/sxp.py
PYTHON_PATCH_SCRIPTS+= xfrd/xfrdClient.py
PYTHON_PATCH_SCRIPTS+= misc/xensymoops
PYTHON_PATCH_SCRIPTS+= misc/xencons
PYTHON_PATCH_SCRIPTS+= misc/xm
PYTHON_PATCH_SCRIPTS+= misc/xensv
PYTHON_PATCH_SCRIPTS+= misc/netfix
PYTHON_PATCH_SCRIPTS+= misc/xend
PYTHON_PATCH_SCRIPTS+= xentrace/xentrace_format
USE_BUILDLINK3= yes
SUBST_CLASSES= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= python/xen/xend/server/SrvDaemon.py
SUBST_FILES.paths+= python/xen/xend/XendDomainInfo.py
SUBST_FILES.paths+= python/xen/sv/Daemon.py
SUBST_SED.paths= -e "s|/usr/sbin|${PREFIX}/sbin|g"
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
RCD_SCRIPTS= xend
FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN}
pre-build:
${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
${CP} ${FILESDIR}/xenio.h ${WRKSRC}/libxc/xen/NetBSD
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|