diff options
author | Aron Griffis <agriffis@gentoo.org> | 2006-03-24 23:51:03 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2006-03-24 23:51:03 +0000 |
commit | dbae135d56768b0cddb8abab557aabb2d4774dcc (patch) | |
tree | a3a9d193658ee277cd2df1d690818d8c92f63e39 /app-emulation | |
parent | Mark 3.4.3 stable on ia64 (diff) | |
download | historical-dbae135d56768b0cddb8abab557aabb2d4774dcc.tar.gz historical-dbae135d56768b0cddb8abab557aabb2d4774dcc.tar.bz2 historical-dbae135d56768b0cddb8abab557aabb2d4774dcc.zip |
Split xen from xen-tools; now this package only installs the hypervisor and
include files. Unify the release and snapshot ebuilds for easier
maintenance. Switch to a snapshot versioning scheme that keeps
release/snapshot versions in order.
Package-Manager: portage-2.1_pre5-r4
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xen-tools/Manifest | 30 | ||||
-rw-r--r-- | app-emulation/xen/ChangeLog | 12 | ||||
-rw-r--r-- | app-emulation/xen/Manifest | 44 | ||||
-rw-r--r-- | app-emulation/xen/files/digest-xen-3.0.1-r5 | 3 | ||||
-rw-r--r-- | app-emulation/xen/files/digest-xen-3.0.1_p9029 | 3 | ||||
-rw-r--r-- | app-emulation/xen/files/digest-xen-9029-r2 | 1 | ||||
-rw-r--r-- | app-emulation/xen/xen-3.0.1-r5.ebuild | 90 | ||||
-rw-r--r-- | app-emulation/xen/xen-3.0.1_p9029.ebuild | 90 | ||||
-rw-r--r-- | app-emulation/xen/xen-9029-r2.ebuild | 129 |
9 files changed, 268 insertions, 134 deletions
diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest new file mode 100644 index 000000000000..dfd39574a667 --- /dev/null +++ b/app-emulation/xen-tools/Manifest @@ -0,0 +1,30 @@ +MD5 6f9a17ef4901dc620793053be8e27e21 ChangeLog 823 +RMD160 a3e2b8510a8d5dc855a0bbd098d89abfd4757c77 ChangeLog 823 +SHA256 dfed959d15867a3d06b695bd602912a93c6656a58d3377f89779448d06f7c569 ChangeLog 823 +MD5 f286994bc4b6be508d4a9e943b44794b files/digest-xen-tools-3.0.1 235 +RMD160 77a42023b130ceef29f79a0c28742a7e8731eadf files/digest-xen-tools-3.0.1 235 +SHA256 2bdbb205f6f9f9ed4a9a06093a63768214a9d14df48cf32e0f10c2cbfbfb8098 files/digest-xen-tools-3.0.1 235 +MD5 2ddf0133ffa840ddb0ff85770d2a8770 files/digest-xen-tools-3.0.1_p9029 259 +RMD160 79c9eaf49563f42eea950aea8597fa1cc309786e files/digest-xen-tools-3.0.1_p9029 259 +SHA256 a035a6a1cd2752da07db13617674322479f049833240b801f7ad828ddab38557 files/digest-xen-tools-3.0.1_p9029 259 +MD5 0664978b7f05728a0f4ffdbacec90f01 files/xend-conf 357 +RMD160 e2b04f3d7cfb4fa8407adf2a4470e461901f9681 files/xend-conf 357 +SHA256 7edcef347bfd373144140883ff9f38c9ff76614b71d912759fa635fb840911bc files/xend-conf 357 +MD5 b8d59e2eba1f6b245eb22e39c01df78c files/xend-init 854 +RMD160 e19cc95563c3e128255f3575297bc0d35786b5a4 files/xend-init 854 +SHA256 3991a74268dd4bc8b6fe53ed784f3cd764eb7112844dee34f3115bcd15d33377 files/xend-init 854 +MD5 11ef318e35fcfed12931f182fc01955a files/xendomains-conf 180 +RMD160 17f791a0369e9e1f1cbd15c7513a4ca14d3f5f18 files/xendomains-conf 180 +SHA256 78427be48c93ec744206df4dcafaedb584dee8a200efbbc54cba432d96cf0ca3 files/xendomains-conf 180 +MD5 23de87e566971e687ab2a7c2353a3c17 files/xendomains-init 1681 +RMD160 8a274725bee24929b97d5e199da4e5cfd0f3edf5 files/xendomains-init 1681 +SHA256 c3537920096cd94e80024b4d05706cd901f546c54ea8449b45399419b2ca51d0 files/xendomains-init 1681 +MD5 1345a3b29c0fde61a34873dae98c7f34 metadata.xml 344 +RMD160 237bf24416240057f09b2180e143579e22a24859 metadata.xml 344 +SHA256 79ddf2debe775cd0465984dd0d1e706e7b967b0590a3e36aba5b13239586272f metadata.xml 344 +MD5 b1f8f0e495476febe50534f444537871 xen-tools-3.0.1.ebuild 3154 +RMD160 9b3e6c6484199fd6deffb5bc52635b40c14fcb90 xen-tools-3.0.1.ebuild 3154 +SHA256 bb66f7ed98b7e66c6f327887ba159cd6db8f98b752dbc491d61a8b0510f2447f xen-tools-3.0.1.ebuild 3154 +MD5 56d1e65c80e4b19a3b7c96a7945b8d9a xen-tools-3.0.1_p9029.ebuild 3160 +RMD160 d1269d71e1301c8e68bd8c28921fb54c7c735660 xen-tools-3.0.1_p9029.ebuild 3160 +SHA256 5106c30f56211ce2952a270143edb22198d6b144a779251bbad38ac2b009d846 xen-tools-3.0.1_p9029.ebuild 3160 diff --git a/app-emulation/xen/ChangeLog b/app-emulation/xen/ChangeLog index db1f4895b286..42d0e556002f 100644 --- a/app-emulation/xen/ChangeLog +++ b/app-emulation/xen/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for app-emulation/xen # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.28 2006/03/05 17:01:34 chrb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.29 2006/03/24 23:51:03 agriffis Exp $ + +*xen-3.0.1_p9029 (24 Mar 2006) +*xen-3.0.1-r5 (24 Mar 2006) + + 24 Mar 2006; Aron Griffis <agriffis@gentoo.org> +xen-3.0.1-r5.ebuild, + +xen-3.0.1_p9029.ebuild, -xen-9029-r2.ebuild: + Split xen from xen-tools; now this package only installs the hypervisor and + include files. Unify the release and snapshot ebuilds for easier + maintenance. Switch to a snapshot versioning scheme that keeps + release/snapshot versions in order. *xen-9029-r2 (05 Mar 2006) *xen-3.0.1-r4 (05 Mar 2006) diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest index a37dfbbd356a..37e5a9875a88 100644 --- a/app-emulation/xen/Manifest +++ b/app-emulation/xen/Manifest @@ -1,11 +1,49 @@ -MD5 d0e96e1ad4c269e66fa58e4f0f8403a4 ChangeLog 4877 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 367ce3d75df7b2ba0d8ee326a7f0dcd6 ChangeLog 5310 +RMD160 bfcfc98ba4b6fcbdb19102a53a951f67ea2c57cf ChangeLog 5310 +SHA256 cdd64aaa1b6b721871ae40e35eef5c07f476a3af2819962cd7aa535b6de551d9 ChangeLog 5310 MD5 7934c87d6994825fb9e8ff09a531d0ae files/digest-xen-3.0.1-r4 63 -MD5 5ace6b215eeb362c499e447966c429d0 files/digest-xen-9029-r2 71 +RMD160 897e07562d499a7ac4f74f324031738527ae38e2 files/digest-xen-3.0.1-r4 63 +SHA256 b503a88ad3b4457384161967969c3d341ab7f3b09bf0925e925270650fb8d378 files/digest-xen-3.0.1-r4 63 +MD5 f286994bc4b6be508d4a9e943b44794b files/digest-xen-3.0.1-r5 235 +RMD160 77a42023b130ceef29f79a0c28742a7e8731eadf files/digest-xen-3.0.1-r5 235 +SHA256 2bdbb205f6f9f9ed4a9a06093a63768214a9d14df48cf32e0f10c2cbfbfb8098 files/digest-xen-3.0.1-r5 235 +MD5 2ddf0133ffa840ddb0ff85770d2a8770 files/digest-xen-3.0.1_p9029 259 +RMD160 79c9eaf49563f42eea950aea8597fa1cc309786e files/digest-xen-3.0.1_p9029 259 +SHA256 a035a6a1cd2752da07db13617674322479f049833240b801f7ad828ddab38557 files/digest-xen-3.0.1_p9029 259 MD5 cbd69f44ee0f0649253e7ab4af11d909 files/gentoo-makefile-targets 118 +RMD160 0ffa087d15a57377b5a32356bdb4f264e4f04f01 files/gentoo-makefile-targets 118 +SHA256 21f04a03aeeba9862740669f77b846f1c4745e6d1e070e582fb9312b364f2df9 files/gentoo-makefile-targets 118 MD5 16d372298e94a8eef72c1943b1ed5561 files/xend-conf 347 +RMD160 8cc17df2b744342f728f933dea16f61295d52ad0 files/xend-conf 347 +SHA256 3a3f6c87fd4bda91ec944ec7d81e3240e3669f7a089280c5c27385b7062a37ae files/xend-conf 347 MD5 b16cb40a29cb947b2a9b76cc8f9f3894 files/xend-init 844 +RMD160 9d95e22738333da4767c8aa5a53fd993ef79c977 files/xend-init 844 +SHA256 9f6c5f5e3ca65599cccf2058399a2723b1fdf1d58d572e93ba1303c9915ae6f3 files/xend-init 844 MD5 11ef318e35fcfed12931f182fc01955a files/xendomains-conf 180 +RMD160 17f791a0369e9e1f1cbd15c7513a4ca14d3f5f18 files/xendomains-conf 180 +SHA256 78427be48c93ec744206df4dcafaedb584dee8a200efbbc54cba432d96cf0ca3 files/xendomains-conf 180 MD5 a3c0c26c30ce1271b439661b68ca9e74 files/xendomains-init 1671 +RMD160 e2dbb7b4da5ff8be60532e5a393988f47f28c036 files/xendomains-init 1671 +SHA256 19aac7da0ba103ae800ed10b7d151912b3a9476edf63c3651073a197ea291e49 files/xendomains-init 1671 MD5 23ec60d5040f966fda250a47d8903428 metadata.xml 252 +RMD160 b29f688b9ee017b00ff5a8a6a71edc39087c93ad metadata.xml 252 +SHA256 3482ccebd39bcc165316fdbcc79ad9f01922ce91798a7d83455e884e696ac658 metadata.xml 252 MD5 d250b02a29030b2e3ed193ba5109865a xen-3.0.1-r4.ebuild 3005 -MD5 93d94d3fdc8f6d30fc7d4a8c1a49d389 xen-9029-r2.ebuild 3239 +RMD160 9227ddd18faa2ba6ef7130a7121a29ececbacadc xen-3.0.1-r4.ebuild 3005 +SHA256 dcff71432cc2bca2bd85e71c28c59f087184f876862fd2b069828ad3984f5376 xen-3.0.1-r4.ebuild 3005 +MD5 027268f07bd26938772f0aeff8b63fd6 xen-3.0.1-r5.ebuild 2515 +RMD160 e05e1641ea0806b6595787fded6c8b408c97dcf1 xen-3.0.1-r5.ebuild 2515 +SHA256 474b0bab8e03050e0ba35150150c34f2ca872f02ba5b6ee5cf60f4d0e7705807 xen-3.0.1-r5.ebuild 2515 +MD5 8e1b7ff0cd5400347d17a29449b74aee xen-3.0.1_p9029.ebuild 2518 +RMD160 156ea6a0faf23038298b8fb73ccd73cb9b0d0caa xen-3.0.1_p9029.ebuild 2518 +SHA256 79a16b24d2376aa5a3234aa5d0d9095d591b01f84e3ed03b5341edf35949399e xen-3.0.1_p9029.ebuild 2518 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2.1 (GNU/Linux) + +iD8DBQFEJIXxJrHF4yAQTrARAuE6AJwK+bTOOgjvsogX5/dHqEvzV0dNuQCbB0m5 +GM6TiAjmrGF+D4Yr8ZmXATM= +=E3jj +-----END PGP SIGNATURE----- diff --git a/app-emulation/xen/files/digest-xen-3.0.1-r5 b/app-emulation/xen/files/digest-xen-3.0.1-r5 new file mode 100644 index 000000000000..c7c0c449d579 --- /dev/null +++ b/app-emulation/xen/files/digest-xen-3.0.1-r5 @@ -0,0 +1,3 @@ +MD5 d30f17294957d8c0234f8a4ce6d68671 xen-3.0.1-src.tgz 4631469 +RMD160 f68960aed74b7ceae3f7b435af05c273263363ee xen-3.0.1-src.tgz 4631469 +SHA256 4ea553ea07c46ba5cf53c693472f988eb644d85e1b2ed7a9c49a392eeb2733ad xen-3.0.1-src.tgz 4631469 diff --git a/app-emulation/xen/files/digest-xen-3.0.1_p9029 b/app-emulation/xen/files/digest-xen-3.0.1_p9029 new file mode 100644 index 000000000000..8d1f70052bf1 --- /dev/null +++ b/app-emulation/xen/files/digest-xen-3.0.1_p9029 @@ -0,0 +1,3 @@ +MD5 d8183137f5cffdb1078c675c8b05369e xen-unstable-9029.tar.bz2 3450223 +RMD160 8face26212998bfe5965ddbab4ced697a0d5fc61 xen-unstable-9029.tar.bz2 3450223 +SHA256 1a1871deda3cfd91b07eaf4d6263083ce7615d3999b44a56e689e46f3075ea86 xen-unstable-9029.tar.bz2 3450223 diff --git a/app-emulation/xen/files/digest-xen-9029-r2 b/app-emulation/xen/files/digest-xen-9029-r2 deleted file mode 100644 index eef4e4a4edf9..000000000000 --- a/app-emulation/xen/files/digest-xen-9029-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 d8183137f5cffdb1078c675c8b05369e xen-unstable-9029.tar.bz2 3450223 diff --git a/app-emulation/xen/xen-3.0.1-r5.ebuild b/app-emulation/xen/xen-3.0.1-r5.ebuild new file mode 100644 index 000000000000..3a4e3089e39c --- /dev/null +++ b/app-emulation/xen/xen-3.0.1-r5.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.0.1-r5.ebuild,v 1.1 2006/03/24 23:51:03 agriffis Exp $ + +inherit mount-boot flag-o-matic + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.sourceforge.net" +if [[ ${PV} == *_p* ]]; then + XEN_UNSTABLE="xen-unstable-${PV#*_p}" + SRC_URI="mirror://gentoo/${XEN_UNSTABLE}.tar.bz2" + S=${WORKDIR}/${XEN_UNSTABLE} +else + SRC_URI="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/${P}-src.tgz" + S=${WORKDIR}/xen-${PV} +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug custom-cflags pae" + +DEPEND="sys-devel/dev86" +RDEPEND="" + +src_unpack() { + unpack ${A} + # if the user *really* wants to use their own custom-cflags, let them + if use custom-cflags; then + einfo "User wants their own CFLAGS - removing defaults" + # try and remove all the default custom-cflags + find ${S} -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ + -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ + -i {} \; + # odd fixes + sed -e "s/int mode/int mode=-1/" -i ${S}/tools/misc/xc_shadow.c + fi +} + +src_compile() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} XEN_TARGET_X86_PAE=y" + + if use custom-cflags; then + filter-flags -fPIE -fstack-protector + else + unset CFLAGS + fi + + emake -C xen ${myopt} || die "compile failed" +} + +src_install() { + local myopt + use pae && myopt="${myopt} XEN_TARGET_X86_PAE=y" + + make DESTDIR=${D} ${myopt} install-xen \ + || die "install failed" + + # for upstream change tracking + if [[ -n ${XEN_UNSTABLE} ]]; then + dodoc ${S}/XEN-VERSION + fi +} + +pkg_postinst() { + einfo "Please visit the Xen and Gentoo wiki:" + einfo "http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + echo + einfo "Note: xen tools have been moved to app-emulation/xen-tools;" + einfo "you need to install that package to manage your domains." + + if [[ -n ${XEN_UNSTABLE} ]]; then + echo + einfo "This is a snapshot of the xen-unstable tree." + einfo "Please report bugs in xen itself (and not the packaging) to" + einfo "bugzilla.xensource.com" + fi + + if use pae; then + echo + einfo "This is a PAE build of Xen. It will *only* boot PAE kernels!" + fi +} diff --git a/app-emulation/xen/xen-3.0.1_p9029.ebuild b/app-emulation/xen/xen-3.0.1_p9029.ebuild new file mode 100644 index 000000000000..9f517629cba6 --- /dev/null +++ b/app-emulation/xen/xen-3.0.1_p9029.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.0.1_p9029.ebuild,v 1.1 2006/03/24 23:51:03 agriffis Exp $ + +inherit mount-boot flag-o-matic + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.sourceforge.net" +if [[ ${PV} == *_p* ]]; then + XEN_UNSTABLE="xen-unstable-${PV#*_p}" + SRC_URI="mirror://gentoo/${XEN_UNSTABLE}.tar.bz2" + S=${WORKDIR}/${XEN_UNSTABLE} +else + SRC_URI="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/${P}-src.tgz" + S=${WORKDIR}/xen-${PV} +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug custom-cflags pae" + +DEPEND="sys-devel/dev86" +RDEPEND="" + +src_unpack() { + unpack ${A} + # if the user *really* wants to use their own custom-cflags, let them + if use custom-cflags; then + einfo "User wants their own CFLAGS - removing defaults" + # try and remove all the default custom-cflags + find ${S} -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ + -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ + -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ + -i {} \; + # odd fixes + sed -e "s/int mode/int mode=-1/" -i ${S}/tools/misc/xc_shadow.c + fi +} + +src_compile() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} XEN_TARGET_X86_PAE=y" + + if use custom-cflags; then + filter-flags -fPIE -fstack-protector + else + unset CFLAGS + fi + + emake -C xen ${myopt} || die "compile failed" +} + +src_install() { + local myopt + use pae && myopt="${myopt} XEN_TARGET_X86_PAE=y" + + make DESTDIR=${D} ${myopt} install-xen \ + || die "install failed" + + # for upstream change tracking + if [[ -n ${XEN_UNSTABLE} ]]; then + dodoc ${S}/XEN-VERSION + fi +} + +pkg_postinst() { + einfo "Please visit the Xen and Gentoo wiki:" + einfo "http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + echo + einfo "Note: xen tools have been moved to app-emulation/xen-tools;" + einfo "you need to install that package to manage your domains." + + if [[ -n ${XEN_UNSTABLE} ]]; then + echo + einfo "This is a snapshot of the xen-unstable tree." + einfo "Please report bugs in xen itself (and not the packaging) to" + einfo "bugzilla.xensource.com" + fi + + if use pae; then + echo + einfo "This is a PAE build of Xen. It will *only* boot PAE kernels!" + fi +} diff --git a/app-emulation/xen/xen-9029-r2.ebuild b/app-emulation/xen/xen-9029-r2.ebuild deleted file mode 100644 index 3f483c691237..000000000000 --- a/app-emulation/xen/xen-9029-r2.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-9029-r2.ebuild,v 1.1 2006/03/05 17:01:34 chrb Exp $ - -inherit mount-boot flag-o-matic - -DESCRIPTION="The Xen virtual machine monitor and Xend daemon" -HOMEPAGE="http://xen.sourceforge.net" -MY_P="xen-unstable-${PV}" -SRC_URI="mirror://gentoo/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="doc debug screen custom-cflags pae" - -DEPEND="sys-apps/iproute2 - net-misc/bridge-utils - dev-lang/python - net-misc/curl - sys-libs/zlib - doc? ( - dev-tex/latex2html - media-gfx/transfig - ) - screen? ( - app-misc/screen - app-admin/logrotate - ) - sys-devel/dev86 - || ( sys-fs/udev sys-apps/hotplug )" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack ${A} - # if the user *really* wants to use their own custom-cflags, let them - if use custom-cflags; then - einfo "User wants their own CFLAGS - removing defaults" - for f in Makefile Rules.mk Config.mk; do - # try and remove all the default custom-cflags - find ${S} -name ${f} -exec sed \ - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ - -i {} \; - done - # odd fixes - sed -e "s/int mode/int mode=-1/" -i ${S}/tools/misc/xc_shadow.c - fi - - cat ${FILESDIR}/gentoo-makefile-targets >> ${S}/Makefile -} - -src_compile() { - local myopt - if use debug; then - myopt="${myopt} debug=y" - fi - - if use pae; then - myopt="${myopt} XEN_TARGET_X86_PAE=y" - fi - - if ! use custom-cflags; then - unset CFLAGS - fi - filter-flags -fPIE -fstack-protector - - make ${myopt} gentoo-compile || die "compile failed" - - if use doc; then - sh ./docs/check_pkgs || die "package check failed" - make ${myopt} -C docs || die "compiling docs failed" - fi -} - -src_install() { - local myopt="XEN_PYTHON_NATIVE_INSTALL=1" - - if use pae; then - myopt="${myopt} XEN_TARGET_X86_PAE=y" - fi - - make DESTDIR=${D} ${myopt} gentoo-install || die "install xen failed" - - if use doc; then - make DESTDIR=${D} -C docs install || die "installing docs failed" - # Rename doc/xen to the Gentoo-style doc/xen-x.y - mv ${D}/usr/share/doc/{${PN},${PF}} - fi - - newinitd ${FILESDIR}/xend-init xend - newconfd ${FILESDIR}/xend-conf xend - newconfd ${FILESDIR}/xendomains-conf xendomains - newinitd ${FILESDIR}/xendomains-init xendomains - - if use screen; then - sed -i -e 's/SCREEN="no"/SCREEN="yes"/' ${D}/etc/init.d/xendomains - fi - - # xend expects these to exist - for dir in /var/run/xenstored /var/lib/xenstored /var/xen/dump; do - dodir ${dir} - keepdir ${dir} - done - - # for upstream change tracking - dodoc ${S}/XEN-VERSION - -} - -pkg_postinst() { - einfo "Please visit the Xen and Gentoo wiki:" - einfo "http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" - - einfo "" - einfo "This is a snapshot of the xen-unstable tree." - einfo "Please report bugs in xen itself (and not the packaging) to" - einfo "bugzilla.xensource.com" - - if use pae; then - einfo "" - einfo "This is a PAE build of Xen. It will *only* boot PAE kernels!" - fi - -} |