From 1114b12624c453001a26235dd52478fac4dc704d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20R=C3=BCger?= Date: Wed, 7 Nov 2018 13:38:44 +0100 Subject: [PATCH] app-emulation/cri-tools: Add 1.0.0_alpha1 for kubernetes-1.9.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Rüger Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- app-emulation/cri-tools/Manifest | 1 + .../cri-tools/cri-tools-1.0.0_alpha1.ebuild | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 app-emulation/cri-tools/cri-tools-1.0.0_alpha1.ebuild diff --git a/app-emulation/cri-tools/Manifest b/app-emulation/cri-tools/Manifest index 07334eb118a6..1336ec686235 100644 --- a/app-emulation/cri-tools/Manifest +++ b/app-emulation/cri-tools/Manifest @@ -1 +1,2 @@ +DIST cri-tools-1.0.0_alpha1.tar.gz 2727719 BLAKE2B 6c413aff111ce279e86f1036c3efd0c98901ed42bce482b3877cec58a55958a80305c013b6e515dbb84ff3d8def41156b81a0749ce606fd3806a7fae3fc445f0 SHA512 e0fe6171ac1b1649be667b2924a1b163810fe18c51fb9c3fe363b381feb889d18872f8077e267a147058481f799a35f6a0b5f8d285215e216ee771d7ea74f66a DIST cri-tools-1.0.0_beta2.tar.gz 2417018 BLAKE2B 06dc5675c339fb26fce92c3ca05f855da754a452b25554ab84da0b6528b56c01005a625a06ead9a0f1e51e3fee96b54865990927fc312efa96167f8a5ebe94f1 SHA512 f0aadf8659ae1731945c8403d5a6d30bb9ed1e2ebf1a1045541087652a0d7a45b35fea5346cbec37903425634d7f65ccd852b56a7db93f6bbf9c91ae4899f107 diff --git a/app-emulation/cri-tools/cri-tools-1.0.0_alpha1.ebuild b/app-emulation/cri-tools/cri-tools-1.0.0_alpha1.ebuild new file mode 100644 index 000000000000..75ef27658443 --- /dev/null +++ b/app-emulation/cri-tools/cri-tools-1.0.0_alpha1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2018 Sony Interactive Entertainment Inc. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/kubernetes-sigs/cri-tools" +MY_PV="v${PV/_alpha/-alpha.}" +ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" +HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +src_compile() { + GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die + GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die +} + +src_install() { + dobin bin/* + dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md} +} -- 2.26.2