summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-19 13:56:56 +0100
committerManuel Rüger <mrueg@gentoo.org>2018-03-19 13:57:22 +0100
commit57407e9305a09a65e3dfcc4a582ff0f1fd35df90 (patch)
treeaca5d2b85465ac5519d29631fab4cc6ea48de12b /sys-cluster
parentsys-cluster/kube-apiserver: Version bump to 1.9.4 (diff)
downloadgentoo-57407e9305a09a65e3dfcc4a582ff0f1fd35df90.tar.gz
gentoo-57407e9305a09a65e3dfcc4a582ff0f1fd35df90.tar.bz2
gentoo-57407e9305a09a65e3dfcc4a582ff0f1fd35df90.zip
sys-cluster/kubectl: Version bump to 1.9.4
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/kubectl-1.9.4.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index c77995a56d96..5ad3b30110df 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -1,3 +1,4 @@
DIST kubernetes-1.8.7.tar.gz 23246803 BLAKE2B b7fb8919462359f0fa211cf0cad834a7f09c893dd7da2ea9ca4564cc9f65e374ae6e036f12c182a42cd0f3b52f80b366d1e662bdf7967a066cacc9e6b8018ad4 SHA512 ea1be8a1cdc78d818a393da7ef7629405b08cf9a6fd2426d891912082b2230a148be49465b415cef9494476694715779a90429660ad1bb815bf258f3978c9707
DIST kubernetes-1.9.2.tar.gz 23390279 BLAKE2B de9782209236d04fddefe83e074f1c41b37bc052ac45472cd75b30b0d5ba6a358ccf3db67fdb621627b483a59fa78b4fefdc78693287a138b18154f0e8f782fc SHA512 8dd20ad6b2e77f1adc5ef37bdb319be472c5afa47c83c64e4496bb7ee3517bcca0aba398c16283dfda981915878dbd3685a61af65912d4d3fd14a77346edbe13
DIST kubernetes-1.9.3.tar.gz 23396346 BLAKE2B e65a68e27f479dfedbfa17dd770dbeee9d56cd439abe3537a928bed15e054a12f7f8445c35e89957665b74a831135240d0e12af10ef14bd4e5938bca1781e0e5 SHA512 73a20c0f28cc04728bdaac36d08a2b78c7f203bc61a80c4716a1cb8447547f56e7ae76cbe77b3b03c704b6224392c4d0aa88ede3ce116c8aa2c15cb8a9bd4840
+DIST kubernetes-1.9.4.tar.gz 23531489 BLAKE2B d61ff9d986e0925a290f8ce3ad4c1bb60d390bd5af45b783b6709dfdc523472f9b7f6ed75e2a506bfd38b563de0c88ea575fe8a966137352a66cc3c3a0f90848 SHA512 f703f68938abfb3552e73c5b6f49dc176e5b851761010d1625cae8e1c7e36318b28c677b13ea7016edce0b74082858dbc3dc204630bbdf7a02f2076ae8b8d9b5
diff --git a/sys-cluster/kubectl/kubectl-1.9.4.ebuild b/sys-cluster/kubectl/kubectl-1.9.4.ebuild
new file mode 100644
index 000000000000..14674478c43c
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.9.4.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
+}