app-emulation/qemu: my updated live ebuild for portage's qemu
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 21 Jan 2012 11:52:21 +0000 (21 14:52 +0300)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 21 Jan 2012 11:52:21 +0000 (21 14:52 +0300)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
16 files changed:
app-emulation/qemu/CVS/Entries [new file with mode: 0644]
app-emulation/qemu/CVS/Repository [new file with mode: 0644]
app-emulation/qemu/CVS/Root [new file with mode: 0644]
app-emulation/qemu/ChangeLog [new file with mode: 0644]
app-emulation/qemu/Manifest [new file with mode: 0644]
app-emulation/qemu/files/CVS/Entries [new file with mode: 0644]
app-emulation/qemu/files/CVS/Repository [new file with mode: 0644]
app-emulation/qemu/files/CVS/Root [new file with mode: 0644]
app-emulation/qemu/files/qemu-0.11.0-mips64-user-fix.patch [new file with mode: 0644]
app-emulation/qemu/files/qemu-ifdown [new file with mode: 0644]
app-emulation/qemu/files/qemu-ifup [new file with mode: 0644]
app-emulation/qemu/metadata.xml [new file with mode: 0644]
app-emulation/qemu/qemu-0.11.1.ebuild [new file with mode: 0644]
app-emulation/qemu/qemu-0.14.0.ebuild [new file with mode: 0644]
app-emulation/qemu/qemu-9999-r1.ebuild [new file with mode: 0644]
app-emulation/qemu/qemu-9999.ebuild [new file with mode: 0644]

