app-emulation/google-compute-engine: new ebuild

This commit is contained in:
David Michael 2016-10-06 17:58:02 -07:00
parent 0be3d93e62
commit 2c10f97bf5
4 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST 20160930.tar.gz 102009 SHA256 0edbc187a124858a7f9a952825b0267e0aad7f0a44687aecb366ecc7560131fa SHA512 8fef26a68eaa1f24359f0b0b793c42eeaeb901a494758046b6a008dfe233cd044284a7b4453fad0f286bd57fcd2067e1333a6a9933f849e907365b174398db9a WHIRLPOOL 1700123c22f6902dd0ec5cc65a33772028c27d9c959a50e6662a1ed3e353172b45261126f1a6ad5f5d0d635a7153e24dea034a8c2fc3521425d249843abbd197

View File

@ -0,0 +1,47 @@
# Copyright (c) 2016 CoreOS, Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils
DESCRIPTION="Linux Guest Environment for Google Compute Engine"
HOMEPAGE="https://github.com/GoogleCloudPlatform/compute-image-packages"
SRC_URI="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-python/setuptools"
# These dependencies cover everything possibly called by the scripts.
RDEPEND="
app-admin/sudo
dev-python/boto
dev-python/setuptools
sys-apps/ethtool
sys-apps/gawk
sys-apps/grep
sys-apps/iproute2
sys-apps/shadow
sys-libs/glibc
sys-libs/nss-usrfiles
"
S="${WORKDIR}/compute-image-packages-${PV}"
src_prepare() {
# Don't attempt to mess with our host keys.
sed -i -e '/set_host_keys/s/true/false/i' \
"${S}"/google_compute_engine/instance_setup/instance_config.py
}
src_compile() {
(cd "${S}" && exec python setup.py build)
}
src_install() {
(cd "${S}" && exec python setup.py install -O1 --skip-build --root "${D}")
}

View File

@ -17,6 +17,7 @@ DEPEND=""
RDEPEND=" RDEPEND="
amd64? ( amd64? (
app-emulation/google-compute-daemon app-emulation/google-compute-daemon
app-emulation/google-compute-engine
app-emulation/google-startup-scripts app-emulation/google-startup-scripts
app-emulation/open-vm-tools app-emulation/open-vm-tools
app-emulation/wa-linux-agent app-emulation/wa-linux-agent