add app-admin/kubectl-who-can ebuild

This commit is contained in:
2024-11-08 12:38:16 +03:00
parent a4f0ae3e2b
commit 36566f0430
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Show who has RBAC permissions to perform actions on different resources in Kubernetes"
HOMEPAGE="https://github.com/aquasecurity/kubectl-who-can"
SRC_URI="https://github.com/aquasecurity/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://git.millerson.name/alex/gentoo-artifacts/releases/download/${P}-vendor/${P}-vendor.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_compile() {
ego build -o ${PN} ./cmd/kubectl-who-can/main.go || die
}
src_install() {
dobin ${PN}
}