/[gentoo-x86]/app-emulation/qemu-guest-agent/qemu-guest-agent-2.3.0.ebuild
Gentoo

Contents of /app-emulation/qemu-guest-agent/qemu-guest-agent-2.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 4 08:19:37 2015 UTC (3 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #556630

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-guest-agent/qemu-guest-agent-2.3.0.ebuild,v 1.2 2015/08/04 08:18:58 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils systemd udev python-r1
10
11 MY_PN="qemu"
12 MY_P="${MY_PN}-${PV}"
13
14 if [[ ${PV} == *9999* ]]; then
15 EGIT_REPO_URI="git://git.qemu.org/qemu.git"
16 inherit git-2
17 else
18 SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.bz2"
19 KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd"
20 fi
21
22 DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
23 HOMEPAGE="http://wiki.qemu.org/Features/QAPI/GuestAgent"
24
25 LICENSE="GPL-2 BSD-2"
26 SLOT="0"
27 IUSE=""
28
29 RDEPEND=">=dev-libs/glib-2.22
30 !<app-emulation/qemu-1.1.1-r1
31 !<sys-apps/sysvinit-2.88-r5"
32 DEPEND="${RDEPEND}
33 ${PYTHON_DEPS}"
34
35 S="${WORKDIR}/${MY_P}"
36
37 src_prepare() {
38 epatch_user
39 }
40
41 src_configure() {
42 python_setup
43
44 tc-export AR LD OBJCOPY
45
46 local myconf=(
47 --prefix=/usr
48 --sysconfdir=/etc
49 --libdir="/usr/$(get_libdir)"
50 --localstatedir=/
51 --disable-bsd-user
52 --disable-linux-user
53 --disable-system
54 --disable-strip
55 --disable-werror
56 --enable-guest-agent
57 --python="${PYTHON}"
58 --cc="$(tc-getCC)"
59 --cxx="$(tc-getCXX)"
60 --host-cc="$(tc-getBUILD_CC)"
61 )
62 echo "./configure ${myconf[*]}"
63 ./configure "${myconf[@]}" || die
64 }
65
66 src_compile() {
67 emake V=1 qemu-ga
68 }
69
70 src_install() {
71 dobin qemu-ga
72
73 # Normal init stuff
74 newinitd "${FILESDIR}/qemu-ga.init-r1" qemu-guest-agent
75 newconfd "${FILESDIR}/qemu-ga.conf-r1" qemu-guest-agent
76
77 insinto /etc/logrotate.d
78 newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
79
80 # systemd stuff
81 udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
82
83 systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
84 qemu-guest-agent.service
85 }
86
87 pkg_postinst() {
88 elog "You should add 'qemu-guest-agent' to the default runlevel."
89 elog "e.g. rc-update add qemu-guest-agent default"
90 }

  ViewVC Help
Powered by ViewVC 1.1.20