From 94a00872df795f4b31ae98aa6ca724e7921eaab0 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Mon, 1 Feb 2021 17:02:05 +0100 Subject: [PATCH] app-emulation/cri-tools: sync with Gentoo To add a new ebuild `app-emulation-cri-tools`, sync with Gentoo. --- .../app-emulation/cri-tools/Manifest | 1 + .../cri-tools/cri-tools-1.18.0.ebuild | 32 +++++++++++++++++++ .../app-emulation/cri-tools/metadata.xml | 8 +++++ 3 files changed, 41 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/Manifest create mode 100644 sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/cri-tools-1.18.0.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/metadata.xml diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/Manifest b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/Manifest new file mode 100644 index 0000000000..7e57aa95da --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/Manifest @@ -0,0 +1 @@ +DIST cri-tools-1.18.0.tar.gz 5295512 BLAKE2B 9dda4a401b858e98aa60521d3268d8f6ff6a2c1bd2c219a0e5e9e5360fba58d41e97258c636da26ee57bbfc3286798c74107c7de92d3e3398bdf53b7d9078e94 SHA512 849b496e6d19eec29e0e56f0b37c094649311b80514f319b0c68c6519e3ddd48e1973c3d288144db998826676416644ec705b7ea0916c21898b40928ea800af1 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/cri-tools-1.18.0.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/cri-tools-1.18.0.ebuild new file mode 100644 index 0000000000..32412429f5 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/cri-tools-1.18.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 go-module +MY_PV="v${PV/_beta/-beta.}" + +DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" +HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" +SRC_URI="https://github.com/kubernetes-sigs/cri-tools/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="amd64" + +RESTRICT+=" test" + +src_compile() { + emake VERSION="${MY_PV}" + _output/crictl completion bash > ${PN}.bash || die + _output/crictl completion zsh > ${PN}.zsh || die +} + +src_install() { + dobin _output/crictl + + newbashcomp ${PN}.bash ${PN} + insinto /usr/share/zsh/site-functions + newins ${PN}.zsh _${PN} + + dodoc -r docs {README,RELEASE,CHANGELOG,CONTRIBUTING}.md +} diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/metadata.xml b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/metadata.xml new file mode 100644 index 0000000000..ded6fbaced --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/cri-tools/metadata.xml @@ -0,0 +1,8 @@ + + + + + + kubernetes-sigs/cri-tools + +