From c67de7e6b9b9af40312ce9a6c9ed9c153acf92a1 Mon Sep 17 00:00:00 2001 From: Samuel Bernardo Date: Wed, 12 Jun 2024 00:20:28 +0100 Subject: Add cri-tools with update to latest release Signed-off-by: Samuel Bernardo --- app-containers/cri-tools/Manifest | 3 +++ app-containers/cri-tools/cri-tools-1.30.0.ebuild | 33 ++++++++++++++++++++++++ app-containers/cri-tools/metadata.xml | 11 ++++++++ 3 files changed, 47 insertions(+) create mode 100644 app-containers/cri-tools/Manifest create mode 100644 app-containers/cri-tools/cri-tools-1.30.0.ebuild create mode 100644 app-containers/cri-tools/metadata.xml diff --git a/app-containers/cri-tools/Manifest b/app-containers/cri-tools/Manifest new file mode 100644 index 0000000..75eb575 --- /dev/null +++ b/app-containers/cri-tools/Manifest @@ -0,0 +1,3 @@ +DIST cri-tools-1.30.0.tar.gz 9448692 BLAKE2B 89755048865a2f554749c3a983fea6f786d29d29b043eccb17274920ede6e1425f5375a9b2bd0010db1d2249a4e2c26eba9d73486ed40784922f7b72f9932ac7 SHA512 8fa580e804a3ab888a2da76a9233c8a7c872d65fd0e34efbdf2db45ae06c924ff35b6563ea76e40cae4a7a0b41480ce246eacc3d6e2b7d2aaec30eadb1edb08f +EBUILD cri-tools-1.30.0.ebuild 917 BLAKE2B ea1d949136eff43206b5f5d02996e96d67ee4e69c134a2cb316fb63bf4b8817834b7a9e23005306981beee6de59425ebaab08a616b59d436b6ef6cf78d38a5dd SHA512 b8f806329c303e3cddb82a2c45dc55f4aeae7ae126b6967c8d5efe394efd249f04a400fbcfbe3533805607c646bb07e5135b134f652f2ce7a089d02da127284a +MISC metadata.xml 335 BLAKE2B 2144a466f521028b7bc93b372ec9b8f81f6ef5317285dede88a71736bff65aa0908bd1c8ed18b2b7b0563f14a24b10862efc81985e78c75b5c2a786d501331b1 SHA512 ae1cb972ec7ddc298a8e1747503400f52b27e899ed51b1aeba877a66c8f883248ca782b437ffea4d06cb1ad80ff6e8f071445ba848f98240e48ef5814c866c2e diff --git a/app-containers/cri-tools/cri-tools-1.30.0.ebuild b/app-containers/cri-tools/cri-tools-1.30.0.ebuild new file mode 100644 index 0000000..ae910c9 --- /dev/null +++ b/app-containers/cri-tools/cri-tools-1.30.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 go-module + +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/v${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 ~arm64" +RESTRICT="test" + +DOCS=( docs {README,RELEASE,CHANGELOG,CONTRIBUTING}.md ) + +src_compile() { + emake VERSION="${PV}" + find build/ -name crictl -exec cp {} build/bin/ \; || die + ./build/bin/crictl completion bash > "crictl.bash" || die + ./build/bin/crictl completion zsh > "crictl.zsh" || die +} + +src_install() { + einstalldocs + + dobin ./build/bin/crictl + newbashcomp crictl.bash crictl + insinto /usr/share/zsh/site-functions + newins crictl.zsh _crictl +} diff --git a/app-containers/cri-tools/metadata.xml b/app-containers/cri-tools/metadata.xml new file mode 100644 index 0000000..8d6a4c5 --- /dev/null +++ b/app-containers/cri-tools/metadata.xml @@ -0,0 +1,11 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + kubernetes-sigs/cri-tools + + -- cgit v1.2.3-65-gdbad