diff --git a/app-emulation/qemu/CVS/Entries b/app-emulation/qemu/CVS/Entries
new file mode 100644 (file)
index 0000000..584eb4f
--- /dev/null
@@ -0,0 +1,7 @@
+/ChangeLog/1.87/Tue Sep 20 22:34:01 2011//
+/Manifest/1.122/Tue Sep 20 22:34:10 2011//
+/metadata.xml/1.7/Sat Feb 19 14:03:15 2011//
+/qemu-0.11.1.ebuild/1.5/Thu Mar 24 19:50:14 2011//
+/qemu-0.14.0.ebuild/1.3/Sun Feb 20 22:07:37 2011//
+/qemu-9999.ebuild/1.2/Tue Sep 20 22:34:01 2011//
+D/files////
diff --git a/app-emulation/qemu/CVS/Repository b/app-emulation/qemu/CVS/Repository
new file mode 100644 (file)
index 0000000..cbce662
--- /dev/null
@@ -0,0 +1 @@
+gentoo-x86/app-emulation/qemu
diff --git a/app-emulation/qemu/CVS/Root b/app-emulation/qemu/CVS/Root
new file mode 100644 (file)
index 0000000..c616264
--- /dev/null
@@ -0,0 +1 @@
+:ext:slyfox@cvs.gentoo.org:/var/cvsroot
diff --git a/app-emulation/qemu/ChangeLog b/app-emulation/qemu/ChangeLog
new file mode 100644 (file)
index 0000000..5bd39a7
--- /dev/null
@@ -0,0 +1,357 @@
+# ChangeLog for app-emulation/qemu
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.87 2011/09/20 22:34:01 mgorny Exp $
+
+  20 Sep 2011; Michał Górny <mgorny@gentoo.org> qemu-9999.ebuild:
+  Migrate to git-2.
+
+*qemu-9999 (27 Jun 2011)
+
+  27 Jun 2011; Luca Barbato <lu_zero@gentoo.org> +qemu-9999.ebuild:
+  Introduce live ebuild, useful for static qemu-user deployment
+
+  24 Mar 2011; Christoph Mende <angelos@gentoo.org> qemu-0.11.1.ebuild:
+  Stable on amd64 wrt bug #356685
+
+  17 Mar 2011; Thomas Kahle <tomka@gentoo.org> qemu-0.11.1.ebuild:
+  x86 stable per bug 356685
+
+  28 Feb 2011; Doug Goldstein <cardoe@gentoo.org> -qemu-0.9.1.ebuild:
+  Remove old version
+
+  20 Feb 2011; Zac Medico <zmedico@gentoo.org> qemu-0.14.0.ebuild:
+  Bug #355589 - Fix qemu-ifup die logic.
+
+  20 Feb 2011; Luca Barbato <lu_zero@gentoo.org> qemu-0.14.0.ebuild:
+  Fix description
+
+*qemu-0.14.0 (19 Feb 2011)
+
+  19 Feb 2011; Luca Barbato <lu_zero@gentoo.org> +qemu-0.14.0.ebuild,
+  metadata.xml:
+  New version, ebuild mostly in line with qemu-kvm
+
+  15 Oct 2010; Diego E. Pettenò <flameeyes@gentoo.org> -qemu-0.9.0.ebuild,
+  qemu-0.9.1.ebuild, -qemu-0.10.0.ebuild, -qemu-0.10.1.ebuild,
+  -qemu-0.10.3.ebuild, -files/qemu-0.10.3-nopl-fix.patch,
+  -qemu-0.10.4.ebuild, -qemu-0.10.5.ebuild, -qemu-0.10.6.ebuild,
+  -qemu-0.11.0.ebuild:
+  Belated spring cleaning of ebuilds and files; this also re-sync the ppc
+  keyword with the qemu-softmmu package which this is just an alias of.
+
+  30 Jun 2010; Harald van Dijk <truedfx@gentoo.org> qemu-0.10.3.ebuild,
+  qemu-0.10.4.ebuild, qemu-0.10.5.ebuild, qemu-0.10.6.ebuild,
+  qemu-0.11.0.ebuild, qemu-0.11.1.ebuild:
+  Fix quoting
+
+  05 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> qemu-0.10.3.ebuild,
+  qemu-0.10.4.ebuild, qemu-0.10.5.ebuild, qemu-0.10.6.ebuild,
+  qemu-0.11.0.ebuild, qemu-0.11.1.ebuild:
+  Fix trivial mistake. Closes bug #280121 by Kerin Millar.
+
+  15 Dec 2009; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
+  change to qemu herd
+
+*qemu-0.11.1 (06 Dec 2009)
+
+  06 Dec 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.11.1.ebuild:
+  Version bump
+
+  23 Nov 2009; Luca Barbato <lu_zero@gentoo.org> qemu-0.11.0.ebuild:
+  fix bug #286012, thanks to Thomas Kister <leander256@gmail.com> for the
+  patch
+
+  22 Nov 2009; Luca Barbato <lu_zero@gentoo.org> qemu-0.11.0.ebuild:
+  use --disable-strip instead of sed
+
+  17 Nov 2009; Luca Barbato <lu_zero@gentoo.org> qemu-0.11.0.ebuild:
+  Fix hardened build, thanks to Xake <xake@rymdraket.net> for the patch and
+  the notice in bug #287308
+
+  05 Nov 2009; Patrick Lauer <patrick@gentoo.org> qemu-0.11.0.ebuild:
+  Fixing bad --disable-gfx-check, closes #286370
+
+*qemu-0.11.0 (23 Oct 2009)
+
+  23 Oct 2009; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.11.0-mips64-user-fix.patch, +qemu-0.11.0.ebuild:
+  New release
+
+*qemu-0.10.6 (05 Sep 2009)
+
+  05 Sep 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.10.6.ebuild:
+  Version Bump
+
+*qemu-0.10.5 (07 Jun 2009)
+
+  07 Jun 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.10.5.ebuild:
+  New version
+
+  19 May 2009; Diego E. Pettenò <flameeyes@gentoo.org> qemu-0.10.4.ebuild:
+  Fix doc installation: install html in the html/ subdir, install more qemu
+  doc, rename the README file (it's not qemu's proper), die on error.
+
+  19 May 2009; Luca Barbato <lu_zero@gentoo.org> qemu-0.10.4.ebuild:
+  fix missing patch, thanks to Martin Jansa <Martin.Jansa@mk.cvut.cz> for
+  noticing
+
+*qemu-0.10.4 (19 May 2009)
+
+  19 May 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.10.4.ebuild:
+  New version
+
+  17 May 2009; Diego E. Pettenò <flameeyes@gentoo.org> qemu-0.10.3.ebuild,
+  +files/qemu-ifdown, +files/qemu-ifup:
+  Add missing ifup/ifdown scripts, change install logic, make sure they are
+  not added executable to CVS.
+
+*qemu-0.10.3 (17 May 2009)
+
+  17 May 2009; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.10.3-nopl-fix.patch, +qemu-0.10.3.ebuild:
+  New ebuild, thanks to Xake <xake@rymdraket.net> for contributing it in bug
+  #190298
+
+*qemu-0.10.1 (22 Mar 2009)
+
+  22 Mar 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.10.1.ebuild:
+  Bugfix release
+
+*qemu-0.10.0 (09 Mar 2009)
+
+  09 Mar 2009; Luca Barbato <lu_zero@gentoo.org> +qemu-0.10.0.ebuild:
+  New version
+
+  03 Sep 2008; Thomas Anderson <gentoofan23@gentoo.org> qemu-0.9.1.ebuild:
+  stable amd64, needed to go stable becuase qemu-softmmu went stable, mfi
+
+  18 May 2008; Christian Faulhammer <opfer@gentoo.org> qemu-0.9.1.ebuild:
+  stable x86
+
+  01 Feb 2008; Luca Barbato <lu_zero@gentoo.org> -qemu-0.8.0.ebuild,
+  -qemu-0.8.0.20060329.ebuild, -qemu-0.8.1.ebuild, -qemu-0.8.2.ebuild:
+  Remove qemu-0.8 series
+
+  28 Jan 2008; Luca Barbato <lu_zero@gentoo.org> qemu-0.9.1.ebuild:
+  avoid qemu-user, it is broken
+
+*qemu-0.9.1 (27 Jan 2008)
+
+  27 Jan 2008; Luca Barbato <lu_zero@gentoo.org> +qemu-0.9.1.ebuild:
+  Version bump
+
+  20 May 2007; Christian Faulhammer <opfer@gentoo.org> qemu-0.9.0.ebuild:
+  stable amd64, security bug 176674
+
+  16 May 2007; Luca Barbato <lu_zero@gentoo.org> qemu-0.9.0.ebuild:
+  Marked ppc
+
+  08 May 2007; Markus Ullmann <jokey@gentoo.org> qemu-0.9.0.ebuild:
+  Stable on x86 wrt security bug #176674
+
+*qemu-0.9.0 (06 Feb 2007)
+
+  06 Feb 2007; Luca Barbato <lu_zero@gentoo.org> +qemu-0.9.0.ebuild:
+  New version
+
+  06 Feb 2007; Simon Stelling <blubb@gentoo.org> qemu-0.8.2.ebuild:
+  stable on amd64; bug 159522
+
+  02 Jan 2007; Christian Faulhammer <opfer@gentoo.org> qemu-0.8.2.ebuild:
+  stable x86, bug #159522
+
+  31 Dec 2006; Luca Barbato <lu_zero@gentoo.org> qemu-0.8.2.ebuild:
+  Marked ppc
+
+*qemu-0.8.2 (16 Aug 2006)
+
+  16 Aug 2006; Luca Barbato <lu_zero@gentoo.org> +qemu-0.8.2.ebuild:
+  Meta ebuild bumped
+
+  09 Jun 2006; Michael Sterrett <mr_bones_@gentoo.org>
+  -files/qemu-0.6.0-configure.patch, -files/qemu-0.6.0-sigaction.patch,
+  -files/qemu-0.6.0-typo.patch, -files/qemu-0.6.1-20041126.patch,
+  -files/qemu-0.7.0-errno.patch, -files/kqemu-sysfs.patch,
+  -qemu-0.6.1.ebuild, -qemu-0.6.1-r1.ebuild, -qemu-0.7.0-r1.ebuild,
+  -qemu-0.7.1.ebuild, -qemu-0.7.2.ebuild:
+  clean out old versions
+
+*qemu-0.8.1 (06 May 2006)
+
+  06 May 2006; Luca Barbato <lu_zero@gentoo.org> +qemu-0.8.1.ebuild:
+  New version
+
+  19 Apr 2006; Daniel Gryniewicz <dang@gentoo.org> qemu-0.8.0.ebuild:
+  Marked stable on amd64 per bug# 123972
+
+  16 Apr 2006; Michael Hanselmann <hansmi@gentoo.org> qemu-0.8.0.ebuild:
+  Stable on ppc.
+
+*qemu-0.8.0.20060329 (29 Mar 2006)
+
+  29 Mar 2006; Luca Barbato <lu_zero@gentoo.org> metadata.xml,
+  +qemu-0.8.0.20060329.ebuild:
+  New version
+
+  29 Mar 2006; Chris White <chriswhite@gentoo.org> qemu-0.8.0.ebuild:
+  x86 stable for qemu-0.8.0 bug #123972.
+
+  28 Jan 2006; Luca Barbato <lu_zero@gentoo.org> -files/qemu_gcc34.patch.gz,
+  -qemu-0.6.0.ebuild:
+  cleanup
+
+*qemu-0.8.0 (23 Dec 2005)
+
+  23 Dec 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-0.8.0.ebuild:
+  New version
+
+  05 Dec 2005; <dang@gentoo.org> qemu-0.7.0.ebuild, qemu-0.7.0-r1.ebuild,
+  qemu-0.7.1.ebuild:
+  Make amd64 keywords match qemu-softmmu
+
+*qemu-0.7.2 (11 Sep 2005)
+
+  11 Sep 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-0.7.2.ebuild:
+  New release
+
+*qemu-0.7.1 (25 Jul 2005)
+
+  25 Jul 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-0.7.1.ebuild:
+  New version
+
+*qemu-0.7.0-r1 (18 Jun 2005)
+
+  18 Jun 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-0.7.0-r1.ebuild:
+  Meta ebuild added
+
+  25 May 2005; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.7.0-errno.patch, qemu-0.7.0.ebuild:
+  Fix for the errno issues in helper2.c
+
+  18 May 2005; Luca Barbato <lu_zero@gentoo.org> qemu-0.7.0.ebuild:
+  Add a notice about the qemu group, thanks to Leung Ki Chi 
+  <leun0003@ntu.edu.sg> for pointing the issue out
+
+  12 May 2005; Luca Barbato <lu_zero@gentoo.org> qemu-0.7.0.ebuild:
+  Hardened updates from Kevin F. Quinn <co@kevquinn.com>
+
+  07 May 2005; Luca Barbato <lu_zero@gentoo.org> qemu-0.7.0.ebuild:
+  Some fixes here and there, thanks to Sok Ann Yap <sokann@gmail.com>
+
+  29 Apr 2005; Luca Barbato <lu_zero@gentoo.org> qemu-0.7.0.ebuild:
+  Retouches and corrections, thanks to genstef as usual
+
+  29 Apr 2005; Luca Barbato <lu_zero@gentoo.org> qemu-0.7.0.ebuild:
+  Added udev support and qemu group creation
+
+*qemu-0.7.0 (28 Apr 2005)
+
+  28 Apr 2005; Luca Barbato <lu_zero@gentoo.org> +files/kqemu-sysfs.patch,
+  +qemu-0.7.0.ebuild:
+  New version
+
+  18 Dec 2004; Simon Stelling <blubb@gentoo.org> qemu-0.6.1-r1.ebuild:
+  added ~amd64
+
+  28 Nov 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.6.1-r1.ebuild:
+  Missing dep added, thanks to Frank Groeneveld <frankgroeneveld@msn.com>
+
+  28 Nov 2004; Luca Barbato <lu_zero@gentoo.org>
+  files/qemu-0.6.1-20041126.patch:
+  Minor fix, the patch had an Header reference that cvs replaced
+
+*qemu-0.6.1-r1 (28 Nov 2004)
+
+  28 Nov 2004; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.6.1-20041126.patch, +qemu-0.6.1-r1.ebuild:
+  updated qemu to the 20041126 cvs snapshot, this should fix bug #72561
+
+  26 Nov 2004; Luca Barbato <lu_zero@gentoo.org>
+  -files/qemu-0.5.4-jocelyn-mayer-ppc.patch, -qemu-0.5.1.ebuild,
+  -qemu-0.5.2.ebuild, -qemu-0.5.3.ebuild, -qemu-0.5.4.ebuild,
+  -qemu-0.5.5-r1.ebuild, -qemu-0.5.5.ebuild:
+  Cleanup
+
+  17 Nov 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.6.1.ebuild:
+  Removed qemu-fast since that feature won't build on most systems
+
+  16 Nov 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.6.1.ebuild:
+  Stray useflag removed
+
+*qemu-0.6.1 (15 Nov 2004)
+
+  15 Nov 2004; Luca Barbato <lu_zero@gentoo.org> +qemu-0.6.1.ebuild:
+  New version, filtering qemu-fast on nptl
+
+  02 Nov 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.6.0.ebuild:
+  Minor fix
+
+  01 Nov 2004; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.6.0-configure.patch, qemu-0.6.0.ebuild:
+  Minor fixes, some taken from Andrew Kirilenko <icedank@gmx.net> from bug #69384
+
+  28 Oct 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.6.0.ebuild:
+  Marked ppc, added some ewarn in the postinst as requested in bug #69206
+
+  25 Sep 2004; Hanno Boeck <hanno@gentoo.org> +files/qemu_gcc34.patch.gz,
+  qemu-0.6.0.ebuild:
+  Fix for gcc 3.4.
+
+  20 Aug 2004; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.6.0-sigaction.patch, qemu-0.6.0.ebuild:
+  Remove ancient glibc workaround
+
+*qemu-0.6.0 (13 Jul 2004)
+
+  13 Jul 2004; Luca Barbato <lu_zero@gentoo.org> +files/qemu-0.6.0-typo.patch,
+  +qemu-0.6.0.ebuild:
+  New version
+
+*qemu-0.5.5-r1 (02 Jul 2004)
+
+  02 Jul 2004; Luca Barbato <lu_zero@gentoo.org> +qemu-0.5.5-r1.ebuild:
+  Minor change
+
+  04 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> qemu-0.5.1.ebuild,
+  qemu-0.5.2.ebuild, qemu-0.5.3.ebuild, qemu-0.5.4.ebuild, qemu-0.5.5.ebuild:
+  pkg_postinstall -> pkg_postinst
+
+  17 May 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.5.5.ebuild:
+  Put the qemu-fast target modal
+
+*qemu-0.5.5 (09 May 2004)
+
+  09 May 2004; Luca Barbato <lu_zero@gentoo.org> +qemu-0.5.5.ebuild:
+  New version
+
+*qemu-0.5.4 (28 Apr 2004)
+
+  28 Apr 2004; Luca Barbato <lu_zero@gentoo.org>
+  +files/qemu-0.5.4-jocelyn-mayer-ppc.patch, +qemu-0.5.4.ebuild:
+  New version
+
+  27 Apr 2004; Luca Barbato <lu_zero@gentoo.org> qemu-0.5.3.ebuild:
+  Removed the softmmu target
+
+*qemu-0.5.3 (24 Apr 2004)
+
+  24 Apr 2004; Luca Barbato <lu_zero@gentoo.org> :
+  New version
+
+  15 Mar 2004; Chuck Short <zul@gentoo.org> qemu-0.5.2.ebuild:
+  Marked stable for x86.
+
+*qemu-0.5.2 (28 Jan 2004)
+
+  28 Jan 2004; Chuck Short<zulk@gentoo.org> qemu-0.5.1.ebuild, qemu-0.5.2.ebuild:
+  Ebuild clean ups and new version.
+
+  28 Jan 2004; Chuck Short <zul@gentoo.org> qemu-0.5.1.ebuild:
+  Marked stable for x86.
+
+*qemu-0.5.1 (03 Jan 2004)
+
+  03 Jan 2004; Chuck Short <zul@gentoo.org> qemu-0.5.1.ebuild:
+  Initial version, ebuild submitted by Jocelyn Mayer <l_indien -at- magic.fr>
+  Ebuild modified by me. Closes #37047.
+
diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest
new file mode 100644 (file)
index 0000000..adb1b56
--- /dev/null
@@ -0,0 +1,11 @@
+AUX qemu-0.11.0-mips64-user-fix.patch 313 RMD160 db016e0a48990a435dd6cf6e807145b33ada4908 SHA1 2ea913b1bcd29734a6d4011794bdb4aa3599a184 SHA256 b4173fc177bd0d0ba67f5551a3512047a19a9b2c0a122f968e32fbd834848d2f
+AUX qemu-ifdown 478 RMD160 2187fbf352e6b84686f0cf0e9e9ebe5d26359858 SHA1 1daccb4785fe503687562798f90be1414267e27d SHA256 7d90c39184fd7531d9b8ae787122b68ac768b41afeb0ef2b3baa6461f77af03d
+AUX qemu-ifup 554 RMD160 9769d79ab6456bdd7e3e689005f629e2a67b858d SHA1 dde2b27acabe6fe23ca40f90ff6950bb12a4b506 SHA256 eae9b50680442acc29c65a245a2d26a63756ad4cb894e08cb5ea249686801f1d
+DIST qemu-0.11.1.tar.gz 3830070 RMD160 4da00fa6c01d7ff6af0ee781bc9260da577ea7d3 SHA1 7b983cd18f44c6e7627532b662f010389d3bcdff SHA256 2ecd2fc0af2ce5d96067ae82cc98a08275c596de53fc929484bedee1d6e7893a
+DIST qemu-0.14.0.tar.gz 5439695 RMD160 1409264387e4cfe45143e10dd77b2574935e2d78 SHA1 cf8d916436d4b8775289399648e1f0ca9d867d18 SHA256 ba21e84d7853217830e167dae9999cdbff481189c6a0bb600ac7fb7201453108
+EBUILD qemu-0.11.1.ebuild 4908 RMD160 1662fa8fe1b4d4571b5ae00a5e3be7fcd8af77e4 SHA1 dcdee575c6aa2a79835d7776b6d687c4d9e13b5b SHA256 e3e9eaa84bbe061bb7966e0bb3b1f371cb177ec9982ef658aab378f5b5ff4fd1
+EBUILD qemu-0.14.0.ebuild 6013 RMD160 12e4d03a3547eb852095f808e226e74cc2f34435 SHA1 f4d0999ac782a3b8d86cd71673efd0ad878f9160 SHA256 266e6dad0cf244a707e38a70bc583cc8d0412990b3b3c694d6c23f0b5d1f3355
+EBUILD qemu-9999-r1.ebuild 6157 RMD160 76f30a3d70d97d71bf935f1bd3e66719e0d8d5eb SHA1 65d645f374c4d41f1b11f026cff608b3e54fb9cf SHA256 62ff7bc7818cd8e287a37565e751d2b987fffb8f2d4e4d35e0fcf3cf8091919e
+EBUILD qemu-9999.ebuild 6047 RMD160 58c0cc238a5701baeabf01b31104fc226a981b12 SHA1 f854f76b457fa9c89ca74e19f75da33b296b04f0 SHA256 d7d659cbf7ddf1f473dc6442add5ff7a32ed409f48b47418cabd851a838e9859
+MISC ChangeLog 11746 RMD160 c02b844cbb66ed33ed98b8fbc77d54728d163b15 SHA1 8be0345262faaa9c94ba01fd422fb9235bb1ca60 SHA256 e239abe2d2eae156207f70d7ddd03fd532ded83d7eaec5f7c48b5622cd30ed3f
+MISC metadata.xml 1309 RMD160 c4d9c673a1afb3aaf558d3c45afe4f1d8f13e60d SHA1 9897fae7eff6ba5bf82579669751c5c60422b259 SHA256 097421ad2ed0435cdf6bb30c966eaac35a48c7ff085f94d83690eb1e77285366
diff --git a/app-emulation/qemu/files/CVS/Entries b/app-emulation/qemu/files/CVS/Entries
new file mode 100644 (file)
index 0000000..093eafd
--- /dev/null
@@ -0,0 +1,4 @@
+/qemu-0.11.0-mips64-user-fix.patch/1.1/Fri Oct 23 10:11:21 2009//
+/qemu-ifdown/1.1/Sun May 17 21:20:29 2009//
+/qemu-ifup/1.1/Sun May 17 21:20:29 2009//
+D
diff --git a/app-emulation/qemu/files/CVS/Repository b/app-emulation/qemu/files/CVS/Repository
new file mode 100644 (file)
index 0000000..e7b6c61
--- /dev/null
@@ -0,0 +1 @@
+gentoo-x86/app-emulation/qemu/files
diff --git a/app-emulation/qemu/files/CVS/Root b/app-emulation/qemu/files/CVS/Root
new file mode 100644 (file)
index 0000000..c616264
--- /dev/null
@@ -0,0 +1 @@
+:ext:slyfox@cvs.gentoo.org:/var/cvsroot
diff --git a/app-emulation/qemu/files/qemu-0.11.0-mips64-user-fix.patch b/app-emulation/qemu/files/qemu-0.11.0-mips64-user-fix.patch
new file mode 100644 (file)
index 0000000..c069f89
--- /dev/null
@@ -0,0 +1,11 @@
+--- qemu-0.11.0.orig/linux-user/main.c 2009-10-23 02:19:57.000000000 +0200
++++ qemu-0.11.0/linux-user/main.c      2009-10-23 02:47:09.000000000 +0200
+@@ -1469,6 +1469,8 @@
+ #ifdef TARGET_MIPS
++#define TARGET_QEMU_ESIGRETURN 255
++
+ #define MIPS_SYS(name, args) args,
+ static const uint8_t mips_syscall_args[] = {
diff --git a/app-emulation/qemu/files/qemu-ifdown b/app-emulation/qemu/files/qemu-ifdown
new file mode 100644 (file)
index 0000000..c173e43
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -x /sbin/brctl ]; then
+  BRCTL="/sbin/brctl"
+elif [ -x /usr/sbin/brctl ]; then
+  BRCTL="/usr/sbin/brctl"
+else
+  echo "no bridge utils installed"
+  exit 1
+fi
+
+if [ -x /sbin/ip ]; then
+  switch=( $(/sbin/ip route list | awk '/^default / { sub(/.* dev /, ""); print $1 }') )
+  ${BRCTL} delif ${switch} $1
+  /sbin/ip link set $1 down
+else
+  switch=( $(/bin/netstat -rn | awk '/^0\.0\.0\.0/ { print $NF }') )
+  ${BRCTL} delif ${switch} $1
+  /sbin/ifconfig $1 down
+fi
diff --git a/app-emulation/qemu/files/qemu-ifup b/app-emulation/qemu/files/qemu-ifup
new file mode 100644 (file)
index 0000000..4a30e7d
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ -x /sbin/brctl ]; then
+  BRCTL="/sbin/brctl"
+elif [ -x /usr/sbin/brctl ]; then
+  BRCTL="/usr/sbin/brctl"
+else
+  echo "no bridge utils installed"
+  exit 1
+fi
+
+if [ -x /sbin/ip ]; then
+  switch=( $(/sbin/ip route list | awk '/^default / { sub(/.* dev /, ""); print $1 }') )
+  /sbin/ip link set $1 up
+else
+  switch=( $(/bin/netstat -rn | awk '/^0\.0\.0\.0/ { print $NF }') )
+  /sbin/ifconfig $1 0.0.0.0 up
+fi
+
+[[ ${switch#} -ne "1" ]] && logger -t qemu "$0 found more than one bridge connecting $1 to ${switch}"
+${BRCTL} addif ${switch} $1
+
diff --git a/app-emulation/qemu/metadata.xml b/app-emulation/qemu/metadata.xml
new file mode 100644 (file)
index 0000000..a02b242
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qemu</herd>
+<maintainer>
+  <email>lu_zero@gentoo.org</email>
+</maintainer>
+<use>
+       <flag name='aio'>Enables support for Linux's Async IO</flag>
+    <flag name='brltty'>Adds support for braille displays using brltty</flag>
+    <flag name='fdt'>Enables firmware device tree support</flag>
+       <flag name='kqemu'>Enables the kernel acceleration module on a x86/x86-64 cpu</flag>
+       <flag name='kvm'>Use the KVM (Kernel Virtual Machine) infrastructure on compatible hardware</flag>
+       <flag name='alsa'>Enable alsa output for sound emulation</flag>
+       <flag name='esd'>Enable esound output for sound emulation</flag>
+       <flag name='gnutls'>Enable TLS support for the VNC console server</flag>
+       <flag name='ncurses'>Enable the ncurses-based console</flag>
+       <flag name='pulseaudio'>Enable pulseaudio output for sound emulation</flag>
+       <flag name='qemu-ifup'>Provides the qemu-ifup script for use with
+                                                  QEMU's built in bridging</flag>
+       <flag name='sdl'>Enable the SDL-based console</flag>
+       <flag name='static'>Enable static build, useful to chroot in user-mode
+                                               emulation</flag>
+       <flag name='vde'>Enable Virtual Distributed Ethernet (VDE) based networking</flag>
+</use>
+</pkgmetadata>
diff --git a/app-emulation/qemu/qemu-0.11.1.ebuild b/app-emulation/qemu/qemu-0.11.1.ebuild
new file mode 100644 (file)
index 0000000..7b5adc9
--- /dev/null
@@ -0,0 +1,150 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.11.1.ebuild,v 1.5 2011/03/24 19:50:14 angelos Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic toolchain-funcs linux-info
+
+DESCRIPTION="QEMU emulator and ABI wrapper"
+HOMEPAGE="http://www.qemu.org"
+SRC_URI="http://download.savannah.gnu.org/releases/qemu/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="alsa bluetooth esd gnutls ncurses pulseaudio sasl +sdl vde kqemu kvm"
+
+COMMON_TARGETS="i386 x86_64 arm cris m68k mips mipsel mips64 mips64el ppc ppc64 sh4 sh4eb sparc"
+
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} ppcemb"
+IUSE_USER_TARGETS="${COMMON_TARGETS} alpha armeb ppc64abi32 sparc64 sparc32plus"
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+       IUSE="${IUSE} +qemu_softmmu_targets_${target}"
+done
+
+for target in ${IUSE_USER_TARGETS}; do
+       IUSE="${IUSE} +qemu_user_targets_${target}"
+done
+
+RDEPEND="!app-emulation/qemu-softmmu
+       !app-emulation/qemu-user
+       !<app-emulation/qemu-0.10.3
+       sys-libs/zlib
+       alsa? ( >=media-libs/alsa-lib-1.0.13 )
+       esd? ( media-sound/esound )
+       pulseaudio? ( media-sound/pulseaudio )
+       gnutls? ( net-libs/gnutls )
+       ncurses? ( sys-libs/ncurses )
+       sasl? ( dev-libs/cyrus-sasl )
+       sdl? ( >=media-libs/libsdl-1.2.11 )
+       vde? ( net-misc/vde )
+       kvm? ( >=sys-kernel/linux-headers-2.6.29 )
+       bluetooth? ( net-wireless/bluez )
+       kqemu? ( >=app-emulation/kqemu-1.4.0_pre1 )"
+#      fdt? ( sys-apps/dtc )
+
+DEPEND="${RDEPEND}
+               gnutls? ( dev-util/pkgconfig )
+               app-text/texi2html"
+
+src_prepare() {
+       # avoid fdt till an updated release appears
+       sed -i -e 's:fdt="yes":fdt="no":' configure
+       # prevent docs to get automatically installed
+       sed -i '/$(DESTDIR)$(docdir)/d' Makefile
+       # Alter target makefiles to accept CFLAGS set via flag-o
+       sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+               Makefile Makefile.target tests/Makefile
+       [[ -x /sbin/paxctl ]] && \
+               sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
+                       Makefile.target
+       # Append CFLAGS while linking
+       sed -i 's/$(LDFLAGS)/$(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS)/' rules.mak
+       epatch "${FILESDIR}/qemu-0.11.0-mips64-user-fix.patch"
+}
+
+src_configure() {
+       local mycc conf_opts audio_opts softmmu_targets user_targets target_list
+
+       for target in ${IUSE_SOFTMMU_TARGETS} ; do
+               use "qemu_softmmu_targets_${target}" && \
+                       softmmu_targets="${softmmu_targets} ${target}-softmmu"
+       done
+
+       for target in ${IUSE_USER_TARGETS} ; do
+               use "qemu_user_targets_${target}" && \
+                       user_targets="${user_targets} ${target}-linux-user"
+       done
+
+       conf_opts="--disable-darwin-user --disable-bsd-user --disable-strip"
+
+       if test ! -z "${softmmu_targets}" ; then
+               einfo "Building following softmmu targets: ${softmmu_targets}"
+               use gnutls || conf_opts="$conf_opts --disable-vnc-tls"
+               use ncurses || conf_opts="$conf_opts --disable-curses"
+               use sasl || conf_opts="$conf_opts --disable-vnc-sasl"
+               use sdl || conf_opts="$conf_opts --disable-sdl"
+               use vde || conf_opts="$conf_opts --disable-vde"
+               use bluetooth || conf_opts="$conf_opts --disable-bluez"
+               use kqemu || conf_opts="$conf_opts --disable-kqemu"
+               use kvm || conf_opts="$conf_opts --disable-kvm"
+
+               audio_opts="oss"
+               use alsa && audio_opts="alsa $audio_opts"
+               use esd && audio_opts="esd $audio_opts"
+               use pulseaudio && audio_opts="pa $audio_opts"
+               use sdl && audio_opts="sdl $audio_opts"
+       else
+               einfo "Disabling softmmu emulation (no softmmu targets specified)"
+               conf_opts="$conf_opts --disable-system --disable-vnc-tls \
+               --disable-curses --disable-sdl --disable-vde \
+               --disable-kqemu --disable-kvm"
+       fi
+
+       if test ! -z "${user_targets}" ; then
+               einfo "Building following user targets: ${user_targets}"
+               conf_opts="$conf_opts --enable-linux-user"
+       else
+               einfo "Disabling usermode emulation (no usermode targets specified)"
+               conf_opts="$conf_opts --disable-linux-user"
+       fi
+
+#      use fdt || conf_opts="$conf_opts --disable-fdt"
+
+       conf_opts="$conf_opts --prefix=/usr"
+
+       target_list="${softmmu_targets} ${user_targets}"
+
+       filter-flags -fPIE
+
+       ./configure ${conf_opts} \
+               --audio-drv-list="$audio_opts" \
+               --cc="$(tc-getCC)" --host-cc="$(tc-getCC)" \
+               --target-list="${target_list}" \
+               || die "configure failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+
+       exeinto /etc/qemu
+       doexe \
+               "${FILESDIR}/qemu-ifup" \
+               "${FILESDIR}/qemu-ifdown" \
+               || die "qemu interface scripts failed"
+
+       dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
+       newdoc pc-bios/README README.pc-bios || die
+       dohtml qemu-doc.html qemu-tech.html || die
+}
+
+pkg_postinst() {
+       elog "You will need the Universal TUN/TAP driver compiled into your"
+       elog "kernel or loaded as a module to use the virtual network device"
+       elog "if using -net tap.  You will also need support for 802.1d"
+       elog "Ethernet Bridging and a configured bridge if using the provided"
+       elog "qemu-ifup script from /etc/qemu."
+       echo
+}
diff --git a/app-emulation/qemu/qemu-0.14.0.ebuild b/app-emulation/qemu/qemu-0.14.0.ebuild
new file mode 100644 (file)
index 0000000..d49c521
--- /dev/null
@@ -0,0 +1,198 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.14.0.ebuild,v 1.3 2011/02/20 22:07:37 zmedico Exp $
+
+EAPI="2"
+
+if [[ ${PV} = *9999* ]]; then
+       EGIT_REPO_URI="git://git.qemu.org/qemu.git"
+       GIT_ECLASS="git"
+fi
+
+inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs
+
+if [[ ${PV} = *9999* ]]; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="http://download.savannah.gnu.org/releases/qemu/${P}.tar.gz"
+       KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="QEMU emulator and ABI wrapper"
+HOMEPAGE="http://www.qemu.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+# xen is disabled until the deps are fixed
+IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg ncurses \
+png pulseaudio qemu-ifup sasl sdl ssl static vde"
+
+COMMON_TARGETS="i386 x86_64 arm cris m68k microblaze mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64"
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} mips64 mips64el ppcemb"
+IUSE_USER_TARGETS="${COMMON_TARGETS} alpha armeb ppc64abi32 sparc32plus"
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+       IUSE="${IUSE} +qemu_softmmu_targets_${target}"
+done
+
+for target in ${IUSE_USER_TARGETS}; do
+       IUSE="${IUSE} +qemu_user_targets_${target}"
+done
+
+RESTRICT="test"
+
+RDEPEND="
+       !app-emulation/qemu-kvm
+       !app-emulation/qemu-softmmu
+       !app-emulation/qemu-user
+       !app-emulation/qemu-kvm-spice
+       sys-apps/pciutils
+       >=sys-apps/util-linux-2.16.0
+       sys-libs/zlib
+       aio? ( dev-libs/libaio )
+       alsa? ( >=media-libs/alsa-lib-1.0.13 )
+       bluetooth? ( net-wireless/bluez )
+       brltty? ( app-accessibility/brltty )
+       curl? ( net-misc/curl )
+       esd? ( media-sound/esound )
+       fdt? ( >=sys-apps/dtc-1.2.0 )
+       jpeg? ( virtual/jpeg )
+       ncurses? ( sys-libs/ncurses )
+       png? ( media-libs/libpng )
+       pulseaudio? ( media-sound/pulseaudio )
+       qemu-ifup? ( sys-apps/iproute2 net-misc/bridge-utils )
+       sasl? ( dev-libs/cyrus-sasl )
+       sdl? ( >=media-libs/libsdl-1.2.11[X] )
+       ssl? ( net-libs/gnutls )
+       vde? ( net-misc/vde )
+"
+
+DEPEND="${RDEPEND}
+       app-text/texi2html
+       >=sys-kernel/linux-headers-2.6.29
+       ssl? ( dev-util/pkgconfig )
+"
+
+pkg_setup() {
+       use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64"
+}
+
+src_prepare() {
+       # prevent docs to get automatically installed
+       sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die
+       # Alter target makefiles to accept CFLAGS set via flag-o
+       sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+               Makefile Makefile.target || die
+       # append CFLAGS while linking
+       sed -i 's/$(LDFLAGS)/$(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS)/' rules.mak || die
+}
+
+src_configure() {
+       local conf_opts audio_opts user_targets
+
+       for target in ${IUSE_SOFTMMU_TARGETS} ; do
+               use "qemu_softmmu_targets_${target}" && \
+               softmmu_targets="${softmmu_targets} ${target}-softmmu"
+       done
+
+       for target in ${IUSE_USER_TARGETS} ; do
+               use "qemu_user_targets_${target}" && \
+               user_targets="${user_targets} ${target}-linux-user"
+       done
+
+       if [ -z "${softmmu_targets}" ]; then
+               conf_opts="${conf_opts} --disable-system"
+       else
+               einfo "Building the following softmmu targets: ${softmmu_targets}"
+       fi
+
+       if [ ! -z "${user_targets}" ]; then
+               einfo "Building the following user targets: ${user_targets}"
+               conf_opts="${conf_opts} --enable-linux-user"
+       else
+               conf_opts="${conf_opts} --disable-linux-user"
+       fi
+
+       # Fix QA issues. QEMU needs executable heaps and we need to mark it as such
+       conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap"
+
+       # Add support for static builds
+       use static && conf_opts="${conf_opts} --static"
+
+       # Fix the $(prefix)/etc issue
+       conf_opts="${conf_opts} --sysconfdir=/etc"
+
+       #config options
+       conf_opts="${conf_opts} $(use_enable aio linux-aio)"
+       conf_opts="${conf_opts} $(use_enable bluetooth bluez)"
+       conf_opts="${conf_opts} $(use_enable brltty brlapi)"
+       conf_opts="${conf_opts} $(use_enable curl)"
+       conf_opts="${conf_opts} $(use_enable fdt)"
+       conf_opts="${conf_opts} $(use_enable hardened user-pie)"
+       conf_opts="${conf_opts} $(use_enable jpeg vnc-jpeg)"
+       conf_opts="${conf_opts} $(use_enable ncurses curses)"
+       conf_opts="${conf_opts} $(use_enable png vnc-png)"
+       conf_opts="${conf_opts} $(use_enable sasl vnc-sasl)"
+       conf_opts="${conf_opts} $(use_enable sdl)"
+       conf_opts="${conf_opts} $(use_enable ssl vnc-tls)"
+       conf_opts="${conf_opts} $(use_enable vde)"
+       conf_opts="${conf_opts} --disable-xen"
+       conf_opts="${conf_opts} --disable-darwin-user --disable-bsd-user"
+
+       # audio options
+       audio_opts="oss"
+       use alsa && audio_opts="alsa ${audio_opts}"
+       use esd && audio_opts="esd ${audio_opts}"
+       use pulseaudio && audio_opts="pa ${audio_opts}"
+       use sdl && audio_opts="sdl ${audio_opts}"
+       ./configure --prefix=/usr \
+               --disable-strip \
+               --disable-werror \
+               --disable-kvm \
+               --enable-nptl \
+               --enable-uuid \
+               ${conf_opts} \
+               --audio-drv-list="${audio_opts}" \
+               --target-list="${softmmu_targets} ${user_targets}" \
+               --cc="$(tc-getCC)" \
+               --host-cc="$(tc-getBUILD_CC)" \
+               || die "configure failed"
+
+               # this is for qemu upstream's threaded support which is
+               # in development and broken
+               # the kvm project has its own support for threaded IO
+               # which is always on and works
+               # --enable-io-thread \
+}
+
+src_compile() {
+       # Restricting parallel build until we get a patch to fix this
+       emake || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+
+       if [ ! -z "${softmmu_targets}" ]; then
+               exeinto /etc/qemu
+               use qemu-ifup && { doexe \
+                       "${FILESDIR}/qemu-ifup" \
+                       "${FILESDIR}/qemu-ifdown" \
+                       || die "qemu interface scripts missing" ; }
+       fi
+
+       dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
+       newdoc pc-bios/README README.pc-bios || die
+       dohtml qemu-doc.html qemu-tech.html || die
+}
+
+pkg_postinst() {
+       use qemu-ifup || return
+       elog "You will need the Universal TUN/TAP driver compiled into your"
+       elog "kernel or loaded as a module to use the virtual network device"
+       elog "if using -net tap.  You will also need support for 802.1d"
+       elog "Ethernet Bridging and a configured bridge if using the provided"
+       elog "qemu-ifup script from /etc/qemu."
+       echo
+}
diff --git a/app-emulation/qemu/qemu-9999-r1.ebuild b/app-emulation/qemu/qemu-9999-r1.ebuild
new file mode 100644 (file)
index 0000000..41d32ec
--- /dev/null
@@ -0,0 +1,201 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-9999.ebuild,v 1.2 2011/09/20 22:34:01 mgorny Exp $
+
+EAPI="2"
+
+if [[ ${PV} = *9999* ]]; then
+       EGIT_REPO_URI="git://git.qemu.org/qemu.git
+               http://git.qemu.org/git/qemu.git"
+       GIT_ECLASS="git-2"
+fi
+
+inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs
+
+if [[ ${PV} = *9999* ]]; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="http://download.savannah.gnu.org/releases/qemu/${P}.tar.gz"
+       KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="QEMU emulator and ABI wrapper"
+HOMEPAGE="http://www.qemu.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+# xen is disabled until the deps are fixed
+IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg ncurses \
+png pulseaudio qemu-ifup sasl sdl ssl static vde"
+
+COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x"
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} mips64 mips64el ppcemb xtensa xtensaeb" # dropped lm32
+IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32"
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+       IUSE="${IUSE} +qemu_softmmu_targets_${target}"
+done
+
+for target in ${IUSE_USER_TARGETS}; do
+       IUSE="${IUSE} +qemu_user_targets_${target}"
+done
+
+RESTRICT="test"
+
+RDEPEND="
+       !app-emulation/qemu-kvm
+       !app-emulation/qemu-softmmu
+       !app-emulation/qemu-user
+       !app-emulation/qemu-kvm-spice
+       sys-apps/pciutils
+       >=sys-apps/util-linux-2.16.0
+       sys-libs/zlib
+       aio? ( dev-libs/libaio )
+       alsa? ( >=media-libs/alsa-lib-1.0.13 )
+       bluetooth? ( net-wireless/bluez )
+       brltty? ( app-accessibility/brltty )
+       curl? ( net-misc/curl )
+       esd? ( media-sound/esound )
+       fdt? ( >=sys-apps/dtc-1.2.0 )
+       jpeg? ( virtual/jpeg )
+       ncurses? ( sys-libs/ncurses )
+       png? ( media-libs/libpng )
+       pulseaudio? ( media-sound/pulseaudio )
+       qemu-ifup? ( sys-apps/iproute2 net-misc/bridge-utils )
+       sasl? ( dev-libs/cyrus-sasl )
+       sdl? ( >=media-libs/libsdl-1.2.11[X] )
+       ssl? ( net-libs/gnutls )
+       vde? ( net-misc/vde )
+"
+
+DEPEND="${RDEPEND}
+       app-text/texi2html
+       >=sys-kernel/linux-headers-2.6.29
+       ssl? ( dev-util/pkgconfig )
+"
+
+pkg_setup() {
+       use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64"
+}
+
+src_prepare() {
+       # prevent docs to get automatically installed
+       sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die
+       # Alter target makefiles to accept CFLAGS set via flag-o
+       sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+               Makefile Makefile.target || die
+       # append CFLAGS while linking
+       sed -i 's/$(LDFLAGS)/$(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS)/' rules.mak || die
+}
+
+src_configure() {
+       local conf_opts audio_opts user_targets
+
+       for target in ${IUSE_SOFTMMU_TARGETS} ; do
+               use "qemu_softmmu_targets_${target}" && \
+               softmmu_targets="${softmmu_targets} ${target}-softmmu"
+       done
+
+       for target in ${IUSE_USER_TARGETS} ; do
+               use "qemu_user_targets_${target}" && \
+               user_targets="${user_targets} ${target}-linux-user"
+       done
+
+       if [ -z "${softmmu_targets}" ]; then
+               conf_opts="${conf_opts} --disable-system"
+       else
+               einfo "Building the following softmmu targets: ${softmmu_targets}"
+       fi
+
+       if [ ! -z "${user_targets}" ]; then
+               einfo "Building the following user targets: ${user_targets}"
+               conf_opts="${conf_opts} --enable-linux-user"
+       else
+               conf_opts="${conf_opts} --disable-linux-user"
+       fi
+
+       # Fix QA issues. QEMU needs executable heaps and we need to mark it as such
+       conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap"
+
+       # Add support for static builds
+       use static && conf_opts="${conf_opts} --static"
+
+       # Fix the $(prefix)/etc issue
+       conf_opts="${conf_opts} --sysconfdir=/etc"
+
+       #config options
+       conf_opts="${conf_opts} $(use_enable aio linux-aio)"
+       conf_opts="${conf_opts} $(use_enable bluetooth bluez)"
+       conf_opts="${conf_opts} $(use_enable brltty brlapi)"
+       conf_opts="${conf_opts} $(use_enable curl)"
+       conf_opts="${conf_opts} $(use_enable fdt)"
+       conf_opts="${conf_opts} $(use_enable hardened pie)"
+       conf_opts="${conf_opts} $(use_enable jpeg vnc-jpeg)"
+       conf_opts="${conf_opts} $(use_enable ncurses curses)"
+       conf_opts="${conf_opts} $(use_enable png vnc-png)"
+       conf_opts="${conf_opts} $(use_enable sasl vnc-sasl)"
+       conf_opts="${conf_opts} $(use_enable sdl)"
+       conf_opts="${conf_opts} $(use_enable ssl vnc-tls)"
+       conf_opts="${conf_opts} $(use_enable vde)"
+       conf_opts="${conf_opts} --disable-xen"
+       conf_opts="${conf_opts} --disable-darwin-user --disable-bsd-user"
+
+       # audio options
+       audio_opts="oss"
+       use alsa && audio_opts="alsa ${audio_opts}"
+       use esd && audio_opts="esd ${audio_opts}"
+       use pulseaudio && audio_opts="pa ${audio_opts}"
+       use sdl && audio_opts="sdl ${audio_opts}"
+
+       set -- --prefix=/usr \
+               --disable-strip \
+               --disable-werror \
+               --disable-kvm \
+               --enable-nptl \
+               --enable-uuid \
+               ${conf_opts} \
+               --audio-drv-list="${audio_opts}" \
+               --target-list="${softmmu_targets} ${user_targets}" \
+               --cc="$(tc-getCC)" \
+               --host-cc="$(tc-getBUILD_CC)"
+
+       echo ./configure "$@" # show actual options
+       ./configure "$@" || die "configure failed"
+               # this is for qemu upstream's threaded support which is
+               # in development and broken
+               # the kvm project has its own support for threaded IO
+               # which is always on and works
+               # --enable-io-thread \
+}
+
+src_compile() {
+       # Restricting parallel build until we get a patch to fix this
+       emake || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+
+       if [ ! -z "${softmmu_targets}" ]; then
+               exeinto /etc/qemu
+               use qemu-ifup && { doexe \
+                       "${FILESDIR}/qemu-ifup" \
+                       "${FILESDIR}/qemu-ifdown" \
+                       || die "qemu interface scripts missing" ; }
+       fi
+
+       dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
+       newdoc pc-bios/README README.pc-bios || die
+       dohtml qemu-doc.html qemu-tech.html || die
+}
+
+pkg_postinst() {
+       use qemu-ifup || return
+       elog "You will need the Universal TUN/TAP driver compiled into your"
+       elog "kernel or loaded as a module to use the virtual network device"
+       elog "if using -net tap.  You will also need support for 802.1d"
+       elog "Ethernet Bridging and a configured bridge if using the provided"
+       elog "qemu-ifup script from /etc/qemu."
+       echo
+}
diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild
new file mode 100644 (file)
index 0000000..40743bc
--- /dev/null
@@ -0,0 +1,199 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-9999.ebuild,v 1.2 2011/09/20 22:34:01 mgorny Exp $
+
+EAPI="2"
+
+if [[ ${PV} = *9999* ]]; then
+       EGIT_REPO_URI="git://git.qemu.org/qemu.git
+               http://git.qemu.org/git/qemu.git"
+       GIT_ECLASS="git-2"
+fi
+
+inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs
+
+if [[ ${PV} = *9999* ]]; then
+       SRC_URI=""
+       KEYWORDS=""
+else
+       SRC_URI="http://download.savannah.gnu.org/releases/qemu/${P}.tar.gz"
+       KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
+
+DESCRIPTION="QEMU emulator and ABI wrapper"
+HOMEPAGE="http://www.qemu.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+# xen is disabled until the deps are fixed
+IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg ncurses \
+png pulseaudio qemu-ifup sasl sdl ssl static vde"
+
+COMMON_TARGETS="i386 x86_64 arm cris m68k microblaze mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64"
+IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} mips64 mips64el ppcemb"
+IUSE_USER_TARGETS="${COMMON_TARGETS} alpha armeb ppc64abi32 sparc32plus"
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+       IUSE="${IUSE} +qemu_softmmu_targets_${target}"
+done
+
+for target in ${IUSE_USER_TARGETS}; do
+       IUSE="${IUSE} +qemu_user_targets_${target}"
+done
+
+RESTRICT="test"
+
+RDEPEND="
+       !app-emulation/qemu-kvm
+       !app-emulation/qemu-softmmu
+       !app-emulation/qemu-user
+       !app-emulation/qemu-kvm-spice
+       sys-apps/pciutils
+       >=sys-apps/util-linux-2.16.0
+       sys-libs/zlib
+       aio? ( dev-libs/libaio )
+       alsa? ( >=media-libs/alsa-lib-1.0.13 )
+       bluetooth? ( net-wireless/bluez )
+       brltty? ( app-accessibility/brltty )
+       curl? ( net-misc/curl )
+       esd? ( media-sound/esound )
+       fdt? ( >=sys-apps/dtc-1.2.0 )
+       jpeg? ( virtual/jpeg )
+       ncurses? ( sys-libs/ncurses )
+       png? ( media-libs/libpng )
+       pulseaudio? ( media-sound/pulseaudio )
+       qemu-ifup? ( sys-apps/iproute2 net-misc/bridge-utils )
+       sasl? ( dev-libs/cyrus-sasl )
+       sdl? ( >=media-libs/libsdl-1.2.11[X] )
+       ssl? ( net-libs/gnutls )
+       vde? ( net-misc/vde )
+"
+
+DEPEND="${RDEPEND}
+       app-text/texi2html
+       >=sys-kernel/linux-headers-2.6.29
+       ssl? ( dev-util/pkgconfig )
+"
+
+pkg_setup() {
+       use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64"
+}
+
+src_prepare() {
+       # prevent docs to get automatically installed
+       sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die
+       # Alter target makefiles to accept CFLAGS set via flag-o
+       sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+               Makefile Makefile.target || die
+       # append CFLAGS while linking
+       sed -i 's/$(LDFLAGS)/$(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS)/' rules.mak || die
+}
+
+src_configure() {
+       local conf_opts audio_opts user_targets
+
+       for target in ${IUSE_SOFTMMU_TARGETS} ; do
+               use "qemu_softmmu_targets_${target}" && \
+               softmmu_targets="${softmmu_targets} ${target}-softmmu"
+       done
+
+       for target in ${IUSE_USER_TARGETS} ; do
+               use "qemu_user_targets_${target}" && \
+               user_targets="${user_targets} ${target}-linux-user"
+       done
+
+       if [ -z "${softmmu_targets}" ]; then
+               conf_opts="${conf_opts} --disable-system"
+       else
+               einfo "Building the following softmmu targets: ${softmmu_targets}"
+       fi
+
+       if [ ! -z "${user_targets}" ]; then
+               einfo "Building the following user targets: ${user_targets}"
+               conf_opts="${conf_opts} --enable-linux-user"
+       else
+               conf_opts="${conf_opts} --disable-linux-user"
+       fi
+
+       # Fix QA issues. QEMU needs executable heaps and we need to mark it as such
+       conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap"
+
+       # Add support for static builds
+       use static && conf_opts="${conf_opts} --static"
+
+       # Fix the $(prefix)/etc issue
+       conf_opts="${conf_opts} --sysconfdir=/etc"
+
+       #config options
+       conf_opts="${conf_opts} $(use_enable aio linux-aio)"
+       conf_opts="${conf_opts} $(use_enable bluetooth bluez)"
+       conf_opts="${conf_opts} $(use_enable brltty brlapi)"
+       conf_opts="${conf_opts} $(use_enable curl)"
+       conf_opts="${conf_opts} $(use_enable fdt)"
+       conf_opts="${conf_opts} $(use_enable hardened user-pie)"
+       conf_opts="${conf_opts} $(use_enable jpeg vnc-jpeg)"
+       conf_opts="${conf_opts} $(use_enable ncurses curses)"
+       conf_opts="${conf_opts} $(use_enable png vnc-png)"
+       conf_opts="${conf_opts} $(use_enable sasl vnc-sasl)"
+       conf_opts="${conf_opts} $(use_enable sdl)"
+       conf_opts="${conf_opts} $(use_enable ssl vnc-tls)"
+       conf_opts="${conf_opts} $(use_enable vde)"
+       conf_opts="${conf_opts} --disable-xen"
+       conf_opts="${conf_opts} --disable-darwin-user --disable-bsd-user"
+
+       # audio options
+       audio_opts="oss"
+       use alsa && audio_opts="alsa ${audio_opts}"
+       use esd && audio_opts="esd ${audio_opts}"
+       use pulseaudio && audio_opts="pa ${audio_opts}"
+       use sdl && audio_opts="sdl ${audio_opts}"
+       ./configure --prefix=/usr \
+               --disable-strip \
+               --disable-werror \
+               --disable-kvm \
+               --enable-nptl \
+               --enable-uuid \
+               ${conf_opts} \
+               --audio-drv-list="${audio_opts}" \
+               --target-list="${softmmu_targets} ${user_targets}" \
+               --cc="$(tc-getCC)" \
+               --host-cc="$(tc-getBUILD_CC)" \
+               || die "configure failed"
+
+               # this is for qemu upstream's threaded support which is
+               # in development and broken
+               # the kvm project has its own support for threaded IO
+               # which is always on and works
+               # --enable-io-thread \
+}
+
+src_compile() {
+       # Restricting parallel build until we get a patch to fix this
+       emake || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "make install failed"
+
+       if [ ! -z "${softmmu_targets}" ]; then
+               exeinto /etc/qemu
+               use qemu-ifup && { doexe \
+                       "${FILESDIR}/qemu-ifup" \
+                       "${FILESDIR}/qemu-ifdown" \
+                       || die "qemu interface scripts missing" ; }
+       fi
+
+       dodoc Changelog MAINTAINERS TODO pci-ids.txt || die
+       newdoc pc-bios/README README.pc-bios || die
+       dohtml qemu-doc.html qemu-tech.html || die
+}
+
+pkg_postinst() {
+       use qemu-ifup || return
+       elog "You will need the Universal TUN/TAP driver compiled into your"
+       elog "kernel or loaded as a module to use the virtual network device"
+       elog "if using -net tap.  You will also need support for 802.1d"
+       elog "Ethernet Bridging and a configured bridge if using the provided"
+       elog "qemu-ifup script from /etc/qemu."
+       echo
+}