commit: 17ec941b13480abd7247a8932c9609e17f50abd4 Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> AuthorDate: Wed Nov 5 15:01:50 2025 +0000 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> CommitDate: Wed Nov 5 15:41:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ec941b
sys-cluster/kubelogin: add 1.34.2 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> sys-cluster/kubelogin/Manifest | 2 ++ sys-cluster/kubelogin/kubelogin-1.34.2.ebuild | 35 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/sys-cluster/kubelogin/Manifest b/sys-cluster/kubelogin/Manifest index ce70727ceb2b..65a07e9ac37f 100644 --- a/sys-cluster/kubelogin/Manifest +++ b/sys-cluster/kubelogin/Manifest @@ -4,3 +4,5 @@ DIST kubelogin-1.32.4-deps.tar.xz 74596480 BLAKE2B bc7d2f717333fdb25cb5169a8d9f8 DIST kubelogin-1.32.4.tar.gz 146616 BLAKE2B 7bd05b529076416359d5192aeb5a440a7d62ec3f91c62b41e14b22c144f552094ae923780ae41c251f2b8a2d7c94e623e9df6c626388d01a3938d426e467b420 SHA512 7c3edc05b386402759bad3c8109f962b4f0cc631814cc4af05f32ebd7ef893fe1d9b4dbfa4c3a46d4bf576fbc900747e2920c3e7973f90a7eae28eccc708e6ab DIST kubelogin-1.34.0-deps.tar.xz 87075328 BLAKE2B 97e6efc978395726faf1dbf74ce7e75a5018ba687ffc004bd70426022099380ce155e174b22ae066757fea77743ab97ae51ea51d7c18f5217663a9a84bd1af9d SHA512 87bbc7c9f161a1510d7253d0ff5b87c5ee604bc4cfbf95c5089915fb42b2da36a4646b993edba050b5ae069f56ede1a61ddeb8c2cfbb45d72dd12ac24464f011 DIST kubelogin-1.34.0.tar.gz 149977 BLAKE2B 03edccd2eefd0e21bb2a78b98794d15472c548b7612cfec3aee7307c1fba0346b676a1b25bd6061dc1888a645a24c4fb334aa381a9d7c425ef2950d13fb9678b SHA512 a75f39f12653988b2a7f3c6d21582ab6970c43cff0dabae18dca5258b44745ac8f33bd3338c0aeca815efb7ff05dffd5c6ddd5d3fb9c6e6c608e9e5b70ff8efd +DIST kubelogin-1.34.2-deps.tar.xz 80241268 BLAKE2B b0781396c173daad65357ee21f84a65d2ddd3f3db4f856b3223baf7156c97037fa651b5a774bf506f749435489e0665437da1143e7b4bc8019175cd3fc386076 SHA512 8c4f5d0ea13f7bd63aa28c1d59216d051331b4cd032cdece5dbbad2340831c76f0c6e7e91c24c2edacd208fa6dbfb25b437a971e054da589109d638f88f13340 +DIST kubelogin-1.34.2.tar.gz 150075 BLAKE2B fc0808b766522461d074c4fa3fb2ac2c10e8907534603e30b79cafbe5ae7789784fc3593b6b151df69c32789ff4c6f013451d6fb92353e667bfa27ff0226adbe SHA512 3fed6d9679949f5ffdbe50c77a02f6d2ddc1f63b036444389a69e2523aa540c698a4c3aff3f833314ef1bc749476138eaaeb54051fe0c73a8de10b92b9f9f001 diff --git a/sys-cluster/kubelogin/kubelogin-1.34.2.ebuild b/sys-cluster/kubelogin/kubelogin-1.34.2.ebuild new file mode 100644 index 000000000000..6682c5333100 --- /dev/null +++ b/sys-cluster/kubelogin/kubelogin-1.34.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module shell-completion + +DESCRIPTION="kubectl plugin for Kubernetes OpenID Connect authentication" +HOMEPAGE="https://github.com/int128/kubelogin" +SRC_URI="https://github.com/int128/kubelogin/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~concord/distfiles/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +src_prepare() { + default + + # -buildmode=pie not supported when -race is enabled + if [[ ${GOFLAGS} == *buildmode=pie* ]]; then + sed -e 's/ -race / /' -i Makefile || die + fi +} + +src_compile() { + ego build -ldflags="-s -w" -o ./bin/${PN} . +} + +src_install() { + newbin bin/${PN} "kubectl-oidc_login" + bin/${PN} completion bash > ${PN}.bash || die + bin/${PN} completion zsh > ${PN}.zsh || die + newbashcomp ${PN}.bash ${PN} + newzshcomp ${PN}.zsh _${PN} +}
