diff options
Diffstat (limited to 'sys-cluster/kubectl')
-rw-r--r-- | sys-cluster/kubectl/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/kubectl/kubectl-1.23.2.ebuild | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest index 1c8af6b2b0a5..bead7aeaae80 100644 --- a/sys-cluster/kubectl/Manifest +++ b/sys-cluster/kubectl/Manifest @@ -14,3 +14,4 @@ DIST kubernetes-1.22.4.tar.gz 36022946 BLAKE2B 3e0b87add2b02e653edb6bb17db076cda DIST kubernetes-1.22.5.tar.gz 36038511 BLAKE2B 3cedea38cdb2c5c1f8b54000e4f7f21c12fe2d38cfe5638b0588adad9dce3831272fb19da35ead0e20ef5f37c8fcb9c2c528282b5671cdcfcd49f181dd72b094 SHA512 248817e5cc20b079b98e3cd294809acee6f66f1963a5f79ae5d09839a19db0a98fd9fe2f8aa4cca853efc548a912953ae4ba1317a5c6e641d80c3cfd3b496026 DIST kubernetes-1.22.6.tar.gz 36044335 BLAKE2B 2d89424d6b74e99e6c161e4c1fd970aca6419dbcd8dfb3704ce3c5afad7002338357cf5b5b580ec458f55bcb3b6b1c48aabea67876b9bfed8f733cc710dafa58 SHA512 bf79a203b6faae8d267e971e76e80b0d83234d2bf46f83506860fc94f00e4fe8c708d70fce70113f7390528752c2c29fb2da59c9e7dd29986d52a77493202174 DIST kubernetes-1.23.1.tar.gz 38170867 BLAKE2B edfcd8649995cf944225cf3bc276a7b7cac5ae055e4255319c924b1b80776d939c6630dbd4f074c2b606e16d5abc5c45e72a11b42dda428c8e29411521b63bf7 SHA512 95ccd27680cefa1f0e367259a373236866c85b8b0534bed364101b5177c718de0bcd6631136e84b910a2fce00f4c119aef043782228658f852d6753f6606c316 +DIST kubernetes-1.23.2.tar.gz 38183896 BLAKE2B 6b8287ec0f2661f2c704aee5c8eada748395aa49b17d260fbb78ce7d2da6ac02dcf7d40018d954768ba174f9387d289fc9f8dc4c2d5a58689877a667c6e367e3 SHA512 af67745f84efe1e340187e510d42db231bbeef29d59fae3408b8a560bf5a336d3afa21d4a6bdd6a748ebd018aae0b15edcb4ebda594367aae3f91bae173c3a98 diff --git a/sys-cluster/kubectl/kubectl-1.23.2.ebuild b/sys-cluster/kubectl/kubectl-1.23.2.ebuild new file mode 100644 index 000000000000..4139faa597f9 --- /dev/null +++ b/sys-cluster/kubectl/kubectl-1.23.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 go-module + +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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="hardened" + +DEPEND="!sys-cluster/kubernetes" +BDEPEND=">=dev-lang/go-1.17" + +RESTRICT+=" test" +S="${WORKDIR}/kubernetes-${PV}" + +src_compile() { + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \ + emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN} +} + +src_install() { + dobin _output/bin/${PN} + _output/bin/${PN} completion bash > ${PN}.bash || die + _output/bin/${PN} completion zsh > ${PN}.zsh || die + newbashcomp ${PN}.bash ${PN} + insinto /usr/share/zsh/site-functions + newins ${PN}.zsh _${PN} +} |