app-emulation/cri-tools: sync with Gentoo

To add a new ebuild `app-emulation-cri-tools`, sync with Gentoo.
This commit is contained in:
Dongsu Park 2021-02-01 17:02:05 +01:00
parent e900e5d6ea
commit 94a00872df
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST cri-tools-1.18.0.tar.gz 5295512 BLAKE2B 9dda4a401b858e98aa60521d3268d8f6ff6a2c1bd2c219a0e5e9e5360fba58d41e97258c636da26ee57bbfc3286798c74107c7de92d3e3398bdf53b7d9078e94 SHA512 849b496e6d19eec29e0e56f0b37c094649311b80514f319b0c68c6519e3ddd48e1973c3d288144db998826676416644ec705b7ea0916c21898b40928ea800af1

View File

@ -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
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">kubernetes-sigs/cri-tools</remote-id>
</upstream>
</pkgmetadata>