diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2013-08-06 14:40:07 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2013-08-06 14:40:07 +0000 |
commit | 9e946e83f83ac9eafe26f6b0c229b517d378f368 (patch) | |
tree | b17d8903fd420180760dd04b03ce4e96c0f5c706 /app-emulation | |
parent | Fix crash in legacy xen driver. Re-enable tunnelled migration with new qemu's... (diff) | |
download | historical-9e946e83f83ac9eafe26f6b0c229b517d378f368.tar.gz historical-9e946e83f83ac9eafe26f6b0c229b517d378f368.tar.bz2 historical-9e946e83f83ac9eafe26f6b0c229b517d378f368.zip |
Remove straight 1.1.1 version
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Manifest-Sign-Key: 0xD7DFA8D318FA9AEF!
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/libvirt/ChangeLog | 5 | ||||
-rw-r--r-- | app-emulation/libvirt/Manifest | 19 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-1.1.1.ebuild | 428 |
3 files changed, 13 insertions, 439 deletions
diff --git a/app-emulation/libvirt/ChangeLog b/app-emulation/libvirt/ChangeLog index 1bd1c1226a1f..1ada1e8ceb61 100644 --- a/app-emulation/libvirt/ChangeLog +++ b/app-emulation/libvirt/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-emulation/libvirt # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.303 2013/08/06 14:38:46 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.304 2013/08/06 14:40:02 cardoe Exp $ + + 06 Aug 2013; Doug Goldstein <cardoe@gentoo.org> -libvirt-1.1.1.ebuild: + Remove straight 1.1.1 version *libvirt-1.1.1-r1 (06 Aug 2013) diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest index 2955cf415bce..9c0dae09afae 100644 --- a/app-emulation/libvirt/Manifest +++ b/app-emulation/libvirt/Manifest @@ -15,20 +15,19 @@ DIST libvirt-1.1.1.tar.gz 25420278 SHA256 dc6f1e1e15b9b190eaa706e76edabcfc94b239 EBUILD libvirt-1.0.5.4.ebuild 12203 SHA256 52763c34f2758614268ca4b9b69689769cc02dba5b465d4a10a914cd2706409b SHA512 7ecc6a2bdf703ee0302e376d545f7ec77abd90d95ac2db34bb39a34217a3106021c7246de8c507741845b352a4fa66e32f99a1f7c3390a027f50c68014ee58ff WHIRLPOOL 7b99823e66b400402ec332e399f0b153dda55a88bc16e2e8a6e2abbb57b878d98992177764a3474e9bf136441f82317ff17d9d58472f8dde92dd78131ffa35bf EBUILD libvirt-1.1.0-r3.ebuild 12071 SHA256 455bd2e0c8a4d799e7f6630274138097fe6b1d07e87e2a28d8debbd5b1b868d3 SHA512 87649b0ab67d4a808c9a672a9a284d19560b876ce2fd141e203de2e6d2c359c0791cfb13ff9cc524427794b45f6c7879923999cb3c1906369da3ac023facd712 WHIRLPOOL e8541f10868c5252241a6786f5fa1633702a39cbdb8c21774ace51b151a4d21b327bee09ac994d5fc49a40cdb9a0df1d479b31eece32de963f293dfc803e6b70 EBUILD libvirt-1.1.1-r1.ebuild 12093 SHA256 732376f27a8050e09f8678555351687641c38a88a5ada354ce2e8752cc68379b SHA512 ea2c95d333aa2e773297baf5e2b4d7013e9cabacde3fc36f6e0e4e6c8077879f05ccefd5a234aa413ad26412a3367ce2067ecf711d1175729c9c4c92e2784a75 WHIRLPOOL dd60c6b7e1666c20569b8fb3834194f60bb95edef5c3aeb27569c610fe21a68f4b89d262d41f9dfb0c5799be4936961882067f5e9e8c32737c9893bb46e21f09 -EBUILD libvirt-1.1.1.ebuild 12091 SHA256 7fc73c1c058782aeb4076ff1780b1a997b241c559305df343f058f4ed885573a SHA512 68903d0661ee655d479ed9b233fd245a64a80f6131eaabd6ce471adcd66c112640871ca5b42364ba385dd3f2eed1788fb401e68c7e53f52672e3e44990883d8c WHIRLPOOL d1f6b796f2ee37fd78693492f63eb8eff52067f57a34c371983d563f7f992d9c605998a70ea40e2afe9171e94c4665d3657f3cc2e8357f86655ab6a163688edc EBUILD libvirt-9999.ebuild 12070 SHA256 decc26a78a1b8d5e69d8277120fc48eb808bea39b0ab5f7635a41c07bb1aee3d SHA512 16466c7d090f9fdfd6bb1c955363dada9de86633f2129281f50a6654f17dbccc657e8690ac57e252a05c9effc46952b65249a3e1fad1f56fde0702cae04b05c4 WHIRLPOOL bcfc1a72c7016709bad31f0f7a55091abc09d1826439a2578cb1f298b6a73536739b34d0a0f8fed6ef28c23432790108f7e99e2149f95efafca3c43ce1ecff7e -MISC ChangeLog 9122 SHA256 f810fb5947602eb3706f712de3d687ca5d96bb8ca7d5a2bd61dfa8067d9d68c9 SHA512 c000877c0249a3db89160db9fdf00ebc7a77acebdc41e6a10417a2705289d12636db1cca9d45579ae1bbef8c5457bddae52210b1fee1ae0fa027d30220021017 WHIRLPOOL 99eba9d9a1ff47f225c70704fd8c4301afba2942a51b103a9c5bcaf9144384f27e86bc3555357086059bc0ecafb2211a19ddc8e6b83808e2b0032cda04296042 +MISC ChangeLog 9228 SHA256 e5a7e6883cd1907b26fab9890b2da574d56d5a77cf6971d60a20778d62f92a57 SHA512 3eaffa6f3bd13743784901bb683205561b27abcd64cc0fdf34baceaea428d12524c4a31f2852341ac18d5d1b62a3611750b44451189ec526ffaa52ab57a8d233 WHIRLPOOL 8fbbaa4ebb2eb52cba0fc3ce166509b1b649319b6e141c709a2fc86e0c01c336e876b109c7598167543524c1ce84740e0a980e363a2dd507b8c7ae765e82d72d MISC metadata.xml 3534 SHA256 8678edfd233eaa04266d7e15f71102fb45d1e4843697ba0cd04fe57b45dbb6c6 SHA512 e4b2cc5f9001697b784034ae6e58fea39e9fdc223192772592bcb671a4e1436186ed7757fc72993ee81c1e4005502fbb8c0a2d4588666a186d42024a98c052a2 WHIRLPOOL 9f32ac2763d17e5204da7396eae2a8c79c63e1e82b4a1035c86d93c029902159d3f5697aad86b7307b6e8acee0a4f0f02023d0e5e824a471cdad80a5cebc6886 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iQF8BAEBCABmBQJSAQp6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQF8BAEBCABmBQJSAQrDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMDRGNEJFMDZEQTJGRUY3NkI4MEM3NTlE -N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prvxKsH/iy4peB4oRnnWVxUaWEKRgsV -oK1FSLhhREW2dNt3/iWIDx/GwmJSc+xZJUVsru4J/glUS25rt/886Z/DMzR1Y2ZN -aMtCV+9hcIAQnY7Zdt4mh3T1sejs9YgBfG3/+HPl/dBaz8w6yD+pRzIX/dBIJVQC -Jz45dNLBJYib6KQtUDHyaIvzPDrDSghE+ncIDK4wIUnTymldk+L3rgiHVt3Ql0rJ -+Hz8oY/+yz2xpTSr8Pl48RlMRDl6M3loR7nwRziMZPleE+stMI7swYdtjn9dnBls -HRlDPeTuY/FiVSHHJUQAzxbGQ+CrzmVzYlbq950AoeqrT0Fpx12UvzHwRXneLjI= -=uTTX +N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prvp+4H/1VoVwnBMpMKmztUawDm4ELP +E6GB0IN2B5DzNnPNsYTvYyLe+J8BgsGnOkv4L8el1P61QsE1rWRkzoPimbbBH44G +PqM1gUnrV1IdLa1k/M3yWZalvTULrpfWjOJmjJ87DxniyJUYzF7DjUI4HLoWLiHy +LowSW7YQVAH5lqp94pcMpLzMM1teJvO9EVfLbSJFKo1RCgUXA7UwdRkQAVnvef0f +LOY0OeazSDPGWuI3ByJIVL83QB50VAV4GJH/wiEE/Ta8mLWnwn/QlhItIGDJFXNQ +IjHyzUJNImrXo0bLFSeFd3tKVEWav9z8wPIXmWLRpiDLhQRP6oGJVrD+alowHv0= +=mk9T -----END PGP SIGNATURE----- diff --git a/app-emulation/libvirt/libvirt-1.1.1.ebuild b/app-emulation/libvirt/libvirt-1.1.1.ebuild deleted file mode 100644 index 840fcb9b35f9..000000000000 --- a/app-emulation/libvirt/libvirt-1.1.1.ebuild +++ /dev/null @@ -1,428 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.1.1.ebuild,v 1.2 2013/07/31 13:53:46 cardoe Exp $ - -EAPI=5 - -#BACKPORTS=cafcec2f -AUTOTOOLIZE=yes - -MY_P="${P/_rc/-rc}" - -PYTHON_COMPAT=( python{2_5,2_6,2_7} ) - -inherit eutils python-single-r1 user autotools linux-info systemd - -if [[ ${PV} = *9999* ]]; then - inherit git-2 - EGIT_REPO_URI="git://libvirt.org/libvirt.git" - AUTOTOOLIZE=yes - SRC_URI="" - KEYWORDS="" -else - SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz - ftp://libvirt.org/libvirt/${MY_P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" - KEYWORDS="~amd64 ~x86" -fi -S="${WORKDIR}/${P%_rc*}" - -DESCRIPTION="C toolkit to manipulate virtual machines" -HOMEPAGE="http://www.libvirt.org/" -LICENSE="LGPL-2.1" -SLOT="0" -IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \ - nls numa openvz parted pcap phyp policykit python +qemu rbd sasl \ - selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \ - systemd" -REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) - lxc? ( caps libvirtd ) - openvz? ( libvirtd ) - qemu? ( libvirtd ) - uml? ( libvirtd ) - vepa? ( macvtap ) - virtualbox? ( libvirtd ) - xen? ( libvirtd ) - virt-network? ( libvirtd ) - firewalld? ( virt-network ) - python? ( ${PYTHON_REQUIRED_USE} )" - -# gettext.sh command is used by the libvirt command wrappers, and it's -# non-optional, so put it into RDEPEND. -# We can use both libnl:1.1 and libnl:3, but if you have both installed, the -# package will use 3 by default. Since we don't have slot pinning in an API, -# we must go with the most recent -RDEPEND="sys-libs/readline - sys-libs/ncurses - >=net-misc/curl-7.18.0 - dev-libs/libgcrypt - >=dev-libs/libxml2-2.7.6 - dev-libs/libnl:3 - >=net-libs/gnutls-1.0.25 - net-libs/libssh2 - sys-apps/dmidecode - >=sys-apps/util-linux-2.17 - sys-devel/gettext - >=net-analyzer/netcat6-1.0-r2 - app-misc/scrub - audit? ( sys-process/audit ) - avahi? ( >=net-dns/avahi-0.6[dbus] ) - caps? ( sys-libs/libcap-ng ) - fuse? ( >=sys-fs/fuse-2.8.6 ) - iscsi? ( sys-block/open-iscsi ) - lxc? ( sys-power/pm-utils ) - lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) - nfs? ( net-fs/nfs-utils ) - numa? ( - >sys-process/numactl-2.0.2 - sys-process/numad - ) - openvz? ( sys-kernel/openvz-sources ) - parted? ( - >=sys-block/parted-1.8[device-mapper] - sys-fs/lvm2 - ) - pcap? ( >=net-libs/libpcap-1.0.0 ) - policykit? ( >=sys-auth/polkit-0.9 ) - python? ( ${PYTHON_DEPS} ) - qemu? ( - >=app-emulation/qemu-0.13.0 - dev-libs/yajl - sys-power/pm-utils - ) - rbd? ( sys-cluster/ceph ) - sasl? ( dev-libs/cyrus-sasl ) - selinux? ( >=sys-libs/libselinux-2.0.85 ) - virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) - xen? ( app-emulation/xen-tools app-emulation/xen ) - udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) - virt-network? ( net-dns/dnsmasq - >=net-firewall/iptables-1.4.10 - net-misc/radvd - net-firewall/ebtables - sys-apps/iproute2[-minimal] - firewalld? ( net-firewall/firewalld ) - ) - elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" -# one? ( dev-libs/xmlrpc-c ) -DEPEND="${RDEPEND} - virtual/pkgconfig - app-text/xhtml1 - dev-lang/perl - dev-libs/libxslt" - -LXC_CONFIG_CHECK=" - ~CGROUPS - ~CGROUP_FREEZER - ~CGROUP_DEVICE - ~CGROUP_CPUACCT - ~CGROUP_SCHED - ~CGROUP_PERF - ~BLK_CGROUP - ~NET_CLS_CGROUP - ~NETPRIO_CGROUP - ~CPUSETS - ~RESOURCE_COUNTERS - ~NAMESPACES - ~UTS_NS - ~IPC_NS - ~PID_NS - ~NET_NS - ~DEVPTS_MULTIPLE_INSTANCES - ~VETH - ~MACVLAN - ~POSIX_MQUEUE - ~!GRKERNSEC_CHROOT_MOUNT - ~!GRKERNSEC_CHROOT_DOUBLE - ~!GRKERNSEC_CHROOT_PIVOT - ~!GRKERNSEC_CHROOT_CHMOD - ~!GRKERNSEC_CHROOT_CAPS -" - -VIRTNET_CONFIG_CHECK=" - ~BRIDGE_NF_EBTABLES - ~BRIDGE_EBT_MARK_T - ~NETFILTER_ADVANCED - ~NETFILTER_XT_TARGET_CHECKSUM - ~NETFILTER_XT_CONNMARK - ~NETFILTER_XT_MARK -" - -MACVTAP_CONFIG_CHECK="~MACVTAP" - -pkg_setup() { - enewgroup qemu 77 - enewuser qemu 77 -1 -1 qemu kvm - - # Some people used the masked ebuild which was not adding the qemu - # user to the kvm group originally. This results in VMs failing to - # start for some users. bug #430808 - egetent group kvm | grep -q qemu - if [[ $? -ne 0 ]]; then - gpasswd -a qemu kvm - fi - - python-single-r1_pkg_setup - - # Handle specific kernel versions for different features - kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" - kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM" - - CONFIG_CHECK="" - use fuse && CONFIG_CHECK+=" ~FUSE_FS" - use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}" - use macvtap && CONFIG_CHECK+="${MACVTAP}" - use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}" - if [[ -n ${CONFIG_CHECK} ]]; then - linux-info_pkg_setup - fi -} - -src_prepare() { - touch "${S}/.mailmap" - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - if [[ ${PV} = *9999* ]]; then - - # git checkouts require bootstrapping to create the configure script. - # Additionally the submodules must be cloned to the right locations - # bug #377279 - ./bootstrap || die "bootstrap failed" - ( - git submodule status | sed 's/^[ +-]//;s/ .*//' - git hash-object bootstrap.conf - ) >.git-module-status - fi - - epatch_user - - [[ -n ${AUTOTOOLIZE} ]] && eautoreconf - - # Tweak the init script - local avahi_init= - local iscsi_init= - local rbd_init= - local firewalld_init= - cp "${FILESDIR}/libvirtd.init-r12" "${S}/libvirtd.init" - use avahi && avahi_init='avahi-daemon' - use iscsi && iscsi_init='iscsid' - use rbd && rbd_init='ceph' - use firewalld && firewalld_init='need firewalld' - - sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init" - sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init" - sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init" - sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init" -} - -src_configure() { - local myconf="" - - ## enable/disable daemon, otherwise client only utils - myconf="${myconf} $(use_with libvirtd)" - - ## enable/disable the daemon using avahi to find VMs - myconf="${myconf} $(use_with avahi)" - - ## hypervisors on the local host - myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" - myconf+=" --without-xenapi" - if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then - myconf+=" --with-libxl" - else - myconf+=" --without-libxl" - fi - myconf="${myconf} $(use_with openvz)" - myconf="${myconf} $(use_with lxc)" - if use virtualbox && has_version app-emulation/virtualbox-ose; then - myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" - else - myconf="${myconf} $(use_with virtualbox vbox)" - fi - myconf="${myconf} $(use_with uml)" - myconf="${myconf} $(use_with qemu)" - myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP - myconf="${myconf} $(use_with phyp)" - myconf="${myconf} --with-esx" - myconf="${myconf} --with-vmware" - - ## additional host drivers - myconf="${myconf} $(use_with virt-network network)" - myconf="${myconf} --with-storage-fs" - myconf="${myconf} $(use_with lvm storage-lvm)" - myconf="${myconf} $(use_with iscsi storage-iscsi)" - myconf="${myconf} $(use_with parted storage-disk)" - myconf="${myconf} $(use_with lvm storage-mpath)" - myconf="${myconf} $(use_with rbd storage-rbd)" - myconf="${myconf} $(use_with numa numactl)" - myconf="${myconf} $(use_with numa numad)" - myconf="${myconf} $(use_with selinux)" - myconf="${myconf} $(use_with fuse)" - - # udev for device support details - myconf="${myconf} $(use_with udev)" - - # linux capability support so we don't need privileged accounts - myconf="${myconf} $(use_with caps capng)" - - ## auth stuff - myconf="${myconf} $(use_with policykit polkit)" - myconf="${myconf} $(use_with sasl)" - - # network bits - myconf="${myconf} $(use_with macvtap)" - myconf="${myconf} $(use_with pcap libpcap)" - myconf="${myconf} $(use_with vepa virtualport)" - myconf="${myconf} $(use_with firewalld)" - - ## other - myconf="${myconf} $(use_enable nls)" - myconf="${myconf} $(use_with python)" - - # user privilege bits fir qemu/kvm - if use caps; then - myconf="${myconf} --with-qemu-user=qemu" - myconf="${myconf} --with-qemu-group=qemu" - else - myconf="${myconf} --with-qemu-user=root" - myconf="${myconf} --with-qemu-group=root" - fi - - # audit support - myconf="${myconf} $(use_with audit)" - - ## stuff we don't yet support - myconf="${myconf} --without-netcf" - - # we use udev over hal - myconf="${myconf} --without-hal" - - # locking support - myconf="${myconf} --without-sanlock" - - # systemd unit files - use systemd && myconf="${myconf} --with-init-script=systemd" - - # this is a nasty trick to work around the problem in bug - # #275073. The reason why we don't solve this properly is that - # it'll require us to rebuild autotools (and we don't really want - # to do that right now). The proper solution has been sent - # upstream and should hopefully land in 0.7.7, in the mean time, - # mime the same functionality with this. - case ${CHOST} in - *cygwin* | *mingw* ) - ;; - *) - ac_cv_prog_WINDRES=no - ;; - esac - - econf \ - ${myconf} \ - --disable-static \ - --docdir=/usr/share/doc/${PF} \ - --with-remote \ - --localstatedir=/var - - if [[ ${PV} = *9999* ]]; then - # Restore gnulib's config.sub and config.guess - # bug #377279 - (cd .gnulib && git reset --hard > /dev/null) - fi -} - -src_test() { - # Explicitly allow parallel build of tests - export VIR_TEST_DEBUG=1 - HOME="${T}" emake check || die "tests failed" -} - -src_install() { - emake install \ - DESTDIR="${D}" \ - HTML_DIR=/usr/share/doc/${PF}/html \ - DOCS_DIR=/usr/share/doc/${PF} \ - EXAMPLE_DIR=/usr/share/doc/${PF}/examples \ - SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \ - || die "emake install failed" - - find "${D}" -name '*.la' -delete || die - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - newinitd "${S}/libvirtd.init" libvirtd || die - newconfd "${FILESDIR}/libvirtd.confd-r4" libvirtd || die - - keepdir /var/lib/libvirt/images - - use python && python_optimize -} - -pkg_preinst() { - # we only ever want to generate this once - if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then - rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml - fi - - # We really don't want to use or support old PolicyKit cause it - # screws with the new polkit integration - if has_version sys-auth/policykit; then - rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy - fi - - # Only sysctl files ending in .conf work - dodir /etc/sysctl.d - mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf -} - -pkg_postinst() { - if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then - touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml - fi - - # support for dropped privileges - if use qemu; then - fperms 0750 "${EROOT}/var/lib/libvirt/qemu" - fperms 0750 "${EROOT}/var/cache/libvirt/qemu" - fi - - if use caps && use qemu; then - fowners -R qemu:qemu "${EROOT}/var/lib/libvirt/qemu" - fowners -R qemu:qemu "${EROOT}/var/cache/libvirt/qemu" - elif use qemu; then - fowners -R root:root "${EROOT}/var/lib/libvirt/qemu" - fowners -R root:root "${EROOT}/var/cache/libvirt/qemu" - fi - - if ! use policykit; then - elog "To allow normal users to connect to libvirtd you must change the" - elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf" - fi - - use libvirtd || return 0 - # From here, only libvirtd-related instructions, be warned! - - elog - elog "For the basic networking support (bridged and routed networks)" - elog "you don't need any extra software. For more complex network modes" - elog "including but not limited to NATed network, you can enable the" - elog "'virt-network' USE flag." - elog - if has_version net-dns/dnsmasq; then - ewarn "If you have a DNS server setup on your machine, you will have" - ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " - ewarn " bind-interfaces" - ewarn " interface or except-interface" - ewarn - ewarn "Otherwise you might have issues with your existing DNS server." - fi - - if use caps && use qemu; then - elog "libvirt will now start qemu/kvm VMs with non-root privileges." - elog "Ensure any resources your VMs use are accessible by qemu:qemu" - fi -} |