summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ross <aross@gentoo.org>2006-08-16 08:10:08 +0000
committerAndrew Ross <aross@gentoo.org>2006-08-16 08:10:08 +0000
commit2240d6597414deb6dc456b0f94edf97a8a95c846 (patch)
tree60a0bfa2abd8564c01c6507a0717cdec447ea107 /app-emulation
parentInitial import from portage tree. (diff)
downloadaross-2240d6597414deb6dc456b0f94edf97a8a95c846.tar.gz
aross-2240d6597414deb6dc456b0f94edf97a8a95c846.tar.bz2
aross-2240d6597414deb6dc456b0f94edf97a8a95c846.zip
Initial import from current portage tree.
svn path=/; revision=2
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/xen/ChangeLog198
-rw-r--r--app-emulation/xen/Manifest40
-rw-r--r--app-emulation/xen/files/digest-xen-3.0.23
-rw-r--r--app-emulation/xen/files/gentoo-makefile-targets8
-rw-r--r--app-emulation/xen/files/xen-3.0.2-nopiessp.patch10
-rw-r--r--app-emulation/xen/files/xend-conf7
-rw-r--r--app-emulation/xen/files/xend-init42
-rw-r--r--app-emulation/xen/files/xendomains-conf6
-rw-r--r--app-emulation/xen/files/xendomains-init68
-rw-r--r--app-emulation/xen/metadata.xml5
-rw-r--r--app-emulation/xen/xen-3.0.2.ebuild95
11 files changed, 482 insertions, 0 deletions
diff --git a/app-emulation/xen/ChangeLog b/app-emulation/xen/ChangeLog
new file mode 100644
index 0000000..f93f83c
--- /dev/null
+++ b/app-emulation/xen/ChangeLog
@@ -0,0 +1,198 @@
+# 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.41 2006/08/15 11:33:46 aross Exp $
+
+ 16 Aug 2006; Andrew Ross <aross@gentoo.org> metadata.xml:
+ Convert from individual maintainers to xen herd.
+
+ 11 Aug 2006; Andrew Ross <aross@gentoo.org> metadata.xml:
+ Add myself as a maintainer
+
+ 04 Aug 2006; Chris Bainbridge <chrb@gentoo.org> xen-3.0.2.ebuild:
+ Remove in package testing - tests are for xen-tools, not xen hypervisor. Bug
+ #141227, thanks to Andrew Ross
+
+ 02 Jun 2006; Roy Marples <uberlord@gentoo.org> xen-3.0.2.ebuild:
+ Send raw LDFLAGS via make to support --as-needed, #135140
+
+ 22 May 2006; <chrb@gentoo.org> +files/xen-3.0.2-nopiessp.patch,
+ -xen-3.0.1-r4.ebuild, -xen-3.0.1-r5.ebuild, -xen-3.0.1_p9029.ebuild,
+ xen-3.0.2.ebuild:
+ Add hardened patch, thanks to Solar in bug #130167
+
+ 10 Apr 2006; <chrb@gentoo.org> xen-3.0.2.ebuild:
+ fix pae, again, #124355
+
+ 10 Apr 2006; <chrb@gentoo.org> xen-3.0.2.ebuild:
+ remove sed fix, #129429
+
+ 10 Apr 2006; <chrb@gentoo.org> files/digest-xen-3.0.2, Manifest:
+ new digest
+
+*xen-3.0.2 (09 Apr 2006)
+
+ 09 Apr 2006; <chrb@gentoo.org> +xen-3.0.2.ebuild:
+ bump, #129191
+
+*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. Add myself as an additional maintainer in
+ metadata.xml
+
+*xen-9029-r2 (05 Mar 2006)
+*xen-3.0.1-r4 (05 Mar 2006)
+
+ 05 Mar 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1-r3.ebuild, +xen-3.0.1-r4.ebuild,
+ -xen-9029-r1.ebuild, +xen-9029-r2.ebuild:
+ add ekeep for pre-created xen dirs, bug #123862
+
+*xen-9029-r1 (03 Mar 2006)
+*xen-3.0.1-r3 (03 Mar 2006)
+
+ 03 Mar 2006; Chris Bainbridge <chrb@gentoo.org> +files/gentoo-makefile-targets,
+ -xen-3.0.1-r2.ebuild, +xen-3.0.1-r3.ebuild, -xen-9029.ebuild,
+ +xen-9029-r1.ebuild:
+ more pae fixes
+
+*xen-9029 (02 Mar 2006)
+*xen-3.0.1-r2 (02 Mar 2006)
+
+ 02 Mar 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1-r1.ebuild, +xen-3.0.1-r2.ebuild,
+ -xen-8885.ebuild, +xen-9029.ebuild:
+ Bump unstable. Add PAE support thanks to Christopher G. Stach II (bug #124355).
+
+*xen-8885 (19 Feb 2006)
+
+ 19 Feb 2006; Chris Bainbridge <chrb@gentoo.org> +xen-8885.ebuild:
+ new xen-unstable snapshot
+
+*xen-3.0.1-r1 (05 Feb 2006)
+
+ 05 Feb 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1.ebuild, +xen-3.0.1-r1.ebuild:
+ use the official 3.0.1 tarballs
+
+ 04 Feb 2006; Chris Bainbridge <chrb@gentoo.org> xen-3.0.1.ebuild:
+ fix snapshot
+
+*xen-3.0.1 (03 Feb 2006)
+
+ 03 Feb 2006; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.1.ebuild:
+ bump
+
+*xen-3.0.0-r2 (23 Dec 2005)
+
+ 23 Dec 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init, files/xendomains-init,
+ -xen-2.0.7.ebuild, -xen-3.0.0-r1.ebuild, +xen-3.0.0-r2.ebuild:
+ Bugs #115970 (/var/xen/dump), #115969 (dhcp), #116332 (hotplug). Removed
+ xen-2 as bugs are not being fixed upstream since the xen-3.0.0 release.
+
+ 21 Dec 2005; Alex Howells <astinus@gentoo.org> xen-3.0.0-r1.ebuild:
+ Keyword ~amd64 added, works fine for me!
+
+ 08 Dec 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0-r1.ebuild:
+ rename cflags -> custom-cflags (like mplayer, grub..)
+
+*xen-3.0.0-r1 (08 Dec 2005)
+
+ 08 Dec 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0.ebuild, +xen-3.0.0-r1.ebuild:
+ add dirs expected by xend, bug #114856
+
+ 07 Dec 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0.ebuild:
+ Fix CFLAGS for hardened bug #114716
+
+*xen-3.0.0 (06 Dec 2005)
+
+ 06 Dec 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0_pre20051027.ebuild,
+ -xen-3.0.0_pre20051122.ebuild, -xen-3.0.0_pre20051128.ebuild,
+ -xen-3.0.0_pre20051128-r1.ebuild, +xen-3.0.0.ebuild:
+ New 3.0.0 release.
+
+*xen-3.0.0_pre20051128-r1 (30 Nov 2005)
+
+ 30 Nov 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0_pre20051128.ebuild,
+ +xen-3.0.0_pre20051128-r1.ebuild:
+ support user specified cflags (must be forced to override defaults with
+ 'cflags' USE flag
+
+*xen-3.0.0_pre20051128 (28 Nov 2005)
+
+ 28 Nov 2005; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.0_pre20051128.ebuild:
+ bump
+
+*xen-3.0.0_pre20051122 (22 Nov 2005)
+
+ 22 Nov 2005; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.0_pre20051122.ebuild:
+ version bump
+
+ 03 Nov 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0_pre20051010.ebuild,
+ -xen-3.0.0_pre20051010-r1.ebuild:
+ remove old cvs snapshots
+
+*xen-3.0.0_pre20051027 (27 Oct 2005)
+
+ 27 Oct 2005; Chris Bainbridge <chrb@gentoo.org> files/xendomains-init,
+ +xen-3.0.0_pre20051027.ebuild:
+ version bump
+
+*xen-3.0.0_pre20051010-r1 (26 Oct 2005)
+
+ 26 Oct 2005; Chris Bainbridge <chrb@gentoo.org>
+ +xen-3.0.0_pre20051010-r1.ebuild:
+ added depend on sys-devel/dev86
+
+*xen-3.0.0_pre20051010 (10 Oct 2005)
+
+ 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org>
+ -xen-3.0.0_pre20051007.ebuild, +xen-3.0.0_pre20051010.ebuild:
+ bump
+
+ 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org>
+ xen-3.0.0_pre20051007.ebuild:
+ add disabling cflags einfo
+
+ 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org>
+ xen-3.0.0_pre20051007.ebuild:
+ re-add hardened flags.
+
+*xen-3.0.0_pre20051007 (08 Oct 2005)
+
+ 08 Oct 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init,
+ files/xendomains-conf, files/xendomains-init,
+ -xen-3.0.0_pre20050929.ebuild, +xen-3.0.0_pre20051007.ebuild:
+ -m Version bump xen-3, now uses udev rules. Add support for screen consoles
+ in xendomains. No longer use broken --halt to bring down domains.
+
+*xen-3.0.0_pre20050929 (29 Sep 2005)
+
+ 29 Sep 2005; Chris Bainbridge <chrb@gentoo.org>
+ -xen-3.0.0_pre20050919.ebuild, +xen-3.0.0_pre20050929.ebuild:
+ cvs bump
+
+ 22 Sep 2005; Chris Bainbridge <chrb@gentoo.org> xen-2.0.7.ebuild,
+ -xen-3.0.0_pre20050906.ebuild:
+ Add hardened flags #106731 and remove old snapshot
+
+ 20 Sep 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init,
+ files/xendomains-init:
+ Change init scripts to absolute paths.
+
+*xen-3.0.0_pre20050919 (19 Sep 2005)
+
+ 19 Sep 2005; Chris Bainbridge <chrb@gentoo.org>
+ +xen-3.0.0_pre20050919.ebuild:
+ Version bump
+
+*xen-3.0.0_pre20050906 (07 Sep 2005)
+*xen-2.0.7 (07 Sep 2005)
+
+ 07 Sep 2005; Chris Bainbridge <chrb@gentoo.org> +files/xend-conf,
+ +files/xend-init, +files/xendomains-conf, +files/xendomains-init,
+ +metadata.xml, +xen-2.0.7.ebuild, +xen-3.0.0_pre20050906.ebuild:
+ New package. Thanks to the many who contributed in bug #70161.
+
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest
new file mode 100644
index 0000000..3bb71b2
--- /dev/null
+++ b/app-emulation/xen/Manifest
@@ -0,0 +1,40 @@
+AUX gentoo-makefile-targets 118 RMD160 0ffa087d15a57377b5a32356bdb4f264e4f04f01 SHA1 63012c9b267a270d6dc23ca4a216ece0849318e2 SHA256 21f04a03aeeba9862740669f77b846f1c4745e6d1e070e582fb9312b364f2df9
+MD5 cbd69f44ee0f0649253e7ab4af11d909 files/gentoo-makefile-targets 118
+RMD160 0ffa087d15a57377b5a32356bdb4f264e4f04f01 files/gentoo-makefile-targets 118
+SHA256 21f04a03aeeba9862740669f77b846f1c4745e6d1e070e582fb9312b364f2df9 files/gentoo-makefile-targets 118
+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
+AUX xend-conf 347 RMD160 8cc17df2b744342f728f933dea16f61295d52ad0 SHA1 867bd23679aa3a9e99bd5101125de9ebc31c8453 SHA256 3a3f6c87fd4bda91ec944ec7d81e3240e3669f7a089280c5c27385b7062a37ae
+MD5 16d372298e94a8eef72c1943b1ed5561 files/xend-conf 347
+RMD160 8cc17df2b744342f728f933dea16f61295d52ad0 files/xend-conf 347
+SHA256 3a3f6c87fd4bda91ec944ec7d81e3240e3669f7a089280c5c27385b7062a37ae files/xend-conf 347
+AUX xend-init 844 RMD160 9d95e22738333da4767c8aa5a53fd993ef79c977 SHA1 a0aba81287cd7b664983474baafd487f00c13b33 SHA256 9f6c5f5e3ca65599cccf2058399a2723b1fdf1d58d572e93ba1303c9915ae6f3
+MD5 b16cb40a29cb947b2a9b76cc8f9f3894 files/xend-init 844
+RMD160 9d95e22738333da4767c8aa5a53fd993ef79c977 files/xend-init 844
+SHA256 9f6c5f5e3ca65599cccf2058399a2723b1fdf1d58d572e93ba1303c9915ae6f3 files/xend-init 844
+AUX xendomains-conf 180 RMD160 17f791a0369e9e1f1cbd15c7513a4ca14d3f5f18 SHA1 b0448805ff0dd0567f5b7d5ce3832553852e6f11 SHA256 78427be48c93ec744206df4dcafaedb584dee8a200efbbc54cba432d96cf0ca3
+MD5 11ef318e35fcfed12931f182fc01955a files/xendomains-conf 180
+RMD160 17f791a0369e9e1f1cbd15c7513a4ca14d3f5f18 files/xendomains-conf 180
+SHA256 78427be48c93ec744206df4dcafaedb584dee8a200efbbc54cba432d96cf0ca3 files/xendomains-conf 180
+AUX xendomains-init 1671 RMD160 e2dbb7b4da5ff8be60532e5a393988f47f28c036 SHA1 9146eaec333f3e4b49066d1b34a390bd27b98cc5 SHA256 19aac7da0ba103ae800ed10b7d151912b3a9476edf63c3651073a197ea291e49
+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
+EBUILD xen-3.0.2.ebuild 2593 RMD160 b39ee760f76df5a62c1bc259b0b87eba40a4b336 SHA1 4d3efa5f481f588360205fd9e086e2890e2af8fa SHA256 d8c525fde493ac1110957d5ff13fbb3bd4dd57ebe2ab5605192176ddc4b055b3
+MD5 c8f3f22e2059173683d3d5495c7e8f04 xen-3.0.2.ebuild 2593
+RMD160 b39ee760f76df5a62c1bc259b0b87eba40a4b336 xen-3.0.2.ebuild 2593
+SHA256 d8c525fde493ac1110957d5ff13fbb3bd4dd57ebe2ab5605192176ddc4b055b3 xen-3.0.2.ebuild 2593
+MISC ChangeLog 6708 RMD160 b2f644ec6d8f44c614d0361dd7fd758506013ba3 SHA1 9f7fbd058fff208fd44154bbc9166f064d89d316 SHA256 1b9cae57ccdbb8d7fcf794ae274787168039c999067a4af6636ec4540b0c9d63
+MD5 5cb8365398fba877e0df54a1e21d3c42 ChangeLog 6708
+RMD160 b2f644ec6d8f44c614d0361dd7fd758506013ba3 ChangeLog 6708
+SHA256 1b9cae57ccdbb8d7fcf794ae274787168039c999067a4af6636ec4540b0c9d63 ChangeLog 6708
+MISC metadata.xml 156 RMD160 bb062b1ba5554779dcfd0e73baf533ce9fbcdf68 SHA1 e6da014f2004758c7a806592ef9450489eebf593 SHA256 4a030777459245372bda9f7925f3a5ed3ef2b29b77e1a2971f3400ac2059b1e2
+MD5 559b4095659a2a2a489784de8a6ef95e metadata.xml 156
+RMD160 bb062b1ba5554779dcfd0e73baf533ce9fbcdf68 metadata.xml 156
+SHA256 4a030777459245372bda9f7925f3a5ed3ef2b29b77e1a2971f3400ac2059b1e2 metadata.xml 156
+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
diff --git a/app-emulation/xen/files/digest-xen-3.0.2 b/app-emulation/xen/files/digest-xen-3.0.2
new file mode 100644
index 0000000..724d092
--- /dev/null
+++ b/app-emulation/xen/files/digest-xen-3.0.2
@@ -0,0 +1,3 @@
+MD5 544eab940a0734a55459d648e5c3b224 xen-3.0.2-src.tgz 4933621
+RMD160 34e4431a981891319f8a5ea0c3f604e7d8d7d7af xen-3.0.2-src.tgz 4933621
+SHA256 f18ffab16a457fa721d11933c75f8288f6958c88c2669857c7c11d5107ba2951 xen-3.0.2-src.tgz 4933621
diff --git a/app-emulation/xen/files/gentoo-makefile-targets b/app-emulation/xen/files/gentoo-makefile-targets
new file mode 100644
index 0000000..2f6defe
--- /dev/null
+++ b/app-emulation/xen/files/gentoo-makefile-targets
@@ -0,0 +1,8 @@
+
+gentoo-compile:
+ $(MAKE) -C xen
+ $(MAKE) -C tools
+
+gentoo-install:
+ $(MAKE) -C xen install
+ $(MAKE) -C tools install
diff --git a/app-emulation/xen/files/xen-3.0.2-nopiessp.patch b/app-emulation/xen/files/xen-3.0.2-nopiessp.patch
new file mode 100644
index 0000000..2735124
--- /dev/null
+++ b/app-emulation/xen/files/xen-3.0.2-nopiessp.patch
@@ -0,0 +1,10 @@
+--- ./xen/Rules.mk 2006-04-09 22:05:55.000000000 +0000
++++ ./xen/Rules.mk 2006-04-16 16:39:26.000000000 +0000
+@@ -48,6 +48,7 @@
+ ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
+
+ CFLAGS-y += -g -D__XEN__
++CFLAGS-y += -fno-pie -fno-stack-protector-all -fno-stack-protector
+ CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY
+ CFLAGS-$(verbose) += -DVERBOSE
+ CFLAGS-$(crash_debug) += -DCRASH_DEBUG
diff --git a/app-emulation/xen/files/xend-conf b/app-emulation/xen/files/xend-conf
new file mode 100644
index 0000000..e82a727
--- /dev/null
+++ b/app-emulation/xen/files/xend-conf
@@ -0,0 +1,7 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xend-conf,v 1.1 2005/09/07 18:18:59 chrb Exp $
+
+# set to YES to enable the web frontend to xend on port 8080.
+# To change the port, edit /usr/lib/python/xen/sv/params.py
+XENSV="NO"
diff --git a/app-emulation/xen/files/xend-init b/app-emulation/xen/files/xend-init
new file mode 100644
index 0000000..8d35528
--- /dev/null
+++ b/app-emulation/xen/files/xend-init
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xend-init,v 1.4 2005/12/23 14:22:55 chrb Exp $
+
+opts="start stop status restart"
+
+depend() {
+ need net
+ before xendomains sshd ntpd nfs nfsmount rsyncd portmap dhcp
+}
+
+await_daemons_up() {
+ for ((i=0; i<5; i++)); do
+ sleep 1
+ /usr/sbin/xend status && return 0
+ done
+ return 1
+}
+
+start() {
+ ebegin "Starting Xen control daemon"
+ /usr/sbin/xend start
+ /usr/sbin/xend status || await_daemons_up
+ eend $?
+}
+
+stop() {
+ if [ "$(xm list | wc -l)" -gt 2 ]; then
+ ebegin " Stopping all domains"
+ /usr/sbin/xm shutdown --all --wait >/dev/null
+ eend $?
+ fi
+
+ ebegin "Stopping Xen control daemon"
+ /usr/sbin/xend stop
+ eend $?
+}
+
+status() {
+ /usr/sbin/xend status
+}
diff --git a/app-emulation/xen/files/xendomains-conf b/app-emulation/xen/files/xendomains-conf
new file mode 100644
index 0000000..bbc8ff6
--- /dev/null
+++ b/app-emulation/xen/files/xendomains-conf
@@ -0,0 +1,6 @@
+# Directory of domain configs to automatically boot
+AUTODIR=/etc/xen/auto
+
+# set to yes to run all auto 'xm create's in screen
+# with logging to /var/log/xen-consoles/
+SCREEN="no"
diff --git a/app-emulation/xen/files/xendomains-init b/app-emulation/xen/files/xendomains-init
new file mode 100644
index 0000000..9e68970
--- /dev/null
+++ b/app-emulation/xen/files/xendomains-init
@@ -0,0 +1,68 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/files/xendomains-init,v 1.5 2005/12/23 14:22:55 chrb Exp $
+
+opts="start stop status restart"
+
+depend() {
+ need xend
+ after dhcp
+}
+
+get_domname() {
+ sed -ne 's/^[ \t]*name[ \t]*=[ \t]*"\([^"]*\)"/\1/p' $1
+}
+
+is_running() {
+ [ -n "`/usr/sbin/xm list | grep "^${1} "`" ]
+}
+
+start() {
+ einfo "Starting ${AUTODIR} Xen domains"
+ if [[ ${SCREEN} == "yes" ]]; then
+ screen -d -m -S xen -t dom0
+ screen -r xen -X zombie dr
+ logrotate -f /usr/share/xen/xen-consoles-logrotate
+ screen -r xen -X logfile /var/log/xen-consoles/%t
+ screen -r xen -X logfile flush 1
+ screen -r xen -X deflog on
+ fi
+ # Create all domains with config files in AUTODIR.
+ for dom in $(ls ${AUTODIR}/* 2>/dev/null); do
+ name=$(get_domname ${dom})
+ if ! is_running ${name} ; then
+ ebegin " Starting domain ${name}"
+ if [[ ${SCREEN} == "yes" ]]; then
+ screen -r xen -X screen -t ${name} xm create ${dom} -c
+ else
+ xm create --quiet ${dom}
+ fi
+ eend $?
+ else
+ einfo " Not Starting domain ${name} - allready running"
+ fi
+ done
+}
+
+stop() {
+ einfo "Shutting down ${AUTODIR} Xen domains"
+ # Stop all domains with config files in AUTODIR.
+ for dom in $(ls ${AUTODIR}/* 2>/dev/null); do
+ name=$(get_domname ${dom})
+ if is_running ${name} ; then
+ ebegin " Stopping domain ${name}"
+ xm shutdown --wait ${name} >/dev/null
+ eend $?
+ else
+ einfo " Not Stopping domain ${name} - not running"
+ fi
+ done
+ if [[ ${SCREEN} == "yes" ]]; then
+ screen -r xen -X quit
+ fi
+}
+
+status() {
+ /usr/sbin/xm list
+}
diff --git a/app-emulation/xen/metadata.xml b/app-emulation/xen/metadata.xml
new file mode 100644
index 0000000..cc9d568
--- /dev/null
+++ b/app-emulation/xen/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>xen</herd>
+</pkgmetadata>
diff --git a/app-emulation/xen/xen-3.0.2.ebuild b/app-emulation/xen/xen-3.0.2.ebuild
new file mode 100644
index 0000000..b18e181
--- /dev/null
+++ b/app-emulation/xen/xen-3.0.2.ebuild
@@ -0,0 +1,95 @@
+# 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.2.ebuild,v 1.6 2006/08/04 15:09:42 chrb 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 hardened"
+
+DEPEND="sys-devel/dev86"
+RDEPEND=""
+
+RESTRICT="test"
+
+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
+}