summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-02-15 00:05:52 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-02-15 00:06:25 +0100
commit2eabfd19b51963f78a645bda263139e962c70fe6 (patch)
tree09340714352f9f722e37e037ea081c1849967716 /sys-cluster/kubectl
parentdev-lisp/asdf: Restoring KEYWORDS for version 1.89 (diff)
downloadgentoo-2eabfd19b51963f78a645bda263139e962c70fe6.tar.gz
gentoo-2eabfd19b51963f78a645bda263139e962c70fe6.tar.bz2
gentoo-2eabfd19b51963f78a645bda263139e962c70fe6.zip
sys-cluster/kubectl: Initial version
Package-Manager: portage-2.3.3
Diffstat (limited to 'sys-cluster/kubectl')
-rw-r--r--sys-cluster/kubectl/Manifest1
-rw-r--r--sys-cluster/kubectl/kubectl-1.5.2.ebuild38
-rw-r--r--sys-cluster/kubectl/metadata.xml8
3 files changed, 47 insertions, 0 deletions
diff --git a/sys-cluster/kubectl/Manifest b/sys-cluster/kubectl/Manifest
new file mode 100644
index 000000000000..4aa839ff1ec2
--- /dev/null
+++ b/sys-cluster/kubectl/Manifest
@@ -0,0 +1 @@
+DIST kubernetes-1.5.2.tar.gz 22165963 SHA256 e1c4050ff67d31a2a98d303785f52fbf5033c2f33b61d525a821fb82c8820eae SHA512 9c29767a356619cc6d4e49c37ab502706666e0857cad0695023b831d7a8d750169d9d7da55c35fbc109ad47466a1add7253196d816c96ca60468d5e41ca8876a WHIRLPOOL 07fa17d259669f548f295dc827fdb3850af203121a50e8885eb4d402c48c7ca06d4df798bea392fadaad0e70f70d46270c456f7e088dc0dd5b1618148c3e48fe
diff --git a/sys-cluster/kubectl/kubectl-1.5.2.ebuild b/sys-cluster/kubectl/kubectl-1.5.2.ebuild
new file mode 100644
index 000000000000..f6ac9b3e993e
--- /dev/null
+++ b/sys-cluster/kubectl/kubectl-1.5.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}
diff --git a/sys-cluster/kubectl/metadata.xml b/sys-cluster/kubectl/metadata.xml
new file mode 100644
index 000000000000..97df2a00971b
--- /dev/null
+++ b/sys-cluster/kubectl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>