mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
sys-cluster/kubectl: add 1.33.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
@@ -4,3 +4,4 @@ DIST kubernetes-1.31.9.tar.gz 36598141 BLAKE2B f9daf39c8ccdcdd94df14ff0791503c89
|
||||
DIST kubernetes-1.32.5.tar.gz 36373026 BLAKE2B 2897c9e3a178f7df59ddc88563e3fb33e9f89ff6283e828d821f5bf038823fe693f845d74b32103e17fee911aabb311aadbae4d55c13b8b53520f79480b43603 SHA512 b62860af0f30972fe63bcff9f9be03223331fabfc5d9f202f59adb57ae5013a090f8f0e9978019185ff5fa60954ce56ae0ddf37f22679cb2dd3ec243cb3a4b22
|
||||
DIST kubernetes-1.32.6.tar.gz 36372895 BLAKE2B f630c42be02ecb481a765236da3e1f805bb08cfe36f822f65040c79723a174b9c1f66c200555253eaa8470a889a705bc0516eb0f9780a5943614f6e58c548e30 SHA512 84d0951eff01ea1076a0add3b24014041b7fdd1717f39d0418e80d7b5dbbbd99ccf58c9b2269508b86e61b57b87e75b53107e5ed22e77000907ffbfdf93ab4f2
|
||||
DIST kubernetes-1.33.1.tar.gz 37076955 BLAKE2B 199a0314b0c5b157786c15fc1d84ac027fae4bb636adcacfd98449cb2518d075ea09685f01191044c02376d2bd89abf3db9fd30699a98960decbb3dffa2355b2 SHA512 06a78cb7499c54b0682df77544297c502a0705df818f518a8bcda2d4f046ee6688b660b7309a137471a0d9bfcf5c74a955b9cd70db4558de1a5333dce2a79f3e
|
||||
DIST kubernetes-1.33.2.tar.gz 37084757 BLAKE2B 962b6639a15a9c8ae86c6a807c51161dfd4e51eda9bc9b9c327ec89e76457fc0e9e8abeaf3c62221924430ecf71938eb49849630d69a6e53cc567533828beaff SHA512 e0096f2dcad1c9929eb9da403ec138556f525903b2c7d6f2506fadbad3d188c1a1e99354ff5861835bf8d7e1835a2f3825cc5d9b6cff6c9a26097b59e0905032
|
||||
|
||||
46
sys-cluster/kubectl/kubectl-1.33.2.ebuild
Normal file
46
sys-cluster/kubectl/kubectl-1.33.2.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module toolchain-funcs shell-completion
|
||||
|
||||
DESCRIPTION="CLI to run commands against Kubernetes clusters"
|
||||
HOMEPAGE="https://kubernetes.io"
|
||||
SRC_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
|
||||
S=${WORKDIR}/kubernetes-${PV}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="hardened"
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.24.0"
|
||||
|
||||
src_compile() {
|
||||
CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
|
||||
emake -j1 GOFLAGS="${GOFLAGS}" GOLDFLAGS="" LDFLAGS="" FORCE_HOST_GO=yes \
|
||||
WHAT=cmd/${PN}
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
einfo "generating shell completion files"
|
||||
_output/bin/${PN} completion bash > ${PN}.bash || die
|
||||
_output/bin/${PN} completion zsh > ${PN}.zsh || die
|
||||
_output/bin/${PN} completion fish > ${PN}.fish || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin _output/bin/${PN}
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
newbashcomp ${PN}.bash ${PN}
|
||||
newzshcomp ${PN}.zsh _${PN}
|
||||
dofishcomp ${PN}.fish
|
||||
else
|
||||
ewarn "Shell completion files not installed! Install them manually with '${PN} completion --help'"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user