d8e0a72415
bump PKGREVISION to nb1.
90 lines
2.6 KiB
Makefile
90 lines
2.6 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2005/06/04 11:34:30 yamt Exp $
|
|
#
|
|
|
|
DISTNAME= xen-2.0.6-src
|
|
PKGNAME= xentools20-2.0.6
|
|
PKGREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.netbsd.org/Ports/xen/
|
|
COMMENT= Userland Tools for Xen
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-twisted-[0-9]*:../../net/py-twisted
|
|
|
|
USE_PKGINSTALL= yes
|
|
PKG_SYSCONFSUBDIR= xen
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
|
|
|
WRKSRC= ${WRKDIR}/xen-2.0/tools
|
|
|
|
EGDIR= ${PREFIX}/share/examples/xen
|
|
|
|
USE_TOOLS+= gmake
|
|
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
|
|
|
|
SUBST_CLASSES= paths py conf
|
|
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."
|
|
SUBST_STAGE.py= pre-configure
|
|
SUBST_FILES.py= python/Makefile
|
|
SUBST_SED.py= -e "s,python,${PYTHONBIN},g"
|
|
SUBST_STAGE.conf= pre-configure
|
|
SUBST_FILES.conf= python/xen/xend/XendRoot.py
|
|
SUBST_SED.conf= -e "s,@XENDCONFDIR@,${PKG_SYSCONFDIR},g"
|
|
|
|
RCD_SCRIPTS= xend
|
|
FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN}
|
|
|
|
INSTALLATION_DIRS= share/examples/xen
|
|
|
|
XEND_SCRIPTS= network vif-bridge block-enbd block-file \
|
|
xmexample1 xmexample2 xmexample3
|
|
|
|
SUPPORT_FILES= ${EGDIR}/xend-config.sxp \
|
|
${PKG_SYSCONFDIR}/xend-config.sxp
|
|
.for f in ${XEND_SCRIPTS}
|
|
SUPPORT_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
SUPPORT_FILES_MODE= 0755
|
|
|
|
pre-build:
|
|
${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
|
|
${CP} ${FILESDIR}/xenio.h ${WRKSRC}/libxc/xen/NetBSD
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/examples/xend-config.sxp \
|
|
${EGDIR}/xend-config.sxp
|
|
.for s in ${XEND_SCRIPTS}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${s} ${EGDIR}/${s}
|
|
.endfor
|
|
|
|
.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"
|