summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-05-23 10:24:50 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-05-23 10:24:50 +0200
commitaf00db09eaed2fe3aae8982bb94a296d00530d29 (patch)
tree2fa28a562b6b36092e3789db0caa18f4eb582721 /sys-cluster/kubectl
parentsys-cluster/kube-apiserver: Version bump to 1.10.3 (diff)
downloadgentoo-af00db09eaed2fe3aae8982bb94a296d00530d29.tar.gz
gentoo-af00db09eaed2fe3aae8982bb94a296d00530d29.tar.bz2
gentoo-af00db09eaed2fe3aae8982bb94a296d00530d29.zip
sys-cluster/kubectl: Version bump to 1.9.8
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'sys-cluster/kubectl')
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/kubectl-1.9.8.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index 7be8d4ed54b7..9a2647ee8cbd 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -1,3 +1,4 @@
DIST kubernetes-1.10.2.tar.gz 24746905 BLAKE2B d09b8a71562696282cccbe7c0653518694825f25e1bd51ac62a41f4f7853e142b7b2f380026a610efb726f0206cb13ca55a3c3d39e13894345a9debbea06e0f8 SHA512 be907fed5d5ebc42097101160b9cac1924f738ba6856b821ea4e8582cb877f6ef919e98758f7d7924662633323215c9693173617df90d5940c987160e7397fc8
DIST kubernetes-1.9.6.tar.gz 23538810 BLAKE2B ff832b3c8b0c06d47d62c6bbb981a60c94d31822921eb4a2e1fcb9b04c44cb9ffbb2f3bca050ba7188a49ec5292e5bad9a0560c6c39bce8ff706d1034df90e45 SHA512 1182f189fe5090297c373359f8c3782acc05213cc05c35b7cd48aaed845a2c8cbe32e155699e549690d8438cea220a129bde8256e834ae8939badf2ad953fa1e
DIST kubernetes-1.9.7.tar.gz 23550884 BLAKE2B f0762b24d74aa0bab6176ef96fdd30de288ab97ae8cdc73f3d8735b2be677f22a2aa5218745da767999024399b6feca1953308069cda732d002726ac0b87435f SHA512 d5e0e16cfa75053f5019f28a709cc44f27fb46cdbd50f6637c8b8bd6012cd3a0e6afb625ad21b1f84bc4ea83f4cb3a7064f42226a1b2ba84113e185e628fbf3d
+DIST kubernetes-1.9.8.tar.gz 23559610 BLAKE2B ef384dd9a06cb00c5a095b05a4b304b08a97c3eac9c40b1b06664bfffb5e5b7c71505d50c4f7c3b594975df1013030788c8cee40acbce5c9ccd34ee5b44dc4fe SHA512 45e65d7a1f0950f2fb8fc923bdcaf1d607960be096a98fbfe187ef117da02ce7bf430cdc4c6d7e707557ef54f3239025e442be08729e86dabba624f3aa7503d1
diff --git a/sys-cluster/kubectl/kubectl-1.9.8.ebuild b/sys-cluster/kubectl/kubectl-1.9.8.ebuild
new file mode 100644
index 000000000000..14674478c43c
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.9.8.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit golang-build golang-vcs-snapshot bash-completion-r1
+
+EGO_PN="k8s.io/kubernetes"
+ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="CLI to run commands against Kubernetes clusters"
+HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
+SRC_URI="${ARCHIVE_URI}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata"
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+ sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" src/${EGO_PN}/hack/lib/golang.sh || die
+ sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die
+}
+
+src_compile() {
+ LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=cmd/${PN} GOFLAGS=-v
+ pushd src/${EGO_PN} || die
+ _output/bin/${PN} completion bash > ${PN}.bash || die
+ _output/bin/${PN} completion zsh > ${PN}.zsh || die
+ popd || die
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin _output/bin/${PN}
+
+ newbashcomp ${PN}.bash ${PN}
+ insinto /usr/share/zsh/site-functions
+ newins ${PN}.zsh _${PN}
+
+ popd || die
+}