Changeset View
Changeset View
Standalone View
Standalone View
sysutils/xen-tools/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= xen | PORTNAME= xen | ||||
PKGNAMESUFFIX= -tools | PKGNAMESUFFIX= -tools | ||||
PORTVERSION= 4.12.0 | PORTVERSION= 4.12.0 | ||||
PORTREVISION= 0 | PORTREVISION= 1 | ||||
CATEGORIES= sysutils emulators | CATEGORIES= sysutils emulators | ||||
MASTER_SITES= http://downloads.xenproject.org/release/xen/${PORTVERSION}/ | MASTER_SITES= http://downloads.xenproject.org/release/xen/${PORTVERSION}/ | ||||
MAINTAINER= royger@FreeBSD.org | MAINTAINER= royger@FreeBSD.org | ||||
COMMENT= Xen management tools | COMMENT= Xen management tools | ||||
LICENSE= GPLv2 LGPL3 | LICENSE= GPLv2 LGPL3 | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
Show All 34 Lines | SHEBANG_FILES= tools/misc/xencov_split \ | ||||
tools/python/scripts/verify-stream-v2 \ | tools/python/scripts/verify-stream-v2 \ | ||||
tools/xenmon/xenmon.py | tools/xenmon/xenmon.py | ||||
ALL_TARGET= tools | ALL_TARGET= tools | ||||
DOCS_ALL_TARGET= docs | DOCS_ALL_TARGET= docs | ||||
INSTALL_TARGET= install-tools | INSTALL_TARGET= install-tools | ||||
DOCS_INSTALL_TARGET= install-docs | DOCS_INSTALL_TARGET= install-docs | ||||
EXTRA_PATCHES+= ${FILESDIR}/0001-tools-include-propagate-python-interpreter-path.patch:-p1 | EXTRA_PATCHES+= ${PATCHDIR}/0001-tools-include-propagate-python-interpreter-path.patch:-p1 | ||||
# Pre-patches for XSA-297 to apply cleanly | |||||
EXTRA_PATCHES+= ${PATCHDIR}/0001-x86-tsx-Implement-controls-for-RTM-force-abort-mode.patch:-p1 \ | |||||
${PATCHDIR}/0001-x86-msr-Shorten-ARCH_CAPABILITIES_-constants.patch:-p1 \ | |||||
${PATCHDIR}/0002-x86-spec-ctrl-Extend-repoline-safey-calcuations-for-.patch:-p1 | |||||
# Fixes for XSA-297 (MDS) | |||||
EXTRA_PATCHES+= ${PATCHDIR}/xsa297-4.12-1.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-2.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-3.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-4.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-5.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-6.patch:-p1 \ | |||||
${PATCHDIR}/xsa297-4.12-7.patch:-p1 | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${OPSYS} != FreeBSD | .if ${OPSYS} != FreeBSD | ||||
IGNORE= only supported on FreeBSD | IGNORE= only supported on FreeBSD | ||||
.endif | .endif | ||||
.if ${OSVERSION} < 1200074 | .if ${OSVERSION} < 1200074 | ||||
IGNORE= only supported on FreeBSD 12.0 or newer | IGNORE= only supported on FreeBSD 12.0 or newer | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008 | .if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008 | ||||
BROKEN= SPICE support requires FreeBSD version 13.0 or higher | BROKEN= SPICE support requires FreeBSD version 13.0 or higher | ||||
.endif | .endif | ||||
mat: All those should be `PATCHDIR`, not `FILESDIR`. | |||||
post-patch: | post-patch: | ||||
@for p in `ls ${FILESDIR}/*qemuu*.patch 2>/dev/null`; do \ | @for p in `ls ${FILESDIR}/*qemuu*.patch 2>/dev/null`; do \ | ||||
${ECHO_CMD} "====> Applying $${p##*/}" ; \ | ${ECHO_CMD} "====> Applying $${p##*/}" ; \ | ||||
${PATCH} -s -p1 -i $${p} -d ${WRKSRC}/tools/qemu-xen ; \ | ${PATCH} -s -p1 -i $${p} -d ${WRKSRC}/tools/qemu-xen ; \ | ||||
done | done | ||||
# The ports native 'build' target cannot be used because it sets CFLAGS, and | # The ports native 'build' target cannot be used because it sets CFLAGS, and | ||||
Show All 12 Lines |
All those should be PATCHDIR, not FILESDIR.