summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/kubectl-1.6.2.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
index 51f3ad891d2..44b6bf92b06 100644
--- a/sys-cluster/kubectl/Manifest
+++ b/sys-cluster/kubectl/Manifest
@@ -1,3 +1,4 @@
DIST kubernetes-1.5.2.tar.gz 22165963 SHA256 e1c4050ff67d31a2a98d303785f52fbf5033c2f33b61d525a821fb82c8820eae SHA512 9c29767a356619cc6d4e49c37ab502706666e0857cad0695023b831d7a8d750169d9d7da55c35fbc109ad47466a1add7253196d816c96ca60468d5e41ca8876a WHIRLPOOL 07fa17d259669f548f295dc827fdb3850af203121a50e8885eb4d402c48c7ca06d4df798bea392fadaad0e70f70d46270c456f7e088dc0dd5b1618148c3e48fe
DIST kubernetes-1.5.3.tar.gz 22186276 SHA256 bd83212374091e41a24f3cbbd70a36ac7635becac76cfff590b4ded67cb537bc SHA512 5bb6635863a98fca62bda509069d62f0f1096d1ffb3a67d280fb6ffc89dcef69a3b9ecf5b4ca835a089b2e1622df0c373b0e317d782af438f9b3794e410bf6a3 WHIRLPOOL 352b491e358ab618db83eab05e13b434f2e7e091024c1392834ddb889c2e869f3d36741df2471040647193898334591ecafbed834801e2446452923f1fadd074
DIST kubernetes-1.6.1.tar.gz 21965110 SHA256 92c07e6c84b88d99ff966bd2b1851ea167c1dad6cc98368b9abe5d49bc9d55b8 SHA512 ca2755254d6ed32ca26db7ac6c10c8e042ae03c38abb6e61cd49b4199b2a58d4aff233bf63952217f189c67e7156840c152d8f88729913093a556163a856bb13 WHIRLPOOL 8f3f3b5ca33b8aae9e24488088da096ed5dc49431f1e630cae58906c40f767f52c6239522f4547ce77388d5bd715d309e63f8c37ea4b429bd470540d6fe63181
+DIST kubernetes-1.6.2.tar.gz 21975834 SHA256 2af4bcc196a90b78baf65d5bcdf6cbb613d71d3952a98813e15bb6a41f3b922c SHA512 a2a248610407d391c9cadd0c54d97dda7ba459532f2e971708dbdca94d34559aab97c80069ba10b79d64188211c17c4014fa7410bc4e64a9bb55eae5b9a96a36 WHIRLPOOL d0d30f2a876a6dc986321aff5f472707cb9bc2dc3a2c63a37afd1dce19069a3b53185580df21050b8cdf68691f99288c03f3bbac665d2f20d23310ca7eb0067c
diff --git a/sys-cluster/kubectl/kubectl-1.6.2.ebuild b/sys-cluster/kubectl/kubectl-1.6.2.ebuild
new file mode 100644
index 00000000000..637d85f31c8
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.6.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+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}
+}
+
+src_install() {
+ pushd src/${EGO_PN%/*} || die
+ dobin _output/bin/${PN}
+ popd || die
+}