summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-11-06 18:16:04 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-11-06 18:16:04 +0100
commit7df911571b5260491947b1fd3bd8678ab9cc6c69 (patch)
treecb9279bab707c5a8e5c5eae5814d82288e93d07a /app-emulation/hyperd
parentapp-emulation/runv: Initial version (diff)
downloadgentoo-7df911571b5260491947b1fd3bd8678ab9cc6c69.tar.gz
gentoo-7df911571b5260491947b1fd3bd8678ab9cc6c69.tar.bz2
gentoo-7df911571b5260491947b1fd3bd8678ab9cc6c69.zip
app-emulation/hyperd: Initial version
Package-Manager: portage-2.3.2
Diffstat (limited to 'app-emulation/hyperd')
-rw-r--r--app-emulation/hyperd/Manifest1
-rw-r--r--app-emulation/hyperd/hyperd-0.7.0.ebuild50
-rw-r--r--app-emulation/hyperd/metadata.xml15
3 files changed, 66 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <use>
+ <flag name="libvirt">Enable support for KVM via libvirt</flag>
+ <flag name="xen">Enable support for the Xen Hypervisor</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">hyperhq/hyperd</remote-id>
+ </upstream>
+</pkgmetadata>