summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Marineau <marineam@gentoo.org>2007-04-07 19:22:38 +0000
committerMichael Marineau <marineam@gentoo.org>2007-04-07 19:22:38 +0000
commiteda95991c85ab040e33f13cbce140083fba14d0e (patch)
tree101128b07ce019f1234d437e504d7bc5f33cdce7 /app-emulation
parentAdd fix for network broadcasts on bridge networks. (diff)
downloadxen-eda95991c85ab040e33f13cbce140083fba14d0e.tar.gz
xen-eda95991c85ab040e33f13cbce140083fba14d0e.tar.bz2
xen-eda95991c85ab040e33f13cbce140083fba14d0e.zip
Set xen to depend on either grub and grub-static
svn path=/xen/; revision=17
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/xen/Manifest20
-rw-r--r--app-emulation/xen/xen-3.0.4_p1.ebuild95
2 files changed, 115 insertions, 0 deletions
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
new file mode 100644
index 0000000..8c5a4fd
--- /dev/null
+++ b/app-emulation/xen/Manifest
@@ -0,0 +1,20 @@
+AUX xen-3.0.2-nopiessp.patch 443 RMD160 6143efc84069b1d66c9b3fcc625e7c44b27dbce6 SHA1 d838ea87de1cbf13f3984cc05502a2491acd5c26 SHA256 b206dbb8bf55ece33a851f8c9de511d5abd031825b339df9446ef5689f05c088
+MD5 eb2960e0572c35e38e37d9f16282cfed files/xen-3.0.2-nopiessp.patch 443
+RMD160 6143efc84069b1d66c9b3fcc625e7c44b27dbce6 files/xen-3.0.2-nopiessp.patch 443
+SHA256 b206dbb8bf55ece33a851f8c9de511d5abd031825b339df9446ef5689f05c088 files/xen-3.0.2-nopiessp.patch 443
+DIST xen-3.0.2-src.tgz 4933621 RMD160 34e4431a981891319f8a5ea0c3f604e7d8d7d7af SHA1 b7e797048b516f8b385afd3da9ae2eded1b8033a SHA256 f18ffab16a457fa721d11933c75f8288f6958c88c2669857c7c11d5107ba2951
+DIST xen-3.0.4_1-src.tgz 6473636 RMD160 f869eec35f6afe0bc9824ce2eb4a600f789d423b SHA1 7ca5af70996215229e143c7563e69b3719284a95 SHA256 6b3842393e69a9c8fcdbc2789d05830aba6f1d108a6f97f1448de4a86f92a5cb
+EBUILD xen-3.0.2.ebuild 2426 RMD160 6d84f68f0deaa1fe7da214f4914d75dd25d8582a SHA1 6c8c18a288b9c56a7187533cea0b6f67c533d366 SHA256 5371990aa59284556383d420850dd114577b66f97759099d419023be19efc589
+MD5 2c94bd7b6aa43ce902e1fb4d742f7b91 xen-3.0.2.ebuild 2426
+RMD160 6d84f68f0deaa1fe7da214f4914d75dd25d8582a xen-3.0.2.ebuild 2426
+SHA256 5371990aa59284556383d420850dd114577b66f97759099d419023be19efc589 xen-3.0.2.ebuild 2426
+EBUILD xen-3.0.4_p1.ebuild 2449 RMD160 a655524ed8e76fcf1881af07a2eafe664b08adf0 SHA1 5e30b7ce2a88a3cff8413487c18ee62daadd6366 SHA256 8c5107875f59ba62ae9062bc775819fb486905a5c1f96428e767351526e4374d
+MD5 ff5866055e1f8887efc9819f3f3174f0 xen-3.0.4_p1.ebuild 2449
+RMD160 a655524ed8e76fcf1881af07a2eafe664b08adf0 xen-3.0.4_p1.ebuild 2449
+SHA256 8c5107875f59ba62ae9062bc775819fb486905a5c1f96428e767351526e4374d xen-3.0.4_p1.ebuild 2449
+MD5 6618adc624bc8ab64af0f4555c33529a files/digest-xen-3.0.2 235
+RMD160 ad3a1d2a82c40b0bca653431c2d7964809580e5e files/digest-xen-3.0.2 235
+SHA256 274536fc8a3cb10fda114e533062b0dbddcda4ae15f52033a39b85785b221794 files/digest-xen-3.0.2 235
+MD5 de126addfd4101f35f8880ab0817ab03 files/digest-xen-3.0.4_p1 241
+RMD160 b65ff6928079bc0ee81b68ab27f3f4c9e1d36856 files/digest-xen-3.0.4_p1 241
+SHA256 66cfb008cc25de8a507359e492d6896908bc619901d901ae018fb135d2d91345 files/digest-xen-3.0.4_p1 241
diff --git a/app-emulation/xen/xen-3.0.4_p1.ebuild b/app-emulation/xen/xen-3.0.4_p1.ebuild
new file mode 100644
index 0000000..71de120
--- /dev/null
+++ b/app-emulation/xen/xen-3.0.4_p1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit mount-boot flag-o-matic
+
+DESCRIPTION="The Xen virtual machine monitor"
+HOMEPAGE="http://xen.sourceforge.net"
+MY_PV=${PV/_p/_}
+SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV/_/-}/src.tgz/xen-${MY_PV}-src.tgz"
+S="${WORKDIR}/xen-${MY_PV}-src"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug custom-cflags pae hardened"
+
+RDEPEND="|| ( sys-boot/grub
+ sys-boot/grub-static )
+ sys-kernel/xen-sources"
+PDEPEND="~app-emulation/xen-tools-${PV}"
+
+RESTRICT="test"
+
+# Approved by QA team in bug #144032
+QA_WX_LOAD="boot/xen-syms-${MY_PV/_/-}"
+
+pkg_setup() {
+ if [[ -z ${XEN_TARGET_ARCH} ]]; then
+ if use x86; then
+ export XEN_TARGET_ARCH="x86_32"
+ elif use amd64; then
+ export XEN_TARGET_ARCH="x86_64"
+ else
+ die "Unsupported architecture!"
+ fi
+ fi
+}
+
+
+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 {} \;
+ fi
+ if use hardened; then
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}"-3.0.2-nopiessp.patch
+ fi
+}
+
+src_compile() {
+ local myopt
+ use debug && myopt="${myopt} debug=y"
+ use pae && myopt="${myopt} pae=y"
+
+ if use custom-cflags; then
+ filter-flags -fPIE -fstack-protector
+ else
+ unset CFLAGS
+ fi
+
+ # Send raw LDFLAGS so that --as-needed works
+ emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
+}
+
+src_install() {
+ local myopt
+ use pae && myopt="${myopt} pae=y"
+
+ make DESTDIR="${D}" ${myopt} install-xen || die "install failed"
+}
+
+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 use pae; then
+ echo
+ einfo "This is a PAE build of Xen. It will *only* boot PAE kernels!"
+ fi
+}