summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ross <aross@gentoo.org>2006-11-02 05:13:46 +0000
committerAndrew Ross <aross@gentoo.org>2006-11-02 05:13:46 +0000
commit691db0ca18dd65c0f7056d4f5d53417b8a0d89ad (patch)
tree1c1663be89fa8c304b83cc1fa9728971a3b96f14
parentDon't let "/etc/init.d/xend stop" kill xenconsoled and xenstored just yet (bu... (diff)
downloadaross-691db0ca18dd65c0f7056d4f5d53417b8a0d89ad.tar.gz
aross-691db0ca18dd65c0f7056d4f5d53417b8a0d89ad.tar.bz2
aross-691db0ca18dd65c0f7056d4f5d53417b8a0d89ad.zip
Import proposed xen-3.0.3 ebuild from bug #151764
svn path=/; revision=26
-rw-r--r--app-emulation/xen/Manifest8
-rw-r--r--app-emulation/xen/files/digest-xen-3.0.33
-rw-r--r--app-emulation/xen/xen-3.0.3.ebuild109
3 files changed, 120 insertions, 0 deletions
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
index c5c4b3b..35cde02 100644
--- a/app-emulation/xen/Manifest
+++ b/app-emulation/xen/Manifest
@@ -23,6 +23,7 @@ MD5 a3c0c26c30ce1271b439661b68ca9e74 files/xendomains-init 1671
RMD160 e2dbb7b4da5ff8be60532e5a393988f47f28c036 files/xendomains-init 1671
SHA256 19aac7da0ba103ae800ed10b7d151912b3a9476edf63c3651073a197ea291e49 files/xendomains-init 1671
DIST xen-3.0.2-src.tgz 4933621 RMD160 34e4431a981891319f8a5ea0c3f604e7d8d7d7af SHA1 b7e797048b516f8b385afd3da9ae2eded1b8033a SHA256 f18ffab16a457fa721d11933c75f8288f6958c88c2669857c7c11d5107ba2951
+DIST xen-3.0.3_0-src.tgz 5465968 RMD160 528020035ee32144b52bcdfccc8c44708b0196ea SHA1 9505ae3a5a42bc969836de81f501341409291f78 SHA256 7220bb4b0474e530559f558fcb4da8c88f1095c8e2f420602a26dfea5020443f
EBUILD xen-3.0.2-r1.ebuild 2513 RMD160 de1bf27d680c6fca08040d08595ce8aebf3e71d2 SHA1 1baf5e3e35ee86d8e958b8d32b1fb12207f8a97d SHA256 b5f532a44bdcdb4258e89abd8a9752a3b534d9a17a3a7c9bfc4a40e052691f5b
MD5 a5d26c8799ac4141a64d7bdf05213ab2 xen-3.0.2-r1.ebuild 2513
RMD160 de1bf27d680c6fca08040d08595ce8aebf3e71d2 xen-3.0.2-r1.ebuild 2513
@@ -31,9 +32,16 @@ EBUILD xen-3.0.2.ebuild 2813 RMD160 a976c13cccc9dd0fabab095c7a6f495f58a05728 SHA
MD5 824b5794d05d8bccb56eee25012dc09b xen-3.0.2.ebuild 2813
RMD160 a976c13cccc9dd0fabab095c7a6f495f58a05728 xen-3.0.2.ebuild 2813
SHA256 2d6ff896b947f7235d4a61689cadb499b2783177ad7eda9f1ffee7ea800c4eae xen-3.0.2.ebuild 2813
+EBUILD xen-3.0.3.ebuild 2779 RMD160 bc2f31e444c1b9fc629b7bf63f747ef21c34aa70 SHA1 9191192bd20fa15ea8865431355d1c2e8aa931d3 SHA256 6ea963813a06eb3482575c80db6161650416e8bde1f35ab05fea63ddbee4a34e
+MD5 faa28f4b606e0e03b7654329efe1e421 xen-3.0.3.ebuild 2779
+RMD160 bc2f31e444c1b9fc629b7bf63f747ef21c34aa70 xen-3.0.3.ebuild 2779
+SHA256 6ea963813a06eb3482575c80db6161650416e8bde1f35ab05fea63ddbee4a34e xen-3.0.3.ebuild 2779
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 6618adc624bc8ab64af0f4555c33529a files/digest-xen-3.0.2-r1 235
RMD160 ad3a1d2a82c40b0bca653431c2d7964809580e5e files/digest-xen-3.0.2-r1 235
SHA256 274536fc8a3cb10fda114e533062b0dbddcda4ae15f52033a39b85785b221794 files/digest-xen-3.0.2-r1 235
+MD5 12dd00fa0bb9c2e41430eb5ce8982919 files/digest-xen-3.0.3 241
+RMD160 49d94fe9ef9ea6b0c3b47ab119fe58bfee581e89 files/digest-xen-3.0.3 241
+SHA256 bd445798febcfd9845666be6a1f8a0969d951389aa4984f6a8445eab6bac43fd files/digest-xen-3.0.3 241
diff --git a/app-emulation/xen/files/digest-xen-3.0.3 b/app-emulation/xen/files/digest-xen-3.0.3
new file mode 100644
index 0000000..c045c5b
--- /dev/null
+++ b/app-emulation/xen/files/digest-xen-3.0.3
@@ -0,0 +1,3 @@
+MD5 75d895858a467405114599abf94d60a2 xen-3.0.3_0-src.tgz 5465968
+RMD160 528020035ee32144b52bcdfccc8c44708b0196ea xen-3.0.3_0-src.tgz 5465968
+SHA256 7220bb4b0474e530559f558fcb4da8c88f1095c8e2f420602a26dfea5020443f xen-3.0.3_0-src.tgz 5465968
diff --git a/app-emulation/xen/xen-3.0.3.ebuild b/app-emulation/xen/xen-3.0.3.ebuild
new file mode 100644
index 0000000..8e40557
--- /dev/null
+++ b/app-emulation/xen/xen-3.0.3.ebuild
@@ -0,0 +1,109 @@
+# 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"
+XEN_VERSION="3.0.3_0"
+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://bits.xensource.com/oss-xen/release/${XEN_VERSION/_/-}/src.tgz/xen-${XEN_VERSION}-src.tgz"
+ S="${WORKDIR}/xen-${XEN_VERSION}-src"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug custom-cflags pae hardened"
+
+DEPEND="sys-devel/dev86"
+RDEPEND=""
+
+RESTRICT="test"
+
+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"
+
+ # 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
+}