1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils rpm linux-info
6 DESCRIPTION="XenServer Virtual Machine Tools"
7 HOMEPAGE="https://www.citrix.com/"
10 SRC_URI="http://updates.vmd.citrix.com/XenServer/${PV_BASE}/rhel4x/SRPMS/xe-guest-utilities-${PV_FULL}.src.rpm"
11 LICENSE="LGPL-3 LGPL-2.1"
15 DEPEND="app-arch/rpm2targz"
17 !xenstore? ( app-emulation/xen-tools )
18 xenstore? ( !app-emulation/xen-tools )"
20 CONFIG_CHECK="~XEN_COMPAT_XENFS ~XENFS"
21 QA_PREBUILT="usr/bin/xenstore* usr/bin/xeninfo"
25 # Upstream includes xenstore-sources.tar.bz2
26 # but it is NOT the complete source :-(
30 epatch "${FILESDIR}"/${PN}-5.6.100_p651-gentoo.patch
31 epatch "${FILESDIR}"/${PN}-5.6.100_p651-update-guest-attrs.patch
35 newinitd "${FILESDIR}/xe-daemon.initd" xe-daemon
37 dosbin xe-linux-distribution
38 dosbin xe-update-guest-attrs
39 insinto /lib/udev/rules.d
40 newins xen-vcpu-hotplug.rules 10-xen-vcpu-hotplug.rules
44 dobin usr/bin/xenstore
45 dobin usr/bin/xenstore-*
50 if [ ! -e /etc/runlevels/boot/xe-daemon ]; then
51 elog "To start the xe-daemon automatically by default"
52 elog "you should add it to the boot runlevel :"
53 elog "'rc-update add xe-daemon boot'"