summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2012-07-16 21:07:49 +0000
committerDoug Goldstein <cardoe@gentoo.org>2012-07-16 21:07:49 +0000
commit74a9e4e309ffa7aa6e548cbe2da0bd85b75ccce9 (patch)
tree49939a145d2ca7c7a08888f1424da449f8530a6d
parentRemove unnecessary swig dependency and die statement. (diff)
downloadhistorical-74a9e4e309ffa7aa6e548cbe2da0bd85b75ccce9.tar.gz
historical-74a9e4e309ffa7aa6e548cbe2da0bd85b75ccce9.tar.bz2
historical-74a9e4e309ffa7aa6e548cbe2da0bd85b75ccce9.zip
Version bump.
Package-Manager: portage-2.2.0_alpha118/cvs/Linux x86_64
-rw-r--r--app-emulation/qemu-kvm/ChangeLog7
-rw-r--r--app-emulation/qemu-kvm/Manifest4
-rw-r--r--app-emulation/qemu-kvm/qemu-kvm-1.1.1.ebuild369
3 files changed, 378 insertions, 2 deletions
diff --git a/app-emulation/qemu-kvm/ChangeLog b/app-emulation/qemu-kvm/ChangeLog
index ede3cfe9a3c4..f7361a609586 100644
--- a/app-emulation/qemu-kvm/ChangeLog
+++ b/app-emulation/qemu-kvm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/qemu-kvm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-kvm/ChangeLog,v 1.135 2012/07/11 02:01:15 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-kvm/ChangeLog,v 1.136 2012/07/16 21:07:49 cardoe Exp $
+
+*qemu-kvm-1.1.1 (16 Jul 2012)
+
+ 16 Jul 2012; Doug Goldstein <cardoe@gentoo.org> +qemu-kvm-1.1.1.ebuild:
+ Version bump.
10 Jul 2012; Doug Goldstein <cardoe@gentoo.org> qemu-kvm-9999.ebuild:
Update to latest version. Fix --enable-vnc-thread as its documented in the
diff --git a/app-emulation/qemu-kvm/Manifest b/app-emulation/qemu-kvm/Manifest
index 5396bde723e8..a673a3661ec4 100644
--- a/app-emulation/qemu-kvm/Manifest
+++ b/app-emulation/qemu-kvm/Manifest
@@ -17,11 +17,13 @@ DIST qemu-kvm-1.0.1.tar.gz 6214796 SHA256 57bcd26342af2303663028db9e9956a8b487ba
DIST qemu-kvm-1.0.tar.gz 6210473 SHA256 b711ead5a0a28bf43e7e51ce2082e37120a3527ab012c609bc30fb94d37e116e SHA512 0f1bb2eb486f2d2eff0dc18e7909c78ec28a7862078c6a702813b496e3d1d9882158e97e6aaa14aac253b5b6ea3daf0edd169572ae3fb379edde90bd49897b96 WHIRLPOOL 4fb5d73b1f961edbcbe9a686ede02cf82c2b204a3974b419041d9e1d65198b465e02ca72ee57a7fcbe9bd866bc9a8200b8358119a08db14d14f6f0d80d2c82b5
DIST qemu-kvm-1.1.0-bp-1.tar.xz 3428 SHA256 5cfc39b126f0b804ca469e9e45d5207db1cb949eaf784a960b68fd05858a98d2 SHA512 75665dad1b4a048a071fc036a64cbccaa399974c6faa5d0541806b1af2439cc47d26c6ec901205a5fcd2e0f9680393889f6ed926065c53107410070e53d096a9 WHIRLPOOL 7b1712f3c21df279f3939b81b59042160132cd617de54adcf66b394c78598ebeec8137d26587cf1a4d02944ea56075434778285b84b47c265972b76e258a1dfe
DIST qemu-kvm-1.1.0.tar.gz 6598841 SHA256 c32445f4610e324f0f5c34d00d055dd8b4154705968d59588efe60a8fd80ecbf SHA512 ae18901de93652e026d01de1af923b1cd6abbc623934944a7e8bcd151f731deba4ef66a32f7940b6d7ac8c8a0fbc8a6435fbf416ef423be5908b170d3f4b82d2 WHIRLPOOL dad81e28b046225384f081fba5dc61a3a00c288a5925993045936203720b0e288eaba61038713a959d65d5701c3d90405d46c361546f6edd55ac6c1adc8a31cb
+DIST qemu-kvm-1.1.1.tar.gz 6599376 SHA256 c6fab57ccadcad5deb34728623840a0141a0f3c8f29d0c253db577f059c796df SHA512 1106a35212cdac1fe5b043af6754595d03232f22bf74cdab86973759adb3cff2d3d7b42290883d2d99d97d163fe274de0108a05eed906ffdc3349c0631f52492 WHIRLPOOL 4d9b2b788a7f87104032635b3b6e2cd96275b92683e3003510b0951536ed6bcb959959bc7529e3f912a7a2055b5c1710b9310d591a8b443a17a231e5b86f6105
EBUILD qemu-kvm-0.15.1-r1.ebuild 9554 SHA256 5df35e4282ad6e801d76ee77c10d93388e3933ea1da51ce0e84686029be89850 SHA512 1d29056c2ae381bdf337e04b151b9f301f3b4386196bb5574234c0fe76906fd0eb6f1445db8228581b4157a34dd04a8cc2ffd7622ab663b7c2d9d56ee4569680 WHIRLPOOL f1bbdaea0d8b45986ea64bfe19d33d9bdad13cfda9440590440bf79c1b039a7c8d9e13b176e03e72899c675875e2c4c6c0160f8be5e3c8d332a5c7402a7a44cd
EBUILD qemu-kvm-1.0-r3.ebuild 11641 SHA256 b9834fb044c515f8c0bfa2aa3770f2ce9de842079436259e5857d1e8379c08c7 SHA512 b16d3d7dd2d6f90fcc19831b600691460b6eb6e8a3d8ba5ddfc5fdd0018b90c888837e8bacc2d8a928df6e24dd486e0c1f3b68e207835cb3ab1597d89f3e91e6 WHIRLPOOL 3770928f0afb39ae9fc6a0aaf86f0e892d7be84292407e358df02d59fd37ddb71e5c82c8e217ceba33bc7054e706a4856fd58cf3e1f90eb34e72d12d013daa21
EBUILD qemu-kvm-1.0.1-r1.ebuild 12205 SHA256 2d0937b952b3ef20d9e906341abed691199b2a0cd97ea945e4fde9d4f1889843 SHA512 d1b3ade271a5c8ca3f6dd5e01bd5e1487faefd1657d41cde8b1427d13c1792f3794815d6b4f9b1c044f97dcde28ac9998d56b767fbb39471c17621a454d29a10 WHIRLPOOL 49cc3c97cfdaac12ffd48212a99aaeb9b27af871381d2d5d602c186d1498164d7c2058a75e1590331f99368e6618c959396d16ed9feaebf0d4d1ac1a07108d3e
EBUILD qemu-kvm-1.0.1.ebuild 11479 SHA256 6da24cfe70e532037576f6893e894686e9af15dd517bfcdb28e2dbc921a3832b SHA512 7b20463967947dc5398c45a5c9cdafb4a489f7acbf921c537f0b7286e07fa687f6f19e47713161c52cc43a9d4d003e706cee5aef2f0ece8bc6a768082cb15390 WHIRLPOOL 3d845dab92364b97545f996adbf7af1b64abd5e1c90c1aacd0d35dab038ea3d024ea086b14a26352f72df1dc290c750f3087a100a5405ddc7bd0f2888f1c58c6
EBUILD qemu-kvm-1.1.0.ebuild 11775 SHA256 bfb2d973e6357d11c2806c5a859fb842afdf6742dba38c4f36d43a8dd9ce2ec6 SHA512 028ed922a80a9005e1cd77a7356778845778f15f6b62876e983527f8ea46afdfbf67019168182043d41e3959c7c7ccb1065f2938a2dc422bc2b34f4a3b7274d6 WHIRLPOOL 2c8c9654799224bdf030adc3f8c3f106cf1a9e78f9034c4708ed151d16b8007b5474cf45718e67d635024c319fb6c6310c77949bd7b390d9a57438ac636f9b77
+EBUILD qemu-kvm-1.1.1.ebuild 11775 SHA256 e126c2c644bdb287549bda00bb555f2ba1003474775ff8f8cc41a10e4fcfa636 SHA512 eed3b6367bbc51f461da47c5ee981c63f6df02d43e65d2147ee9a39f9ed0a5412e35df45ed22dfb379de81e7e443f363d888afdd5917b6825044c39a1f97d382 WHIRLPOOL 7cbc7286f7a84da6ed03f8bc50cb8d5c98b43314d1617f2114a9b8be7121cb88dfe8b85535d57e6b1bff96ed7f206d0fb8eee0856de0da5bd20575ce2f69ba0c
EBUILD qemu-kvm-9999.ebuild 11793 SHA256 d4fc2da484a0e8e6610a81dd289b30f78e63a8922e68ef1a95e4dee5720e72ea SHA512 40f5f23cb4a8e6db79364d4b77d484f01f813e739ea77c86a5d79645bf742f84293e0877a73bc1eca3075e8ca1687c5dc438f99d7da441164aac67e037b23bd2 WHIRLPOOL e51161285a530231a82abeb24f499c6964086db9395c08689cdeeac8d5619d9ecd9be94a8d277c92155f198222cbcd71a45da5509aa0c5b84437a5bc9495d3f7
-MISC ChangeLog 26938 SHA256 e2ddc41405a00d17a733a527f06b01f3b4820ffe254f05ffd866f7293645f20c SHA512 30ec1c0df0de750bff57b28b162959893877754dca6dc5585817106de9015ca258b46092ab4a1a5f2555c3ef87c338efac4286b5e9b05b2e8d7ec59b81dbac0f WHIRLPOOL 9a07a35ac3dac25f46c67d471016c255297799bd0e9789f947c0ad8b4475ac4adc0dc9d6423634c2616295642e6a808d29796424c31ca5bb0e9f6f0c3242a298
+MISC ChangeLog 27060 SHA256 7e8dae4e109292f4542b2d61101bbac7480e758651c1f416c174fa39e71cc8c4 SHA512 4833d293ad294af2ed5c4448713782328a40e0448f14b5d743cffebcc91fbfb85596d45e1efe438e32f5226469bff60346a13b7010aff884f495c147b6176780 WHIRLPOOL 3388ed5c1da48d9862eda1f0c8b362a5702e80dcfafe9c8e92bc749c75890ef4c5a4d5f5760cdc473c3b1c44d3165523fc8c344c30553e288478f876709695de
MISC metadata.xml 2416 SHA256 1613b0e695f6cdd5c21b0b6e5f470adc250b261a8a40bfb3c7f246d3f590acf9 SHA512 e6906e146aded4f9e182fc8da99a578800b91287f5d5446c53d08ae764304c2ca02002098f61032f547873f808554cac2d4b29115ce0dcea36df41e9e6667ec8 WHIRLPOOL da9ff6660bb89b3b4077bfb52f18098eb7392ac0e1af05028950c9843c03be6f6a0765ec9577e6a0d8f36fd6b130828c52f31a0d020034531a944dca516009e3
diff --git a/app-emulation/qemu-kvm/qemu-kvm-1.1.1.ebuild b/app-emulation/qemu-kvm/qemu-kvm-1.1.1.ebuild
new file mode 100644
index 000000000000..d7bc948f2eb3
--- /dev/null
+++ b/app-emulation/qemu-kvm/qemu-kvm-1.1.1.ebuild
@@ -0,0 +1,369 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-kvm/qemu-kvm-1.1.1.ebuild,v 1.1 2012/07/16 21:07:49 cardoe Exp $
+
+EAPI="4"
+
+PYTHON_DEPEND="2"
+inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user
+#BACKPORTS=1
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git"
+ inherit git-2
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="mirror://sourceforge/kvm/${PN}/${P}.tar.gz
+ ${BACKPORTS:+
+ http://dev.gentoo.org/~cardoe/distfiles/${P}-bp-${BACKPORTS}.tar.xz}"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+fi
+
+DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
+HOMEPAGE="http://www.linux-kvm.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+aio alsa bluetooth brltty +caps +curl debug doc fdt kernel_linux \
+kernel_FreeBSD ncurses opengl pulseaudio python rbd sasl sdl \
+smartcard spice static tci tls usbredir vde +vhost-net virtfs xattr xen xfs"
+
+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"
+IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32"
+
+# Setup the default SoftMMU targets, while using the loops
+# below to setup the other targets. x86_64 should be the only
+# defaults on for qemu-kvm
+IUSE="${IUSE} +qemu_softmmu_targets_x86_64"
+
+for target in ${IUSE_SOFTMMU_TARGETS}; do
+ if [ "x${target}" = "xx86_64" ]; then
+ continue
+ fi
+ IUSE="${IUSE} qemu_softmmu_targets_${target}"
+done
+
+for target in ${IUSE_USER_TARGETS}; do
+ IUSE="${IUSE} qemu_user_targets_${target}"
+done
+
+REQUIRED_USE="static? ( !alsa !pulseaudio )
+ amd64? ( qemu_softmmu_targets_x86_64 )
+ x86? ( qemu_softmmu_targets_x86_64 )
+ virtfs? ( xattr )"
+
+# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
+RDEPEND="
+ !app-emulation/kqemu
+ !app-emulation/qemu
+ !<app-emulation/qemu-1.0
+ >=dev-libs/glib-2.0
+ media-libs/libpng
+ sys-apps/pciutils
+ virtual/jpeg
+ amd64? ( sys-apps/seabios
+ sys-apps/vgabios )
+ x86? ( sys-apps/seabios
+ sys-apps/vgabios )
+ aio? ( dev-libs/libaio )
+ alsa? ( >=media-libs/alsa-lib-1.0.13 )
+ bluetooth? ( net-wireless/bluez )
+ brltty? ( app-accessibility/brltty )
+ caps? ( sys-libs/libcap-ng )
+ curl? ( >=net-misc/curl-7.15.4 )
+ fdt? ( >=sys-apps/dtc-1.2.0 )
+ kernel_linux? ( >=sys-apps/util-linux-2.16.0 )
+ ncurses? ( sys-libs/ncurses )
+ opengl? ( virtual/opengl )
+ pulseaudio? ( media-sound/pulseaudio )
+ python? ( =dev-lang/python-2*[ncurses] )
+ rbd? ( sys-cluster/ceph )
+ sasl? ( dev-libs/cyrus-sasl )
+ sdl? ( static? ( >=media-libs/libsdl-1.2.11[static-libs,X] )
+ !static? ( >=media-libs/libsdl-1.2.11[X] ) )
+ static? ( sys-libs/zlib[static-libs(+)] )
+ !static? ( sys-libs/zlib )
+ smartcard? ( dev-libs/nss )
+ spice? ( >=app-emulation/spice-protocol-0.8.1
+ static? ( >=app-emulation/spice-0.9.0[static-libs] )
+ !static? ( >=app-emulation/spice-0.9.0 )
+ )
+ tls? ( net-libs/gnutls )
+ usbredir? ( sys-apps/usbredir )
+ vde? ( net-misc/vde )
+ virtfs? ( sys-libs/libcap )
+ xattr? ( sys-apps/attr )
+ xen? ( app-emulation/xen-tools )
+ xfs? ( sys-fs/xfsprogs )"
+
+DEPEND="${RDEPEND}
+ app-text/texi2html
+ virtual/pkgconfig
+ kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )"
+
+STRIP_MASK="/usr/share/qemu/palcode-clipper"
+
+QA_PRESTRIPPED="
+ usr/share/qemu/openbios-ppc
+ usr/share/qemu/openbios-sparc64
+ usr/share/qemu/openbios-sparc32
+ usr/share/qemu/palcode-clipper"
+
+QA_WX_LOAD="${QA_PRESTRIPPED}
+ usr/bin/qemu-i386
+ usr/bin/qemu-x86_64
+ usr/bin/qemu-alpha
+ usr/bin/qemu-arm
+ usr/bin/qemu-cris
+ usr/bin/qemu-m68k
+ usr/bin/qemu-microblaze
+ usr/bin/qemu-mips
+ usr/bin/qemu-mipsel
+ usr/bin/qemu-ppc
+ usr/bin/qemu-ppc64
+ usr/bin/qemu-ppc64abi32
+ usr/bin/qemu-sh4
+ usr/bin/qemu-sh4eb
+ usr/bin/qemu-sparc
+ usr/bin/qemu-sparc64
+ usr/bin/qemu-armeb
+ usr/bin/qemu-sparc32plus"
+
+pkg_pretend() {
+ if use kernel_linux && kernel_is lt 2 6 25; then
+ eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
+ elif use kernel_linux; then
+ if ! linux_config_exists; then
+ eerror "Unable to check your kernel for KVM support"
+ else
+ CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
+ ERROR_KVM="You must enable KVM in your kernel to continue"
+ ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
+ ERROR_KVM_AMD+=" your kernel configuration."
+ ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
+ ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
+ ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
+ ERROR_TUN+=" into your kernel or loaded as a module to use the"
+ ERROR_TUN+=" virtual network device if using -net tap."
+ ERROR_BRIDGE="You will also need support for 802.1d"
+ ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
+ use vhost-net && CHECK_CHECK+=" ~VHOST_NET"
+ ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
+ ERROR_VHOST_NET+=" support"
+
+ if use amd64 || use x86 || use amd64-linux || use x86-linux; then
+ CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
+ fi
+
+ use python && CONFIG_CHECK+=" ~DEBUG_FS"
+ ERROR_DEBUG_FS="debugFS support required for kvm_stat"
+
+ # Now do the actual checks setup above
+ check_extra_config
+ fi
+ fi
+}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+
+ enewgroup kvm 78
+}
+
+src_prepare() {
+ # Alter target makefiles to accept CFLAGS set via flag-o
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target || die
+
+ # remove part to make udev happy
+ #sed -e 's~NAME="%k", ~~' -i kvm/scripts/65-kvm.rules || die
+
+ python_convert_shebangs -r 2 "${S}/scripts/kvm/kvm_stat"
+
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch_user
+}
+
+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
+ eerror "All SoftMMU targets are disabled. This is invalid for qemu-kvm"
+ die "At least 1 SoftMMU target must be enabled"
+ else
+ einfo "Building the following softmmu targets: ${softmmu_targets}"
+ fi
+
+ if [[ -n ${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 --disable-pie"
+
+ # We always want to attempt to build with PIE support as it results
+ # in a more secure binary. But it doesn't work with static or if
+ # the current GCC doesn't have PIE support.
+ if ! use static && gcc-specs-pie; then
+ conf_opts="${conf_opts} --enable-pie"
+ fi
+
+ # audio options
+ audio_opts="oss"
+ use alsa && audio_opts="alsa ${audio_opts}"
+ use pulseaudio && audio_opts="pa ${audio_opts}"
+ use sdl && audio_opts="sdl ${audio_opts}"
+
+ # conditionally making UUID work on Linux only is wrong
+ # but the Gentoo/FreeBSD guys need to figure out what
+ # provides libuuid on their platform
+ # --enable-vnc-thread will go away in 1.2
+ # $(use_enable xen xen-pci-passthrough) for 1.2
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-bsd-user \
+ --disable-libiscsi \
+ --disable-strip \
+ --disable-werror \
+ --enable-guest-agent \
+ --enable-vnc-jpeg \
+ --enable-vnc-png \
+ --enable-vnc-thread \
+ --python=python2 \
+ $(use_enable aio linux-aio) \
+ $(use_enable bluetooth bluez) \
+ $(use_enable brltty brlapi) \
+ $(use_enable caps cap-ng) \
+ $(use_enable curl) \
+ $(use_enable debug debug-info) \
+ $(use_enable debug debug-mon) \
+ $(use_enable debug debug-tcg) \
+ $(use_enable doc docs) \
+ $(use_enable fdt) \
+ $(use_enable kernel_linux kvm) \
+ $(use_enable kernel_linux kvm-device-assignment) \
+ $(use_enable kernel_linux nptl) \
+ $(use_enable kernel_linux uuid) \
+ $(use_enable ncurses curses) \
+ $(use_enable opengl) \
+ $(use_enable rbd) \
+ $(use_enable sasl vnc-sasl) \
+ $(use_enable sdl) \
+ $(use_enable smartcard smartcard) \
+ $(use_enable smartcard smartcard-nss) \
+ $(use_enable spice) \
+ $(use_enable tci tcg-interpreter) \
+ $(use_enable tls vnc-tls) \
+ $(use_enable usbredir usb-redir) \
+ $(use_enable vde) \
+ $(use_enable vhost-net) \
+ $(use_enable virtfs) \
+ $(use_enable xattr attr) \
+ $(use_enable xen) \
+ $(use_enable xfs xfsctl) \
+ --audio-drv-list="${audio_opts}" \
+ --target-list="${softmmu_targets} ${user_targets}" \
+ --cc="$(tc-getCC)" \
+ --host-cc="$(tc-getBUILD_CC)" \
+ ${conf_opts} \
+ || 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 \
+
+ # FreeBSD's kernel does not support QEMU assigning/grabbing
+ # host USB devices yet
+ use kernel_FreeBSD && \
+ sed -E -e "s|^(HOST_USB=)bsd|\1stub|" -i "${S}"/config-host.mak
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ if [[ -n ${softmmu_targets} ]]; then
+ if use kernel_linux; then
+ insinto /lib/udev/rules.d/
+ doins "${FILESDIR}"/65-kvm.rules
+ fi
+
+ if use qemu_softmmu_targets_x86_64 ; then
+ dobin "${FILESDIR}"/qemu-kvm
+ ewarn "The depreciated '/usr/bin/kvm' symlink is no longer installed"
+ ewarn "You should use '/usr/bin/qemu-kvm', you may need to edit"
+ ewarn "your libvirt configs or other wrappers for ${PN}"
+ else
+ elog "You disabled QEMU_SOFTMMU_TARGETS=x86_64, this disables install"
+ elog "of /usr/bin/qemu-kvm and /usr/bin/kvm"
+ fi
+ fi
+
+ dodoc Changelog MAINTAINERS TODO pci-ids.txt
+ newdoc pc-bios/README README.pc-bios
+
+ if use doc; then
+ dohtml qemu-doc.html qemu-tech.html || die
+ fi
+
+ use python & dobin scripts/kvm/kvm_stat
+
+ # FIXME: Need to come up with a solution for non-x86 based systems
+ if use x86 || use amd64; then
+ # Remove SeaBIOS since we're using the SeaBIOS packaged one
+ rm "${ED}/usr/share/qemu/bios.bin"
+ dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
+
+ # Remove vgabios since we're using the vgabios packaged one
+ rm "${ED}/usr/share/qemu/vgabios.bin"
+ rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
+ rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
+ rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
+ rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
+ dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
+ dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
+ dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
+ dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
+ dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
+ fi
+}
+
+pkg_postinst() {
+ if [[ -n ${softmmu_targets} ]]; then
+ elog "If you don't have kvm compiled into the kernel, make sure you have"
+ elog "the kernel module loaded before running kvm. The easiest way to"
+ elog "ensure that the kernel module is loaded is to load it on boot."
+ elog "For AMD CPUs the module is called 'kvm-amd'"
+ elog "For Intel CPUs the module is called 'kvm-intel'"
+ elog "Please review /etc/conf.d/modules for how to load these"
+ elog
+ elog "Make sure your user is in the 'kvm' group"
+ elog "Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
+ elog
+ elog "The ssl USE flag was renamed to tls, so adjust your USE flags."
+ elog "The nss USE flag was renamed to smartcard, so adjust your USE flags."
+ fi
+}