From 7df911571b5260491947b1fd3bd8678ab9cc6c69 Mon Sep 17 00:00:00 2001 From: Manuel Rüger Date: Sun, 6 Nov 2016 18:16:04 +0100 Subject: app-emulation/hyperd: Initial version Package-Manager: portage-2.3.2 --- app-emulation/hyperd/Manifest | 1 + app-emulation/hyperd/hyperd-0.7.0.ebuild | 50 ++++++++++++++++++++++++++++++++ app-emulation/hyperd/metadata.xml | 15 ++++++++++ 3 files changed, 66 insertions(+) create mode 100644 app-emulation/hyperd/Manifest create mode 100644 app-emulation/hyperd/hyperd-0.7.0.ebuild create mode 100644 app-emulation/hyperd/metadata.xml (limited to 'app-emulation/hyperd') diff --git a/app-emulation/hyperd/Manifest b/app-emulation/hyperd/Manifest new file mode 100644 index 000000000000..d642abe42470 --- /dev/null +++ b/app-emulation/hyperd/Manifest @@ -0,0 +1 @@ +DIST hyperd-0.7.0.tar.gz 10885921 SHA256 e79d4e6aebe01d2117e981050ecb88dd24f8a9e45e2fbe1a558bcd1ee5d90b88 SHA512 7fc731b393a6bdf173101ee0a6d0e5a3339c6bb6dc1595fbde5b36df5a674f22e95f599e704925532ca0ee5ca931ebdf9f14bba9ad20b62000aee48408adb73f WHIRLPOOL cf911afabcbd7ec9954ad571d12269cff85fb9a84de81a83b483a002707c6ca2e6e8c43540f08f24ae12ccc5eddddc4280e45d67c3a696cfdd2ee4301458aa3d diff --git a/app-emulation/hyperd/hyperd-0.7.0.ebuild b/app-emulation/hyperd/hyperd-0.7.0.ebuild new file mode 100644 index 000000000000..bef9be9822b9 --- /dev/null +++ b/app-emulation/hyperd/hyperd-0.7.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +EGO_PN="github.com/hyperhq/hyperd" + +inherit autotools systemd golang-vcs-snapshot + +DESCRIPTION="Hypervisor-based Runtime for OCI" +HOMEPAGE="https://github.com/hyperhq/hyperd" +SRC_URI="https://github.com/hyperhq/hyperd/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libvirt xen" + +RDEPEND="libvirt? ( >=app-emulation/libvirt-1.2.2 ) + xen? ( app-emulation/xen )" +DEPEND="${RDEPEND}" + +src_prepare() { + pushd src/${EGO_PN} || die + default + eautoreconf + popd +} + +src_configure() { + local myeconfargs=( $(use_with libvirt) + $(use_with xen) ) + pushd src/${EGO_PN} || die + econf "${myeconfargs[@]}" + popd +} + +src_compile() { + GOPATH="${S}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} +} + +src_install() { + dodoc src/${EGO_PN}/README.md + dobin src/${EGO_PN}/hyperd + dobin src/${EGO_PN}/hyperctl + insinto /etc/hyper/ + doins src/${EGO_PN}/package/dist/etc/hyper/config + systemd_dounit src/${EGO_PN}/package/dist/lib/systemd/system/hyperd.service +} diff --git a/app-emulation/hyperd/metadata.xml b/app-emulation/hyperd/metadata.xml new file mode 100644 index 000000000000..8880e0179c0e --- /dev/null +++ b/app-emulation/hyperd/metadata.xml @@ -0,0 +1,15 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + Enable support for KVM via libvirt + Enable support for the Xen Hypervisor + + + hyperhq/hyperd + + -- cgit v1.2.3-65-gdbad