1 |
commit: a267fc2d5285eccbc3e468e6684f9547a521cf5a |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 18:31:44 2017 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 18:35:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a267fc2d |
7 |
|
8 |
app-emulation/xen: security cleanup |
9 |
|
10 |
Gentoo-Bug: 607840 |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
app-emulation/xen/Manifest | 1 - |
15 |
app-emulation/xen/xen-4.7.1-r4.ebuild | 193 ---------------------------------- |
16 |
app-emulation/xen/xen-4.8.0-r1.ebuild | 193 ---------------------------------- |
17 |
3 files changed, 387 deletions(-) |
18 |
|
19 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
20 |
index 4b72ae53f1..df0b221f5f 100644 |
21 |
--- a/app-emulation/xen/Manifest |
22 |
+++ b/app-emulation/xen/Manifest |
23 |
@@ -1,5 +1,4 @@ |
24 |
DIST xen-4.7.1-upstream-patches-0.tar.xz 16420 SHA256 cb4724fedadc408ec390f99e9928a44ec75e793fb55cb97793f09980855b6a32 SHA512 79e117c48c6cc3d5783c818218ac11ec494735ce89755b5e263a64c23fb1f0a425bc65b567a24ce2e348b6e3839b26133c7e2c36411e5cc7acb54b855149dfbe WHIRLPOOL 982165da62cbb28cd72d32662c366ca7dac91a511b356eb58bced4b4af5cbc0d94c7e280a2400e5d9c92938d2afee86abd7c688926c2b9cb191d4554be828844 |
25 |
DIST xen-4.7.1.tar.gz 20706864 SHA256 e87f4b0575e78657ee23d31470a15ecf1ce8c3a92a771cda46bbcd4d0d671ffe SHA512 eb03244f5fa7b54402fcc1d38f1e69c0ea4536d5ab2f9859b41b5e94920ad9db20fb146e3c3d3635e9ca1d12e93ce0429e57f24bf53d4a2c4b69babc76ec724e WHIRLPOOL 5d7ba29ea58bdedb6a237f7cb1c0aacf361dc35ebb07ec8e55773e07b1f38c1b151615b526e14daeca7c2db235114bde0b6d124219e8818c6e529873b5151fec |
26 |
DIST xen-4.8.0.tar.gz 22499917 SHA256 1e15c713ab7ba3bfda8b4a285ed973529364fd1100e6dd5a61f29583dc667b04 SHA512 70b95553f9813573b12e52999a4df8701dec430f23c36a8dc70d25a46bb4bc9234e5b7feb74a04062af4c8d6b6bcfe947d90b2b172416206812e54bac9797454 WHIRLPOOL 1296c25a05e3ab81730a2587ea1c07c7c022f05cfefc580224185c8d5fc9853531031c1292f69eff944ae2752492c4b95f13e160be3c449a7626aeadf1a21102 |
27 |
-DIST xen-security-patches-20.tar.xz 5608 SHA256 5bb4b6d93a07a3aa74497848ecdc9b7f0729f38d8a3e90d964c9aa85851ebfba SHA512 17171ca9f212153e49636c84455ec034b08e73be26f912e43995ac245d1927e6d4aa97a160f96d55f05e2c19c44d7ed8617ad10d8f4f27dc75f8f936624f73ce WHIRLPOOL 68e6f0033102298c31bdca88ac426fbcf3ee986250795404cead9e7577cf9bdb73c153f01d40b5cac31a2e845d862fe1dfcbb9022b550abb00779cf784f9b523 |
28 |
DIST xen-security-patches-21.tar.xz 6888 SHA256 76e43fb4c41a606cb1a5e56045dedff0ed3c94b535d89a736664965ee4a44699 SHA512 eb889d90630b6a7c4b9785bf8c2db1d83c7878cec3aa125601b38f75f70a965e52aa5003024feec40d35ee940975dfd766eeb806cdcff717991876d50ce0839b WHIRLPOOL 9039cc7410fbb0e36e1ab74d597c7b1075f92e43b9d22bcb198c0594a0802fca50f86a9fa4343cea83a68eacd6acb6fa0ef73fbd20c19a27f5e92c3f32711af8 |
29 |
|
30 |
diff --git a/app-emulation/xen/xen-4.7.1-r4.ebuild b/app-emulation/xen/xen-4.7.1-r4.ebuild |
31 |
deleted file mode 100644 |
32 |
index e91c520b83..0000000000 |
33 |
--- a/app-emulation/xen/xen-4.7.1-r4.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,193 +0,0 @@ |
36 |
-# Copyright 1999-2016 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
-# $Id$ |
39 |
- |
40 |
-EAPI=5 |
41 |
- |
42 |
-PYTHON_COMPAT=( python2_7 ) |
43 |
- |
44 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
45 |
- |
46 |
-MY_PV=${PV/_/-} |
47 |
-MY_P=${PN}-${PV/_/-} |
48 |
- |
49 |
-if [[ $PV == *9999 ]]; then |
50 |
- inherit git-r3 |
51 |
- KEYWORDS="" |
52 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
53 |
- SRC_URI="" |
54 |
-else |
55 |
- KEYWORDS="amd64 ~arm -x86" |
56 |
- UPSTREAM_VER=0 |
57 |
- SECURITY_VER=20 |
58 |
- GENTOO_VER= |
59 |
- |
60 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
61 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
62 |
- [[ -n ${SECURITY_VER} ]] && \ |
63 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
64 |
- [[ -n ${GENTOO_VER} ]] && \ |
65 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
66 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
67 |
- ${UPSTREAM_PATCHSET_URI} |
68 |
- ${SECURITY_PATCHSET_URI} |
69 |
- ${GENTOO_PATCHSET_URI}" |
70 |
-fi |
71 |
- |
72 |
-DESCRIPTION="The Xen virtual machine monitor" |
73 |
-HOMEPAGE="http://xen.org/" |
74 |
-LICENSE="GPL-2" |
75 |
-SLOT="0" |
76 |
-IUSE="custom-cflags debug efi flask" |
77 |
- |
78 |
-DEPEND="${PYTHON_DEPS} |
79 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
80 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
81 |
-RDEPEND="" |
82 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
83 |
- |
84 |
-# no tests are available for the hypervisor |
85 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
86 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
87 |
-RESTRICT="test splitdebug strip" |
88 |
- |
89 |
-# Approved by QA team in bug #144032 |
90 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
91 |
- |
92 |
-REQUIRED_USE="arm? ( debug )" |
93 |
- |
94 |
-S="${WORKDIR}/${MY_P}" |
95 |
- |
96 |
-pkg_setup() { |
97 |
- python-any-r1_pkg_setup |
98 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
99 |
- if use amd64; then |
100 |
- export XEN_TARGET_ARCH="x86_64" |
101 |
- elif use arm; then |
102 |
- export XEN_TARGET_ARCH="arm32" |
103 |
- elif use arm64; then |
104 |
- export XEN_TARGET_ARCH="arm64" |
105 |
- else |
106 |
- die "Unsupported architecture!" |
107 |
- fi |
108 |
- fi |
109 |
- |
110 |
- if use flask ; then |
111 |
- export "XSM_ENABLE=y" |
112 |
- export "FLASK_ENABLE=y" |
113 |
- fi |
114 |
-} |
115 |
- |
116 |
-src_prepare() { |
117 |
- # Upstream's patchset |
118 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
119 |
- EPATCH_SUFFIX="patch" \ |
120 |
- EPATCH_FORCE="yes" \ |
121 |
- EPATCH_OPTS="-p1" \ |
122 |
- epatch "${WORKDIR}"/patches-upstream |
123 |
- fi |
124 |
- |
125 |
- # Security patchset |
126 |
- if [[ -n ${SECURITY_VER} ]]; then |
127 |
- einfo "Try to apply Xen Security patch set" |
128 |
- # apply main xen patches |
129 |
- # Two parallel systems, both work side by side |
130 |
- # Over time they may concdense into one. This will suffice for now |
131 |
- EPATCH_SUFFIX="patch" |
132 |
- EPATCH_FORCE="yes" |
133 |
- |
134 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
135 |
- |
136 |
- for i in ${XEN_SECURITY_MAIN}; do |
137 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
138 |
- done |
139 |
- fi |
140 |
- |
141 |
- # Gentoo's patchset |
142 |
- if [[ -n ${GENTOO_VER} ]]; then |
143 |
- EPATCH_SUFFIX="patch" \ |
144 |
- EPATCH_FORCE="yes" \ |
145 |
- epatch "${WORKDIR}"/patches-gentoo |
146 |
- fi |
147 |
- |
148 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
149 |
- |
150 |
- # Drop .config |
151 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
152 |
- |
153 |
- if use efi; then |
154 |
- export EFI_VENDOR="gentoo" |
155 |
- export EFI_MOUNTPOINT="boot" |
156 |
- fi |
157 |
- |
158 |
- # if the user *really* wants to use their own custom-cflags, let them |
159 |
- if use custom-cflags; then |
160 |
- einfo "User wants their own CFLAGS - removing defaults" |
161 |
- # try and remove all the default custom-cflags |
162 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
163 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
164 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
165 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
166 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
167 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
168 |
- -i {} \; || die "failed to re-set custom-cflags" |
169 |
- fi |
170 |
- |
171 |
- # remove -Werror for gcc-4.6's sake |
172 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
173 |
- xargs sed -i 's/ *-Werror */ /' |
174 |
- # not strictly necessary to fix this |
175 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
176 |
- |
177 |
- # Bug #575868 converted to a sed statement, typo of one char |
178 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
179 |
- |
180 |
- epatch_user |
181 |
-} |
182 |
- |
183 |
-src_configure() { |
184 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
185 |
- |
186 |
- use debug && myopt="${myopt} debug=y" |
187 |
- |
188 |
- if use custom-cflags; then |
189 |
- filter-flags -fPIE -fstack-protector |
190 |
- replace-flags -O3 -O2 |
191 |
- else |
192 |
- unset CFLAGS |
193 |
- unset LDFLAGS |
194 |
- unset ASFLAGS |
195 |
- fi |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- # Send raw LDFLAGS so that --as-needed works |
200 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
201 |
-} |
202 |
- |
203 |
-src_install() { |
204 |
- local myopt |
205 |
- use debug && myopt="${myopt} debug=y" |
206 |
- |
207 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
208 |
- if use efi; then |
209 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
210 |
- fi |
211 |
- |
212 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
213 |
- |
214 |
- # make install likes to throw in some extra EFI bits if it built |
215 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
216 |
-} |
217 |
- |
218 |
-pkg_postinst() { |
219 |
- elog "Official Xen Guide and the unoffical wiki page:" |
220 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
221 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
222 |
- |
223 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
224 |
- |
225 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
226 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
227 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
228 |
-} |
229 |
|
230 |
diff --git a/app-emulation/xen/xen-4.8.0-r1.ebuild b/app-emulation/xen/xen-4.8.0-r1.ebuild |
231 |
deleted file mode 100644 |
232 |
index 28479d7a29..0000000000 |
233 |
--- a/app-emulation/xen/xen-4.8.0-r1.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,193 +0,0 @@ |
236 |
-# Copyright 1999-2016 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
-# $Id$ |
239 |
- |
240 |
-EAPI=5 |
241 |
- |
242 |
-PYTHON_COMPAT=( python2_7 ) |
243 |
- |
244 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
245 |
- |
246 |
-MY_PV=${PV/_/-} |
247 |
-MY_P=${PN}-${PV/_/-} |
248 |
- |
249 |
-if [[ $PV == *9999 ]]; then |
250 |
- inherit git-r3 |
251 |
- KEYWORDS="" |
252 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
253 |
- SRC_URI="" |
254 |
-else |
255 |
- KEYWORDS="~amd64 ~arm -x86" |
256 |
- UPSTREAM_VER= |
257 |
- SECURITY_VER=20 |
258 |
- GENTOO_VER= |
259 |
- |
260 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
261 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
262 |
- [[ -n ${SECURITY_VER} ]] && \ |
263 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
264 |
- [[ -n ${GENTOO_VER} ]] && \ |
265 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
266 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
267 |
- ${UPSTREAM_PATCHSET_URI} |
268 |
- ${SECURITY_PATCHSET_URI} |
269 |
- ${GENTOO_PATCHSET_URI}" |
270 |
-fi |
271 |
- |
272 |
-DESCRIPTION="The Xen virtual machine monitor" |
273 |
-HOMEPAGE="http://xen.org/" |
274 |
-LICENSE="GPL-2" |
275 |
-SLOT="0" |
276 |
-IUSE="custom-cflags debug efi flask" |
277 |
- |
278 |
-DEPEND="${PYTHON_DEPS} |
279 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
280 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
281 |
-RDEPEND="" |
282 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
283 |
- |
284 |
-# no tests are available for the hypervisor |
285 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
286 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
287 |
-RESTRICT="test splitdebug strip" |
288 |
- |
289 |
-# Approved by QA team in bug #144032 |
290 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
291 |
- |
292 |
-REQUIRED_USE="arm? ( debug )" |
293 |
- |
294 |
-S="${WORKDIR}/${MY_P}" |
295 |
- |
296 |
-pkg_setup() { |
297 |
- python-any-r1_pkg_setup |
298 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
299 |
- if use amd64; then |
300 |
- export XEN_TARGET_ARCH="x86_64" |
301 |
- elif use arm; then |
302 |
- export XEN_TARGET_ARCH="arm32" |
303 |
- elif use arm64; then |
304 |
- export XEN_TARGET_ARCH="arm64" |
305 |
- else |
306 |
- die "Unsupported architecture!" |
307 |
- fi |
308 |
- fi |
309 |
- |
310 |
- if use flask ; then |
311 |
- export "XSM_ENABLE=y" |
312 |
- export "FLASK_ENABLE=y" |
313 |
- fi |
314 |
-} |
315 |
- |
316 |
-src_prepare() { |
317 |
- # Upstream's patchset |
318 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
319 |
- EPATCH_SUFFIX="patch" \ |
320 |
- EPATCH_FORCE="yes" \ |
321 |
- EPATCH_OPTS="-p1" \ |
322 |
- epatch "${WORKDIR}"/patches-upstream |
323 |
- fi |
324 |
- |
325 |
- # Security patchset |
326 |
- if [[ -n ${SECURITY_VER} ]]; then |
327 |
- einfo "Try to apply Xen Security patch set" |
328 |
- # apply main xen patches |
329 |
- # Two parallel systems, both work side by side |
330 |
- # Over time they may concdense into one. This will suffice for now |
331 |
- EPATCH_SUFFIX="patch" |
332 |
- EPATCH_FORCE="yes" |
333 |
- |
334 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
335 |
- |
336 |
- for i in ${XEN_SECURITY_MAIN}; do |
337 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
338 |
- done |
339 |
- fi |
340 |
- |
341 |
- # Gentoo's patchset |
342 |
- if [[ -n ${GENTOO_VER} ]]; then |
343 |
- EPATCH_SUFFIX="patch" \ |
344 |
- EPATCH_FORCE="yes" \ |
345 |
- epatch "${WORKDIR}"/patches-gentoo |
346 |
- fi |
347 |
- |
348 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
349 |
- |
350 |
- # Drop .config |
351 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
352 |
- |
353 |
- if use efi; then |
354 |
- export EFI_VENDOR="gentoo" |
355 |
- export EFI_MOUNTPOINT="boot" |
356 |
- fi |
357 |
- |
358 |
- # if the user *really* wants to use their own custom-cflags, let them |
359 |
- if use custom-cflags; then |
360 |
- einfo "User wants their own CFLAGS - removing defaults" |
361 |
- # try and remove all the default custom-cflags |
362 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
363 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
364 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
365 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
366 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
367 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
368 |
- -i {} \; || die "failed to re-set custom-cflags" |
369 |
- fi |
370 |
- |
371 |
- # remove -Werror for gcc-4.6's sake |
372 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
373 |
- xargs sed -i 's/ *-Werror */ /' |
374 |
- # not strictly necessary to fix this |
375 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
376 |
- |
377 |
- # Bug #575868 converted to a sed statement, typo of one char |
378 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
379 |
- |
380 |
- epatch_user |
381 |
-} |
382 |
- |
383 |
-src_configure() { |
384 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
385 |
- |
386 |
- use debug && myopt="${myopt} debug=y" |
387 |
- |
388 |
- if use custom-cflags; then |
389 |
- filter-flags -fPIE -fstack-protector |
390 |
- replace-flags -O3 -O2 |
391 |
- else |
392 |
- unset CFLAGS |
393 |
- unset LDFLAGS |
394 |
- unset ASFLAGS |
395 |
- fi |
396 |
-} |
397 |
- |
398 |
-src_compile() { |
399 |
- # Send raw LDFLAGS so that --as-needed works |
400 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
401 |
-} |
402 |
- |
403 |
-src_install() { |
404 |
- local myopt |
405 |
- use debug && myopt="${myopt} debug=y" |
406 |
- |
407 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
408 |
- if use efi; then |
409 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
410 |
- fi |
411 |
- |
412 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
413 |
- |
414 |
- # make install likes to throw in some extra EFI bits if it built |
415 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
416 |
-} |
417 |
- |
418 |
-pkg_postinst() { |
419 |
- elog "Official Xen Guide and the unoffical wiki page:" |
420 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
421 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
422 |
- |
423 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
424 |
- |
425 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
426 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
427 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
428 |
-} |