summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/kubelogin')
-rw-r--r--sys-cluster/kubelogin/Manifest2
-rw-r--r--sys-cluster/kubelogin/kubelogin-1.28.1.ebuild27
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-cluster/kubelogin/Manifest b/sys-cluster/kubelogin/Manifest
index 6975c6c07f64..8adc3986f257 100644
--- a/sys-cluster/kubelogin/Manifest
+++ b/sys-cluster/kubelogin/Manifest
@@ -2,3 +2,5 @@ DIST kubelogin-1.27.0-deps.tar.xz 34246336 BLAKE2B 7c6b8163d5e03ca13fd2aa31b291b
DIST kubelogin-1.27.0.tar.gz 383335 BLAKE2B f239fb682a42c723901cbe000130369fb6ec19ea4f4120de66195aa0f0669c25aee9ffb11b08fb06a3e920027ff8ac5495b4cbcb5f64f7d7664ddf9c38caafea SHA512 7f51e84b4884e89f77bb88c1f0f048486863e91dcd7ea50c148483e36bab3676e382e45e43743f3346deda729cbc798d0a8577e18771e945a93b6faf618e8668
DIST kubelogin-1.28.0-deps.tar.xz 36937936 BLAKE2B b05945d88bd6e389ae9081cdfd3f594677cf9689993d11852bcfe9d5e4bf73e3da3932b3ffddfb9a342516383e6a0903050274de95abbfac3a8fe97641e35510 SHA512 64d7cf6155ad19b60f92443dd0375f44de8a99c65e4546c5cf15330bb0c41b434569f5422cf5611904538b5acc8d78df1268cfd1fce2b22b0e16940870228073
DIST kubelogin-1.28.0.tar.gz 382953 BLAKE2B 7192b39fafee09eca9f8b26cad0a3a21c792ee6383382f809c71f79af81d3ee69393879df7d7d0fa2a96e3435f196f4d7a7d8d7541c49650628ced1c44a080f3 SHA512 b39cdb31aab7cb1bedbf5d13a449e289569b6e17c319900d18e741aeb8b88a8eee5534aec57753457e6a5b9b139b85b95f2bdb438b79773a8ae54e3eb57a4358
+DIST kubelogin-1.28.1-deps.tar.xz 35112884 BLAKE2B 00aee14dec80203e0445301a49e59be5d739c211cacfeba64fbfde4b6ec1396d0740ff63ee4dfef162ba808be4e33c8e8f9a63c10041b9ae104988d4eac62add SHA512 4d65c54990fa40dccbca4482afbab2cc2c0052379574474e1beadba7f2c242aeb06878822531fc30e406cc513a5b5b73c62e05085fe34f192337613aa4477768
+DIST kubelogin-1.28.1.tar.gz 384721 BLAKE2B dabb3f2d9fe9b19254c2033fefde6a4da408a008a1f5e7203166bac690689fef3601daf505562baca18aa12d03bec2caa9d13e47e6975e56e386dff5405c754b SHA512 c18f1a8b394da441258ada8d364733411a05f84e745791ff909121a4e968aa42e6d8fa6143d251d45a2da8b3cf43d311698e16e4f23c946747f90130583a2bfa
diff --git a/sys-cluster/kubelogin/kubelogin-1.28.1.ebuild b/sys-cluster/kubelogin/kubelogin-1.28.1.ebuild
new file mode 100644
index 000000000000..3df1f523fb01
--- /dev/null
+++ b/sys-cluster/kubelogin/kubelogin-1.28.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 go-module
+
+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_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}
+ insinto /usr/share/zsh/site-functions
+ newins ${PN}.zsh _${PN}
+}