--- /usr/portage/app-emulation/libvirt/libvirt-1.0.2-r2.ebuild 2013-02-24 10:31:03.000000000 -0100 +++ libvirt-1.0.2-r3.ebuild 2013-02-26 20:00:41.226276119 -0100 @@ -13,7 +13,7 @@ #RESTRICT_PYTHON_ABIS="3.*" #SUPPORT_PYTHON_ABIS="1" -inherit eutils python user autotools linux-info +inherit eutils python user autotools linux-info systemd if [[ ${PV} = *9999* ]]; then inherit git-2 @@ -36,7 +36,8 @@ SLOT="0" IUSE="audit avahi +caps firewalld 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" + 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 ) @@ -295,6 +296,9 @@ # 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 @@ -335,6 +339,7 @@ HTML_DIR=/usr/share/doc/${PF}/html \ DOCS_DIR=/usr/share/doc/${PF}/python \ EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ + SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \ || die "emake install failed" find "${D}" -name '*.la' -delete || die