summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/qemu/qemu-1.4.0.ebuild')
-rw-r--r--app-emulation/qemu/qemu-1.4.0.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/app-emulation/qemu/qemu-1.4.0.ebuild b/app-emulation/qemu/qemu-1.4.0.ebuild
index dabed2e9d544..7b6aaa19c8d3 100644
--- a/app-emulation/qemu/qemu-1.4.0.ebuild
+++ b/app-emulation/qemu/qemu-1.4.0.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.4.0.ebuild,v 1.1 2013/02/16 21:43:26 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.4.0.ebuild,v 1.2 2013/02/25 04:08:48 cardoe Exp $
EAPI=5
PYTHON_DEPEND="2:2.4"
-inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user udev
+inherit eutils flag-o-matic linux-info toolchain-funcs multilib python \
+ user udev fcaps
#BACKPORTS=7c9a3a87
if [[ ${PV} = *9999* ]]; then
@@ -395,6 +396,10 @@ src_install() {
use python && dobin "${S}/scripts/kvm/vmxcap"
fi
+ # Install config file example for qemu-bridge-helper
+ insinto "/etc/qemu"
+ doins "${FILESDIR}/bridge.conf"
+
cd "${S}"
dodoc Changelog MAINTAINERS TODO docs/specs/pci-ids.txt
newdoc pc-bios/README README.pc-bios
@@ -454,6 +459,10 @@ pkg_postinst() {
elog
fi
+ fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
+ use virtfs && fcaps cap_chown cap_dac_override cap_fowner cap_fsetid \
+ cap_setgid cap_mknod cap_setuid /usr/libexec/virtfs-proxy-helper
+
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."
}