summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-03-08 09:21:57 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2017-03-08 09:21:57 -0600
commitc13aba16e254d0e00ec9b34818905d17ef40df2a (patch)
tree600e6f46e354828592b8c37f5ba6fb5cc0ceea45 /app-emulation
parentdev-php/PEAR-Text_Highlighter: Version bump to 0.8.0 (diff)
downloadgentoo-c13aba16e254d0e00ec9b34818905d17ef40df2a.tar.gz
gentoo-c13aba16e254d0e00ec9b34818905d17ef40df2a.tar.bz2
gentoo-c13aba16e254d0e00ec9b34818905d17ef40df2a.zip
app-emulation/openstack-guest-agents-unix: bup for reasons
Adds emergency Console support and includes recent commits which address python compatibility. Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/openstack-guest-agents-unix/Manifest1
-rw-r--r--app-emulation/openstack-guest-agents-unix/openstack-guest-agents-unix-1.39.1_p20170227.ebuild67
2 files changed, 68 insertions, 0 deletions
diff --git a/app-emulation/openstack-guest-agents-unix/Manifest b/app-emulation/openstack-guest-agents-unix/Manifest
index 022a7c87a12b..a62aa5825f84 100644
--- a/app-emulation/openstack-guest-agents-unix/Manifest
+++ b/app-emulation/openstack-guest-agents-unix/Manifest
@@ -1,2 +1,3 @@
+DIST c9a4f15b8c8f2349601d3073cc95e30d3b91af13.zip 143082 SHA256 2c6baa1467f79363c260a694cfe46d895bdebd99d56b3b1267f010365ef162b8 SHA512 f4ef4ca4d844109ef741126eee7c313734f5faefcf68926294c83411384eb7461c779070ed0bfcc35ffba56ef47e2677bf4b990dccd9007aa6b82551346dca8f WHIRLPOOL 08a19eefcea016cb38e6beaaed6801c076caf7e5c99d38d5a089b44c20907fbddc15930fc45d3d63cd1f6e8c8ab91e6d54c5c236ec6da60fb7ec3638c8b737f3
DIST openstack-guest-agents-unix-1.39.0.tar.gz 75013 SHA256 eaa22564c8da46c2c1c08e6c0ccd2507e181ffac66fa89f1d9ac2323a2a77d97 SHA512 4f7c4c1f2bc2c8ebda25dc8c0fa79c39e8e5a83040ff103f8c583d9142e71c6527d23e430da983e3a8c9add508298c31ec13a7e56d1db3b5338736dd470fec80 WHIRLPOOL 8e91593dcf6e1f0a8281a9a19946aa67c6e57acfcd5dd5739cddc9b0db0ea0952552f592f598a156140f5c8834fd47f9e20fddddec0f7648bcc40ebce0127d63
DIST openstack-guest-agents-unix-1.39.1.tar.gz 75458 SHA256 dab0bafb2a632040b0e76ac277fee5714dc8eb9cb9781e80f64a94aaa6bd06a2 SHA512 b1e88bb3492018375e7b2275829e2698d82d75c975a396ab7409c9b88f7787145b0da87c81a089aa8914fae30e996654b589bc1675bba769b661d7d1deb9590d WHIRLPOOL 5ba6cf326b78ea5141611b59d9d2b21b9c6a54f4ed9b358a6751ac135a77eac0c20a0b8ce7e078557158bc6a0192e13fed44c75bb9e7794eded1f4777b24b072
diff --git a/app-emulation/openstack-guest-agents-unix/openstack-guest-agents-unix-1.39.1_p20170227.ebuild b/app-emulation/openstack-guest-agents-unix/openstack-guest-agents-unix-1.39.1_p20170227.ebuild
new file mode 100644
index 000000000000..90854f5dfdea
--- /dev/null
+++ b/app-emulation/openstack-guest-agents-unix/openstack-guest-agents-unix-1.39.1_p20170227.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils autotools linux-info python-single-r1
+COMMIT="c9a4f15b8c8f2349601d3073cc95e30d3b91af13"
+DESCRIPTION="Unix Guest Agent for OpenStack"
+HOMEPAGE="https://wiki.openstack.org/wiki/GuestAgent"
+SRC_URI="https://github.com/rackerlabs/${PN}/archive/${COMMIT}.zip"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="mirror strip"
+DEPEND="
+ app-emulation/xe-guest-utilities[-xenstore]
+ dev-util/patchelf
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ test? ( dev-python/mox[${PYTHON_USEDEP}] )
+ test? ( dev-python/unittest2[${PYTHON_USEDEP}] )
+ ${PYTHON_DEPS}
+"
+RDEPEND="
+ app-emulation/xe-guest-utilities
+ dev-python/pyxenstore[${PYTHON_USEDEP}]
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+S=${WORKDIR}/${PN}-${COMMIT}
+
+# Required for Emergency Console
+CONFIG_CHECK="~KEYBOARD_ATKBD"
+
+pkg_setup()
+{
+ python-single-r1_pkg_setup
+}
+src_prepare()
+{
+ # Note: https://github.com/rackerlabs/openstack-guest-agents-unix/issues/52
+ ebegin 'patching tests/test_injectfile.py'
+ sed -e '97,127 d' -i tests/test_injectfile.py
+ STATUS=$?
+ eend ${STATUS}
+ [[ ${STATUS} -gt 0 ]] && die
+
+ eapply_user
+ eautoreconf
+}
+
+src_install()
+{
+ emake DESTDIR="${D}" install || die
+ doinitd scripts/gentoo/nova-agent
+}
+
+pkg_postinst()
+{
+ if [ "$(rc-config list default | grep nova-agent)" = "" ] ; then
+ elog "To start nova-agent automatically by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add nova-agent default\`"
+ elog
+ fi
+}