summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2013-08-09 16:56:38 +0000
committerDoug Goldstein <cardoe@gentoo.org>2013-08-09 16:56:38 +0000
commit8afbca951fb67974895011d6c9c3165d752f4606 (patch)
treeef21ebb3e6a5da1b2e74873c5ab67f050dc216cb /app-emulation/qemu-guest-agent
parentversion bump (bug #480246) (diff)
downloadgentoo-2-8afbca951fb67974895011d6c9c3165d752f4606.tar.gz
gentoo-2-8afbca951fb67974895011d6c9c3165d752f4606.tar.bz2
gentoo-2-8afbca951fb67974895011d6c9c3165d752f4606.zip
Versio bump. bug #480380
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key D7DFA8D318FA9AEF!)
Diffstat (limited to 'app-emulation/qemu-guest-agent')
-rw-r--r--app-emulation/qemu-guest-agent/ChangeLog8
-rw-r--r--app-emulation/qemu-guest-agent/qemu-guest-agent-1.5.2.ebuild85
2 files changed, 92 insertions, 1 deletions
diff --git a/app-emulation/qemu-guest-agent/ChangeLog b/app-emulation/qemu-guest-agent/ChangeLog
index 7b7dbef1a3cb..a544dd13eee8 100644
--- a/app-emulation/qemu-guest-agent/ChangeLog
+++ b/app-emulation/qemu-guest-agent/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/qemu-guest-agent
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-guest-agent/ChangeLog,v 1.10 2013/06/03 02:16:12 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-guest-agent/ChangeLog,v 1.11 2013/08/09 16:56:38 cardoe Exp $
+
+*qemu-guest-agent-1.5.2 (09 Aug 2013)
+
+ 09 Aug 2013; Doug Goldstein <cardoe@gentoo.org>
+ +qemu-guest-agent-1.5.2.ebuild:
+ Versio bump. bug #480380
*qemu-guest-agent-1.4.2 (03 Jun 2013)
diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-1.5.2.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-1.5.2.ebuild
new file mode 100644
index 000000000000..a52163e1b7ad
--- /dev/null
+++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-1.5.2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-guest-agent/qemu-guest-agent-1.5.2.ebuild,v 1.1 2013/08/09 16:56:38 cardoe Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+
+inherit eutils systemd udev python-r1
+
+BACKPORTS=e26b4ba6
+MY_PN="qemu"
+MY_P="${MY_PN}-${PV}"
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://git.qemu.org/qemu.git"
+ inherit git-2
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://wiki.qemu.org/download/${MY_P}.tar.bz2
+ ${BACKPORTS:+
+ http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+fi
+
+DESCRIPTION="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
+HOMEPAGE="http://wiki.qemu.org/Features/QAPI/GuestAgent"
+
+LICENSE="GPL-2 BSD-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.22
+ !<app-emulation/qemu-1.1.1-r1"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ python_export_best
+}
+
+src_prepare() {
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ epatch_user
+}
+
+src_configure() {
+ ./configure --python=${PYTHON}
+}
+
+src_compile() {
+ emake qemu-ga
+}
+
+src_install() {
+ dobin qemu-ga
+
+ # Normal init stuff
+ newinitd "${FILESDIR}/qemu-ga.init" qemu-guest-agent
+ newconfd "${FILESDIR}/qemu-ga.conf" qemu-guest-agent
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/qemu-ga.logrotate" qemu-guest-agent
+
+ # systemd stuff
+ udev_newrules "${FILESDIR}/qemu-ga-systemd.udev" 99-qemu-guest-agent.rules
+
+ systemd_newunit "${FILESDIR}/qemu-ga-systemd.service" \
+ qemu-guest-agent.service
+}
+
+pkg_postinst() {
+ elog "You should add 'qemu-guest-agent' to the default runlevel."
+ elog "e.g. rc-update add qemu-guest-agent default"
+
+ if has_version '<sys-apps/sysvinit-2.88-r5'; then
+ ewarn "The guest shutdown command will not work with <=sysvinit-2.88-r4"
+ fi
+}