sys-cluster/kubectl: 1.17.3 bump
authorWilliam Hubbs <william.hubbs@sony.com>
Tue, 18 Feb 2020 21:33:23 +0000 (15:33 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Tue, 18 Feb 2020 21:33:23 +0000 (15:33 -0600)
Signed-off-by: William Hubbs <williamh@gentoo.org>
sys-cluster/kubectl/Manifest
sys-cluster/kubectl/kubectl-1.17.3.ebuild [new file with mode: 0644]

index 08f30ddd9612e8a7da68febdbb95d5ea4ebaef13..9e6c6aa92335fa8d83dd6ac3f5f74cc0277bc3e8 100644 (file)
@@ -6,3 +6,4 @@ DIST kubernetes-1.16.4.tar.gz 31220590 BLAKE2B 3ee3ab50f2a10c419b99f7f25072ad7b1
 DIST kubernetes-1.16.6.tar.gz 31714463 BLAKE2B 050897d4308a31d5164a907766af4f952d6551fba7e503bf7def78db37d017a3f5bd7a1c54125e42f9adeb850e6e38ef4ac9a98af978faf2efc4a474323b9f43 SHA512 2e1ca5781842ccd32f6e9791d069e9838a6221be3c4018abc06517cf97517bb500a6fafd7ae346088430f60c3e1dcbb983842572b9ed3241b70467dc1941e4a1
 DIST kubernetes-1.17.0.tar.gz 31727453 BLAKE2B 692937c3153338bc290768eda1d3dab0cb5afdc329b795831d5e144eb7a28d40a92403ab82361d010c36e2b31d8fa1eb0047762258194d34f10841107de96cd9 SHA512 906cdae9bf9ca04cd8b1ce869fa7e7af575127ccf1616b070a29d1a32861f96672c8f55e955942a86722d64a0a269cecf52707f6e5b1d853badfe28f10e1628f
 DIST kubernetes-1.17.2.tar.gz 31753827 BLAKE2B de92f1e0f087115691b5ce057a07f4b46a4410714ad9164801c0390190bd8e29f8aa6e79d0d8b816669770feaf229932df04c48792ce11e77e8c682db54f28bd SHA512 64c45967e6a85943fd3f62f82e0d51001bbeb04ed8ccbe376ad63989f4a888f838bc17d1d0942e8c857118781703a6cbd3336bff1f3ae5269f808b5d9b4d11bd
+DIST kubernetes-1.17.3.tar.gz 31762013 BLAKE2B 4470fadf2ec441ed7a5f3a82581af6a0f4d768780048576863b2aae9c13cff543592da73b979c7f9191a4c7c2b5a1ad10d85e0eba04fdcd08ece86884ab1f80d SHA512 09b33377de0bdd7dc8ac2ae81196d15eeb93862cb0aba1256bcfca38d2ce1f15951ad70cf67600fc3d16c1d449e0451707e756ec21ad812c6628ae1f0fdda427
diff --git a/sys-cluster/kubectl/kubectl-1.17.3.ebuild b/sys-cluster/kubectl/kubectl-1.17.3.ebuild
new file mode 100644 (file)
index 0000000..f70139e
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 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://github.com/kubernetes/kubernetes 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"
+
+DEPEND=">=dev-lang/go-1.13
+       dev-go/go-bindata"
+
+RESTRICT="strip test"
+S="${WORKDIR}/kubernetes-${PV}"
+
+src_prepare() {
+       default
+       sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" -e "s/-s -w/-w/" hack/lib/golang.sh || die
+       sed -i -e "/export PATH/d" hack/generate-bindata.sh || die
+}
+
+src_compile() {
+       LDFLAGS="" emake -j1 WHAT=cmd/${PN} GOFLAGS=-v
+       _output/bin/${PN} completion bash > ${PN}.bash || die
+       _output/bin/${PN} completion zsh > ${PN}.zsh || die
+}
+
+src_install() {
+       dobin _output/bin/${PN}
+       newbashcomp ${PN}.bash ${PN}
+       insinto /usr/share/zsh/site-functions
+       newins ${PN}.zsh _${PN}
+}