Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-tools/
Date: Mon, 10 Sep 2018 09:36:25
Message-Id: 1536572109.ae0f390c4594132a14d6428ca9e526c79b1e4da6.whissi@gentoo
1 commit: ae0f390c4594132a14d6428ca9e526c79b1e4da6
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 09:35:09 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 09:35:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0f390c
7
8 app-emulation/xen-tools: security cleanup (bug #643350)
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-emulation/xen-tools/Manifest | 4 -
13 app-emulation/xen-tools/xen-tools-4.9.1-r1.ebuild | 454 ---------------------
14 app-emulation/xen-tools/xen-tools-4.9.1-r2.ebuild | 455 ----------------------
15 3 files changed, 913 deletions(-)
16
17 diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest
18 index 46f76bdac0d..8c3ab18fc4f 100644
19 --- a/app-emulation/xen-tools/Manifest
20 +++ b/app-emulation/xen-tools/Manifest
21 @@ -7,12 +7,8 @@ DIST xen-4.10.1-upstream-patches-2.tar.xz 117588 BLAKE2B ddcd58964117652b50f3524
22 DIST xen-4.10.1.tar.gz 24674240 BLAKE2B f9a7e0c637db865ab32ad6b6185ab96022903aff65a18e194286a3fc372d4a45f6682cd636b7ac5b4fa0125e54ed51f8876a411d498cf75791718fd088c4a6d2 SHA512 236c02bee69e33644703ed26d323d4c491a91fc05bd0ee0990a7368579f7c82f5bb4510845bf80348fd923024d7d60d521f593dfd0365d971dc592f8ef10fbea
23 DIST xen-4.11.0-upstream-patches-0.tar.xz 21720 BLAKE2B 92c2ef90ca6af5032e9181d8edbe2b91a4117cc402f5abdff208aa76ee76b56ce75f576c56220d2ebf6d1a21957c10f7c45a2c88d2c77aa8b17fa9a0a99e5b57 SHA512 6ea0ee376251b20b7fa9b6334bca462f115d8a9929e31ae269ae9591b433b46e4e9076a2d2e39ec5f868d5d74739ad7b0ba0d9244e599da5255ccca0babd669e
24 DIST xen-4.11.0.tar.gz 25131533 BLAKE2B 892639b8bcd9b9956104e4d5137ffd88e17f92d965fa967b4af8d74a4fddcc21c6971c53026e0fb5ce833ab2c25c68f827abcac0b7b1dcebc21dca645c465573 SHA512 33d431c194f10d5ee767558404a1f80a66b3df019012b0bbd587fcbc9524e1bba7ea04269020ce891fe9d211d2f81c63bf78abedcdbe1595aee26251c803a50a
25 -DIST xen-4.9.1-upstream-patches-1.tar.xz 24592 BLAKE2B 774c5219d6c14d729358e790d880a1a31fb4cda741e54e71879bff164e79bafbd8492eb8bccb7becdf7a2f9605e71266bb4fc15848deff8f9028ed7f8844f915 SHA512 edbc7cad2f6f8a5c7e8aac8efd5454428aa25e0e13018438f78c7f401cfb9173345267e16c7a5dfa78066a952980b172976409a0c63162094b7f507058e712ed
26 -DIST xen-4.9.1-upstream-patches-2.tar.xz 84228 BLAKE2B 3b98cdb1202d4c9817dd1919b9dc5d4c06510d3be2c077b2e41334928bca07c65a9d8a421fc2a1ae3b806e69f7b61334f7c54d48952c98192ece4b5826539df8 SHA512 673520bff88fa401e1d1c7accc8d3650d4d74a9e52bc7195cfcb5335226c69ef0230e7db719fd97ce6df2f5198646ae0fbccc6f812d7e9ccd38a6eef359d287c
27 -DIST xen-4.9.1.tar.gz 23368303 BLAKE2B 4cfddb351c9a4aa08227138dc1afa921f3d1880048f897428226da38eff9470cd81ae9896f174583048dad0ba8d5c1426df58b029115ba1623366d1980630c0d SHA512 9d22f0aa5dcd01a1c105d17c14bce570cc597e884ddb9b4a46b80a72f647625b76ae5213cede423d0458c14e1906983595a9269bb6e6ff2e9e7e4dea840f4274
28 DIST xen-4.9.2-upstream-patches-2.tar.xz 16100 BLAKE2B 469b5ab7c5514a4974ba6370136d3b0b8da66a137e57ea2d8ba4341582ecc65e9131340cfc854b2e4991de778802726479176bf3a54a59660cef7337c31958e5 SHA512 900ed3a63986ad6add07fa4f2c2596c48f7e9aac18d0876229c3a0b076a6417488e0d7bd1bdbe9886e6900bbece35c378b7f8735778b4bdfa115a9662d43108b
29 DIST xen-4.9.2.tar.gz 23392753 BLAKE2B 5f96f0e5062eff8ac2971eef85ea2bae0e94e7542151237937a1cf7e74690bb0ce1c952e830d2fc13b3277f70b9ed1de511afe4f780ad7b3be0c58742ece39b2 SHA512 e06aec25439abcc548c174ba8e271c23031ea704bcc2480905140aa68490064fbb1c58d9c4174f6617b4f7bbcddfda284317df6f480a6e5b5b5a2c71fbe0ac93
30 -DIST xen-gentoo-patches-10.tar.xz 27876 BLAKE2B 8efece8548a046b47c04e5b9354ca8bdff55affd6c6bc67315ac7536778fbaa183d346e0ff83e365030df2433bddf845188a1c3fb8feaea2e93d5ba0dd1c779a SHA512 2033f4cb671971c73841cfaa7eb46623c37778c5746b47302eee252c4af287ccbeb8d1884ffdf32cd97a38cd7785257d56f13ef20d4c03dc0fb1cb196dc04ece
31 DIST xen-gentoo-patches-12.tar.xz 28188 BLAKE2B 75f565d52e75d4f68d7a1be88a79e7cefe82350ca1f4852ecdb79137549d73ef1ffb665bac998956a6f180cde6faeb9a11ec1f5442c8ae53c7cbd869318ef315 SHA512 4e1ebbd244670d3a4171fd93eda7eb14deae3e3ad45b3a85c015696ff0a86b69156f24ee428d6c92b7be426938997cec2fab031ecb5b03ad26a38451523882de
32 DIST xen-gentoo-patches-14.tar.xz 36244 BLAKE2B 94b751df0ae9a49d1c52ec5fa835d4a040ccb6a4a0f63ef6ef628191163ce7dbd47d4e3b2dbb1cf6cf6c8b368bea4267ff989754482c4794209a80eae9313c25 SHA512 8a23aeddbcf80c049da36e3ef9d797c16996b45be21b56f46f3c9c3833a7c1028fd9ed56fc8053faeb78db21076608de2eb32908e1ae1285f4f200ace40c8c2d
33 DIST xen-ovmf-patches-3.tar.xz 4208 BLAKE2B 0df8f85667a33c91cbfd86c59aec2ae65eca892b45d66eed76f793a52e2748989bc2785861f8bfdf94235ef7a6c0be6572c6e6cce9695469e40f0facd0ce3947 SHA512 abe001053ca702138bbcdd6bea14e2daae5c785f862d6a15001ca894c8ed8617f0c5dc439c6f54a41433b988acf57c71911af1db074aa76732c39d98622a3b5b
34
35 diff --git a/app-emulation/xen-tools/xen-tools-4.9.1-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.9.1-r1.ebuild
36 deleted file mode 100644
37 index f18cfce1271..00000000000
38 --- a/app-emulation/xen-tools/xen-tools-4.9.1-r1.ebuild
39 +++ /dev/null
40 @@ -1,454 +0,0 @@
41 -# Copyright 1999-2018 Gentoo Foundation
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=6
45 -
46 -PYTHON_COMPAT=( python2_7 )
47 -PYTHON_REQ_USE='ncurses,xml,threads'
48 -
49 -inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs versionator
50 -
51 -MY_PV=${PV/_/-}
52 -MAJOR_V="$(get_version_component_range 1-2)"
53 -
54 -if [[ $PV == *9999 ]]; then
55 - inherit git-r3
56 - KEYWORDS="amd64 x86"
57 - REPO="xen.git"
58 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
59 - S="${WORKDIR}/${REPO}"
60 -else
61 - KEYWORDS="amd64 ~arm ~arm64 x86"
62 - UPSTREAM_VER=1
63 - SECURITY_VER=
64 - # xen-tools's gentoo patches tarball
65 - GENTOO_VER=10
66 - # xen-tools's gentoo patches version which apply to this specific ebuild
67 - GENTOO_GPV=0
68 - # xen-tools ovmf's patches
69 - OVMF_VER=3
70 -
71 - SEABIOS_VER=1.10.0
72 - # OVMF upstream 5920a9d16b1ab887c2858224316a98e961d71b05
73 - OVMF_PV=20170321
74 -
75 - [[ -n ${UPSTREAM_VER} ]] && \
76 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
77 - [[ -n ${SECURITY_VER} ]] && \
78 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
79 - [[ -n ${GENTOO_VER} ]] && \
80 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
81 - [[ -n ${OVMF_VER} ]] && \
82 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
83 -
84 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz
85 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
86 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
87 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.xz
88 - ${OVMF_PATCHSET_URI} )
89 - ${UPSTREAM_PATCHSET_URI}
90 - ${SECURITY_PATCHSET_URI}
91 - ${GENTOO_PATCHSET_URI}"
92 -
93 - S="${WORKDIR}/xen-${MY_PV}"
94 -fi
95 -
96 -DESCRIPTION="Xen tools including QEMU and xl"
97 -HOMEPAGE="https://www.xenproject.org"
98 -DOCS=( README docs/README.xen-bugtool )
99 -
100 -LICENSE="GPL-2"
101 -SLOT="0/${MAJOR_V}"
102 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
103 -# >=dev-lang/ocaml-4 stable
104 -# Masked in profiles/eapi-5-files instead
105 -IUSE="api custom-cflags debug doc flask hvm ocaml ovmf +pam pygrub python +qemu +qemu-traditional screen sdl static-libs system-qemu system-seabios"
106 -
107 -REQUIRED_USE="
108 - ${PYTHON_REQUIRED_USE}
109 - pygrub? ( python )
110 - ovmf? ( hvm )
111 - ^^ ( qemu system-qemu )"
112 -
113 -COMMON_DEPEND="
114 - sys-apps/pciutils
115 - dev-libs/lzo:2
116 - dev-libs/glib:2
117 - dev-libs/yajl
118 - dev-libs/libaio
119 - dev-libs/libgcrypt:0
120 - sys-libs/zlib
121 - ${PYTHON_DEPS}
122 -"
123 -
124 -DEPEND="${COMMON_DEPEND}
125 - >=sys-kernel/linux-headers-4.11
126 - dev-python/lxml[${PYTHON_USEDEP}]
127 - x86? ( sys-devel/dev86
128 - sys-power/iasl )
129 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
130 - api? ( dev-libs/libxml2
131 - net-misc/curl )
132 - ovmf? (
133 - !arm? ( !arm64? ( dev-lang/nasm ) )
134 - $(python_gen_impl_dep sqlite)
135 - )
136 - !amd64? ( >=sys-apps/dtc-1.4.0 )
137 - amd64? ( sys-devel/bin86
138 - system-seabios? ( sys-firmware/seabios )
139 - sys-firmware/ipxe
140 - sys-devel/dev86
141 - sys-power/iasl )
142 - dev-lang/perl
143 - app-misc/pax-utils
144 - doc? (
145 - app-text/ghostscript-gpl
146 - app-text/pandoc
147 - dev-python/markdown[${PYTHON_USEDEP}]
148 - dev-texlive/texlive-latexextra
149 - media-gfx/transfig
150 - )
151 - hvm? ( x11-base/xorg-proto
152 - !net-libs/libiscsi )
153 - qemu? (
154 - app-arch/snappy:=
155 - x11-libs/pixman
156 - sdl? ( media-libs/libsdl[X] )
157 - )
158 - system-qemu? ( app-emulation/qemu[xen] )
159 - ocaml? ( dev-ml/findlib
160 - >=dev-lang/ocaml-4 )"
161 -
162 -RDEPEND="${COMMON_DEPEND}
163 - sys-apps/iproute2[-minimal]
164 - net-misc/bridge-utils
165 - screen? (
166 - app-misc/screen
167 - app-admin/logrotate
168 - )"
169 -
170 -# hvmloader is used to bootstrap a fully virtualized kernel
171 -# Approved by QA team in bug #144032
172 -QA_WX_LOAD="
173 - usr/libexec/xen/boot/hvmloader
174 - usr/share/qemu-xen/qemu/s390-ccw.img
175 - usr/share/qemu-xen/qemu/u-boot.e500
176 -"
177 -
178 -QA_PREBUILT="
179 - usr/libexec/xen/bin/ivshmem-client
180 - usr/libexec/xen/bin/ivshmem-server
181 - usr/libexec/xen/bin/qemu-img
182 - usr/libexec/xen/bin/qemu-io
183 - usr/libexec/xen/bin/qemu-nbd
184 - usr/libexec/xen/bin/qemu-system-i386
185 - usr/libexec/xen/bin/virtfs-proxy-helper
186 - usr/libexec/xen/libexec/xen-bridge-helper
187 - usr/share/qemu-xen/qemu/s390-ccw.img
188 - usr/share/qemu-xen/qemu/u-boot.e500
189 -"
190 -
191 -RESTRICT="test"
192 -
193 -pkg_setup() {
194 - python_setup
195 - export "CONFIG_LOMOUNT=y"
196 -
197 - #bug 522642, disable compile tools/tests
198 - export "CONFIG_TESTS=n"
199 -
200 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
201 - if use x86 && use amd64; then
202 - die "Confusion! Both x86 and amd64 are set in your use flags!"
203 - elif use x86; then
204 - export XEN_TARGET_ARCH="x86_32"
205 - elif use amd64 ; then
206 - export XEN_TARGET_ARCH="x86_64"
207 - elif use arm; then
208 - export XEN_TARGET_ARCH="arm32"
209 - elif use arm64; then
210 - export XEN_TARGET_ARCH="arm64"
211 - else
212 - die "Unsupported architecture!"
213 - fi
214 - fi
215 -}
216 -
217 -src_prepare() {
218 - local i
219 -
220 - # Upstream's patchset
221 - if [[ -n ${UPSTREAM_VER} ]]; then
222 - einfo "Try to apply Xen Upstream patch set"
223 - eapply "${WORKDIR}"/patches-upstream
224 - fi
225 -
226 - # Security patchset
227 - if [[ -n ${SECURITY_VER} ]]; then
228 - einfo "Try to apply Xen Security patch set"
229 - # apply main xen patches
230 - # Two parallel systems, both work side by side
231 - # Over time they may concdense into one. This will suffice for now
232 - EPATCH_SUFFIX="patch"
233 - EPATCH_FORCE="yes"
234 -
235 - source "${WORKDIR}"/patches-security/${PV}.conf || die
236 -
237 - for i in ${XEN_SECURITY_MAIN}; do
238 - eapply "${WORKDIR}"/patches-security/xen/$i
239 - done
240 -
241 - # apply qemu-xen/upstream patches
242 - pushd "${S}"/tools/qemu-xen/ > /dev/null
243 - for i in ${XEN_SECURITY_QEMUU}; do
244 - eapply "${WORKDIR}"/patches-security/qemuu/$i
245 - done
246 - popd > /dev/null
247 -
248 - # apply qemu-traditional patches
249 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
250 - for i in ${XEN_SECURITY_QEMUT}; do
251 - eapply "${WORKDIR}"/patches-security/qemut/$i
252 - done
253 - popd > /dev/null
254 - fi
255 -
256 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
257 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
258 - pushd tools/firmware/ > /dev/null
259 - ln -s seabios-dir-remote seabios-dir || die
260 - popd > /dev/null
261 -
262 - # Gentoo's patchset
263 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
264 - einfo "Try to apply Gentoo specific patch set"
265 - source "${FILESDIR}"/gentoo-patches.conf || die
266 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
267 - for i in ${!_gpv}; do
268 - eapply "${WORKDIR}"/patches-gentoo/$i
269 - done
270 - fi
271 -
272 - # Ovmf's patchset
273 - if use ovmf; then
274 - if [[ -n ${OVMF_VER} ]];then
275 - einfo "Try to apply Ovmf patch set"
276 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
277 - eapply "${WORKDIR}"/patches-ovmf
278 - popd > /dev/null
279 - fi
280 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
281 - fi
282 -
283 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
284 -
285 - # Fix texi2html build error with new texi2html, qemu.doc.html
286 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
287 -
288 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
289 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
290 - -i tools/firmware/Makefile || die
291 -
292 - # Drop .config, fixes to gcc-4.6
293 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
294 -
295 - # if the user *really* wants to use their own custom-cflags, let them
296 - if use custom-cflags; then
297 - einfo "User wants their own CFLAGS - removing defaults"
298 -
299 - # try and remove all the default cflags
300 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
301 - -exec sed \
302 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
303 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
304 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
305 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
306 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
307 - -i {} + || die "failed to re-set custom-cflags"
308 - else
309 - unset CFLAGS
310 - unset LDFLAGS
311 - unset ASFLAGS
312 - unset CPPFLAGS
313 - fi
314 -
315 - if ! use pygrub; then
316 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
317 - fi
318 -
319 - if ! use python; then
320 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
321 - fi
322 -
323 - if ! use hvm; then
324 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
325 - # Bug 351648
326 - elif ! use x86 && ! has x86 $(get_all_abis); then
327 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
328 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
329 - export CPATH="${WORKDIR}"/extra-headers
330 - fi
331 -
332 - if use qemu; then
333 - if use sdl; then
334 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
335 - tools/Makefile || die
336 - else
337 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
338 - tools/qemu-xen-traditional/xen-setup || die
339 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
340 - tools/Makefile || die
341 - fi
342 - else
343 - # Don't bother with qemu, only needed for fully virtualised guests
344 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
345 - fi
346 -
347 - # Reset bash completion dir; Bug 472438
348 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
349 - -i Config.mk || die
350 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
351 -
352 - # xencommons, Bug #492332, sed lighter weight than patching
353 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
354 - -i tools/hotplug/Linux/init.d/xencommons.in || die
355 -
356 - # fix bashishm
357 - sed -e '/Usage/s/\$//g' \
358 - -i tools/hotplug/Linux/init.d/xendriverdomain.in || die
359 -
360 - # respect multilib, usr/lib/libcacard.so.0.0.0
361 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
362 - -i tools/qemu-xen/configure || die
363 -
364 - #bug 518136, don't build 32bit exactuable for nomultilib profile
365 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
366 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
367 - fi
368 -
369 - # uncomment lines in xl.conf
370 - sed -e 's:^#autoballoon=:autoballoon=:' \
371 - -e 's:^#lockfile=:lockfile=:' \
372 - -e 's:^#vif.default.script=:vif.default.script=:' \
373 - -i tools/examples/xl.conf || die
374 -
375 - default
376 -}
377 -
378 -src_configure() {
379 - local myconf="--prefix=${PREFIX}/usr \
380 - --libdir=${PREFIX}/usr/$(get_libdir) \
381 - --libexecdir=${PREFIX}/usr/libexec \
382 - --localstatedir=${EPREFIX}/var \
383 - --disable-werror \
384 - --disable-xen \
385 - --enable-tools \
386 - --enable-docs \
387 - $(use_enable pam) \
388 - $(use_enable api xenapi) \
389 - $(use_enable ovmf) \
390 - $(use_enable ocaml ocamltools) \
391 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
392 - "
393 -
394 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
395 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
396 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
397 - econf ${myconf}
398 -}
399 -
400 -src_compile() {
401 - local myopt
402 - use debug && myopt="${myopt} debug=y"
403 -
404 - if test-flag-CC -fno-strict-overflow; then
405 - append-flags -fno-strict-overflow
406 - fi
407 -
408 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt}
409 -
410 - if use doc; then
411 - emake -C docs build
412 - else
413 - emake -C docs man-pages
414 - fi
415 -}
416 -
417 -src_install() {
418 - # Override auto-detection in the build system, bug #382573
419 - export INITD_DIR=/tmp/init.d
420 - export CONFIG_LEAF_DIR=../tmp/default
421 -
422 - # Let the build system compile installed Python modules.
423 - local PYTHONDONTWRITEBYTECODE
424 - export PYTHONDONTWRITEBYTECODE
425 -
426 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
427 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
428 -
429 - # Created at runtime
430 - rm -rv "${ED%/}/var/run" || die
431 -
432 - # Fix the remaining Python shebangs.
433 - python_fix_shebang "${D}"
434 -
435 - # Remove RedHat-specific stuff
436 - rm -rf "${D}"tmp || die
437 -
438 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
439 - use doc && dodoc -r docs/{pdf,txt}
440 - dodoc ${DOCS[@]}
441 -
442 - newconfd "${FILESDIR}"/xendomains.confd xendomains
443 - newconfd "${FILESDIR}"/xenstored.confd xenstored
444 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
445 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
446 - newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
447 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
448 - newinitd "${FILESDIR}"/xencommons.initd xencommons
449 - newconfd "${FILESDIR}"/xencommons.confd xencommons
450 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
451 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
452 - newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
453 -
454 - if use screen; then
455 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
456 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
457 - keepdir /var/log/xen-consoles
458 - fi
459 -
460 - # For -static-libs wrt Bug 384355
461 - if ! use static-libs; then
462 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
463 - fi
464 -
465 - # for xendomains
466 - keepdir /etc/xen/auto
467 -
468 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
469 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
470 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
471 -}
472 -
473 -pkg_postinst() {
474 - elog "Official Xen Guide and the offical wiki page:"
475 - elog "https://wiki.gentoo.org/wiki/Xen"
476 - elog "https://wiki.xen.org/wiki/Main_Page"
477 - elog ""
478 - elog "Recommended to utilise the xencommons script to config sytem At boot"
479 - elog "Add by use of rc-update on completion of the install"
480 -
481 - if ! use hvm; then
482 - echo
483 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
484 - elog "support enable the hvm use flag."
485 - elog "An x86 or amd64 system is required to build HVM support."
486 - fi
487 -
488 - if use qemu; then
489 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
490 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
491 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
492 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
493 - fi
494 -}
495
496 diff --git a/app-emulation/xen-tools/xen-tools-4.9.1-r2.ebuild b/app-emulation/xen-tools/xen-tools-4.9.1-r2.ebuild
497 deleted file mode 100644
498 index 191c3222dbe..00000000000
499 --- a/app-emulation/xen-tools/xen-tools-4.9.1-r2.ebuild
500 +++ /dev/null
501 @@ -1,455 +0,0 @@
502 -# Copyright 1999-2018 Gentoo Foundation
503 -# Distributed under the terms of the GNU General Public License v2
504 -
505 -EAPI=6
506 -
507 -PYTHON_COMPAT=( python2_7 )
508 -PYTHON_REQ_USE='ncurses,xml,threads'
509 -
510 -inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs versionator
511 -
512 -MY_PV=${PV/_/-}
513 -MAJOR_V="$(get_version_component_range 1-2)"
514 -
515 -if [[ $PV == *9999 ]]; then
516 - inherit git-r3
517 - KEYWORDS=""
518 - REPO="xen.git"
519 - EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
520 - S="${WORKDIR}/${REPO}"
521 -else
522 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
523 - UPSTREAM_VER=2
524 - SECURITY_VER=
525 - # xen-tools's gentoo patches tarball
526 - GENTOO_VER=12
527 - # xen-tools's gentoo patches version which apply to this specific ebuild
528 - GENTOO_GPV=1
529 - # xen-tools ovmf's patches
530 - OVMF_VER=3
531 -
532 - SEABIOS_VER=1.10.0
533 - # OVMF upstream 5920a9d16b1ab887c2858224316a98e961d71b05
534 - OVMF_PV=20170321
535 -
536 - [[ -n ${UPSTREAM_VER} ]] && \
537 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
538 - [[ -n ${SECURITY_VER} ]] && \
539 - SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
540 - [[ -n ${GENTOO_VER} ]] && \
541 - GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz
542 - https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
543 - [[ -n ${OVMF_VER} ]] && \
544 - OVMF_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
545 -
546 - SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/xen-${MY_PV}.tar.gz
547 - http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
548 - https://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
549 - ovmf? ( https://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.xz
550 - ${OVMF_PATCHSET_URI} )
551 - ${UPSTREAM_PATCHSET_URI}
552 - ${SECURITY_PATCHSET_URI}
553 - ${GENTOO_PATCHSET_URI}"
554 -
555 - S="${WORKDIR}/xen-${MY_PV}"
556 -fi
557 -
558 -DESCRIPTION="Xen tools including QEMU and xl"
559 -HOMEPAGE="https://www.xenproject.org"
560 -DOCS=( README docs/README.xen-bugtool )
561 -
562 -LICENSE="GPL-2"
563 -SLOT="0/${MAJOR_V}"
564 -# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
565 -# >=dev-lang/ocaml-4 stable
566 -# Masked in profiles/eapi-5-files instead
567 -IUSE="api custom-cflags debug doc flask hvm ocaml ovmf +pam pygrub python +qemu +qemu-traditional screen sdl static-libs system-qemu system-seabios"
568 -
569 -REQUIRED_USE="
570 - ${PYTHON_REQUIRED_USE}
571 - pygrub? ( python )
572 - ovmf? ( hvm )
573 - ^^ ( qemu system-qemu )"
574 -
575 -COMMON_DEPEND="
576 - sys-apps/pciutils
577 - dev-libs/lzo:2
578 - dev-libs/glib:2
579 - dev-libs/yajl
580 - dev-libs/libaio
581 - dev-libs/libgcrypt:0
582 - sys-libs/zlib
583 - ${PYTHON_DEPS}
584 -"
585 -
586 -DEPEND="${COMMON_DEPEND}
587 - >=sys-kernel/linux-headers-4.11
588 - dev-python/lxml[${PYTHON_USEDEP}]
589 - x86? ( sys-devel/dev86
590 - sys-power/iasl )
591 - pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
592 - api? ( dev-libs/libxml2
593 - net-misc/curl )
594 - ovmf? (
595 - !arm? ( !arm64? ( dev-lang/nasm ) )
596 - $(python_gen_impl_dep sqlite)
597 - )
598 - !amd64? ( >=sys-apps/dtc-1.4.0 )
599 - amd64? ( sys-devel/bin86
600 - system-seabios? ( sys-firmware/seabios )
601 - sys-firmware/ipxe
602 - sys-devel/dev86
603 - sys-power/iasl )
604 - dev-lang/perl
605 - app-misc/pax-utils
606 - doc? (
607 - app-text/ghostscript-gpl
608 - app-text/pandoc
609 - dev-python/markdown[${PYTHON_USEDEP}]
610 - dev-texlive/texlive-latexextra
611 - media-gfx/transfig
612 - )
613 - hvm? ( x11-base/xorg-proto
614 - !net-libs/libiscsi )
615 - qemu? (
616 - app-arch/snappy:=
617 - x11-libs/pixman
618 - sdl? ( media-libs/libsdl[X] )
619 - )
620 - system-qemu? ( app-emulation/qemu[xen] )
621 - ocaml? ( dev-ml/findlib
622 - >=dev-lang/ocaml-4 )"
623 -
624 -RDEPEND="${COMMON_DEPEND}
625 - sys-apps/iproute2[-minimal]
626 - net-misc/bridge-utils
627 - screen? (
628 - app-misc/screen
629 - app-admin/logrotate
630 - )"
631 -
632 -# hvmloader is used to bootstrap a fully virtualized kernel
633 -# Approved by QA team in bug #144032
634 -QA_WX_LOAD="
635 - usr/libexec/xen/boot/hvmloader
636 - usr/share/qemu-xen/qemu/s390-ccw.img
637 - usr/share/qemu-xen/qemu/u-boot.e500
638 -"
639 -
640 -QA_PREBUILT="
641 - usr/libexec/xen/bin/ivshmem-client
642 - usr/libexec/xen/bin/ivshmem-server
643 - usr/libexec/xen/bin/qemu-img
644 - usr/libexec/xen/bin/qemu-io
645 - usr/libexec/xen/bin/qemu-nbd
646 - usr/libexec/xen/bin/qemu-system-i386
647 - usr/libexec/xen/bin/virtfs-proxy-helper
648 - usr/libexec/xen/libexec/xen-bridge-helper
649 - usr/share/qemu-xen/qemu/s390-ccw.img
650 - usr/share/qemu-xen/qemu/u-boot.e500
651 -"
652 -
653 -RESTRICT="test"
654 -
655 -pkg_setup() {
656 - python_setup
657 - export "CONFIG_LOMOUNT=y"
658 -
659 - #bug 522642, disable compile tools/tests
660 - export "CONFIG_TESTS=n"
661 -
662 - if [[ -z ${XEN_TARGET_ARCH} ]] ; then
663 - if use x86 && use amd64; then
664 - die "Confusion! Both x86 and amd64 are set in your use flags!"
665 - elif use x86; then
666 - export XEN_TARGET_ARCH="x86_32"
667 - elif use amd64 ; then
668 - export XEN_TARGET_ARCH="x86_64"
669 - elif use arm; then
670 - export XEN_TARGET_ARCH="arm32"
671 - elif use arm64; then
672 - export XEN_TARGET_ARCH="arm64"
673 - else
674 - die "Unsupported architecture!"
675 - fi
676 - fi
677 -}
678 -
679 -src_prepare() {
680 - local i
681 -
682 - # Upstream's patchset
683 - if [[ -n ${UPSTREAM_VER} ]]; then
684 - einfo "Try to apply Xen Upstream patch set"
685 - eapply "${WORKDIR}"/patches-upstream
686 - fi
687 -
688 - # Security patchset
689 - if [[ -n ${SECURITY_VER} ]]; then
690 - einfo "Try to apply Xen Security patch set"
691 - # apply main xen patches
692 - # Two parallel systems, both work side by side
693 - # Over time they may concdense into one. This will suffice for now
694 - EPATCH_SUFFIX="patch"
695 - EPATCH_FORCE="yes"
696 -
697 - source "${WORKDIR}"/patches-security/${PV}.conf || die
698 -
699 - for i in ${XEN_SECURITY_MAIN}; do
700 - eapply "${WORKDIR}"/patches-security/xen/$i
701 - done
702 -
703 - # apply qemu-xen/upstream patches
704 - pushd "${S}"/tools/qemu-xen/ > /dev/null
705 - for i in ${XEN_SECURITY_QEMUU}; do
706 - eapply "${WORKDIR}"/patches-security/qemuu/$i
707 - done
708 - popd > /dev/null
709 -
710 - # apply qemu-traditional patches
711 - pushd "${S}"/tools/qemu-xen-traditional/ > /dev/null
712 - for i in ${XEN_SECURITY_QEMUT}; do
713 - eapply "${WORKDIR}"/patches-security/qemut/$i
714 - done
715 - popd > /dev/null
716 - fi
717 -
718 - # move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
719 - mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
720 - pushd tools/firmware/ > /dev/null
721 - ln -s seabios-dir-remote seabios-dir || die
722 - popd > /dev/null
723 -
724 - # Gentoo's patchset
725 - if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
726 - einfo "Try to apply Gentoo specific patch set"
727 - source "${FILESDIR}"/gentoo-patches.conf || die
728 - _gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
729 - for i in ${!_gpv}; do
730 - eapply "${WORKDIR}"/patches-gentoo/$i
731 - done
732 - fi
733 -
734 - # Ovmf's patchset
735 - if use ovmf; then
736 - if [[ -n ${OVMF_VER} ]];then
737 - einfo "Try to apply Ovmf patch set"
738 - pushd "${WORKDIR}"/ovmf-*/ > /dev/null
739 - eapply "${WORKDIR}"/patches-ovmf
740 - popd > /dev/null
741 - fi
742 - mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
743 - fi
744 -
745 - mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
746 -
747 - # Fix texi2html build error with new texi2html, qemu.doc.html
748 - sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
749 -
750 - use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
751 - sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
752 - -i tools/firmware/Makefile || die
753 -
754 - # Drop .config, fixes to gcc-4.6
755 - sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
756 -
757 - # if the user *really* wants to use their own custom-cflags, let them
758 - if use custom-cflags; then
759 - einfo "User wants their own CFLAGS - removing defaults"
760 -
761 - # try and remove all the default cflags
762 - find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
763 - -exec sed \
764 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
765 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
766 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
767 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
768 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
769 - -i {} + || die "failed to re-set custom-cflags"
770 - else
771 - unset CFLAGS
772 - unset LDFLAGS
773 - unset ASFLAGS
774 - unset CPPFLAGS
775 - fi
776 -
777 - if ! use pygrub; then
778 - sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
779 - fi
780 -
781 - if ! use python; then
782 - sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
783 - fi
784 -
785 - if ! use hvm; then
786 - sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
787 - # Bug 351648
788 - elif ! use x86 && ! has x86 $(get_all_abis); then
789 - mkdir -p "${WORKDIR}"/extra-headers/gnu || die
790 - touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
791 - export CPATH="${WORKDIR}"/extra-headers
792 - fi
793 -
794 - if use qemu; then
795 - if use sdl; then
796 - sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
797 - tools/Makefile || die
798 - else
799 - sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
800 - tools/qemu-xen-traditional/xen-setup || die
801 - sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
802 - tools/Makefile || die
803 - fi
804 - else
805 - # Don't bother with qemu, only needed for fully virtualised guests
806 - sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
807 - fi
808 -
809 - # Reset bash completion dir; Bug 472438
810 - sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
811 - -i Config.mk || die
812 - sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
813 -
814 - # xencommons, Bug #492332, sed lighter weight than patching
815 - sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
816 - -i tools/hotplug/Linux/init.d/xencommons.in || die
817 -
818 - # fix bashishm
819 - sed -e '/Usage/s/\$//g' \
820 - -i tools/hotplug/Linux/init.d/xendriverdomain.in || die
821 -
822 - # respect multilib, usr/lib/libcacard.so.0.0.0
823 - sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
824 - -i tools/qemu-xen/configure || die
825 -
826 - #bug 518136, don't build 32bit exactuable for nomultilib profile
827 - if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
828 - sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
829 - fi
830 -
831 - # uncomment lines in xl.conf
832 - sed -e 's:^#autoballoon=:autoballoon=:' \
833 - -e 's:^#lockfile=:lockfile=:' \
834 - -e 's:^#vif.default.script=:vif.default.script=:' \
835 - -i tools/examples/xl.conf || die
836 -
837 - default
838 -}
839 -
840 -src_configure() {
841 - local myconf="--prefix=${PREFIX}/usr \
842 - --libdir=${PREFIX}/usr/$(get_libdir) \
843 - --libexecdir=${PREFIX}/usr/libexec \
844 - --localstatedir=${EPREFIX}/var \
845 - --disable-werror \
846 - --disable-xen \
847 - --enable-tools \
848 - --enable-docs \
849 - $(use_enable pam) \
850 - $(use_enable api xenapi) \
851 - $(use_enable ovmf) \
852 - $(use_enable ocaml ocamltools) \
853 - --with-xenstored=$(usex ocaml 'oxenstored' 'xenstored') \
854 - "
855 -
856 - use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
857 - use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
858 - use amd64 && myconf+=" $(use_enable qemu-traditional)"
859 - econf ${myconf}
860 -}
861 -
862 -src_compile() {
863 - local myopt
864 - use debug && myopt="${myopt} debug=y"
865 -
866 - if test-flag-CC -fno-strict-overflow; then
867 - append-flags -fno-strict-overflow
868 - fi
869 -
870 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" build-tools ${myopt}
871 -
872 - if use doc; then
873 - emake -C docs build
874 - else
875 - emake -C docs man-pages
876 - fi
877 -}
878 -
879 -src_install() {
880 - # Override auto-detection in the build system, bug #382573
881 - export INITD_DIR=/tmp/init.d
882 - export CONFIG_LEAF_DIR=../tmp/default
883 -
884 - # Let the build system compile installed Python modules.
885 - local PYTHONDONTWRITEBYTECODE
886 - export PYTHONDONTWRITEBYTECODE
887 -
888 - emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
889 - XEN_PYTHON_NATIVE_INSTALL=y install-tools
890 -
891 - # Created at runtime
892 - rm -rv "${ED%/}/var/run" || die
893 -
894 - # Fix the remaining Python shebangs.
895 - python_fix_shebang "${D}"
896 -
897 - # Remove RedHat-specific stuff
898 - rm -rf "${D}"tmp || die
899 -
900 - emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
901 - use doc && dodoc -r docs/{pdf,txt}
902 - dodoc ${DOCS[@]}
903 -
904 - newconfd "${FILESDIR}"/xendomains.confd xendomains
905 - newconfd "${FILESDIR}"/xenstored.confd xenstored
906 - newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
907 - newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
908 - newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
909 - newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
910 - newinitd "${FILESDIR}"/xencommons.initd xencommons
911 - newconfd "${FILESDIR}"/xencommons.confd xencommons
912 - newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
913 - newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
914 - newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
915 -
916 - if use screen; then
917 - cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
918 - cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
919 - keepdir /var/log/xen-consoles
920 - fi
921 -
922 - # For -static-libs wrt Bug 384355
923 - if ! use static-libs; then
924 - rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
925 - fi
926 -
927 - # for xendomains
928 - keepdir /etc/xen/auto
929 -
930 - # Remove files failing QA AFTER emake installs them, avoiding seeking absent files
931 - find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
932 - -o -name openbios-ppc -o -name palcode-clipper \) -delete || die
933 -}
934 -
935 -pkg_postinst() {
936 - elog "Official Xen Guide and the offical wiki page:"
937 - elog "https://wiki.gentoo.org/wiki/Xen"
938 - elog "https://wiki.xen.org/wiki/Main_Page"
939 - elog ""
940 - elog "Recommended to utilise the xencommons script to config sytem At boot"
941 - elog "Add by use of rc-update on completion of the install"
942 -
943 - if ! use hvm; then
944 - echo
945 - elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
946 - elog "support enable the hvm use flag."
947 - elog "An x86 or amd64 system is required to build HVM support."
948 - fi
949 -
950 - if use qemu; then
951 - elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
952 - elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
953 - elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
954 - elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
955 - fi
956 -}