From 64418262f867cad2f620eb18614b1b14356b9a52 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 29 Sep 2022 15:07:39 +0200 Subject: [PATCH] Added OCP command line client --- sys-cluster/oc/Manifest | 2 ++ sys-cluster/oc/oc-4.11.7.ebuild | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 sys-cluster/oc/Manifest create mode 100644 sys-cluster/oc/oc-4.11.7.ebuild diff --git a/sys-cluster/oc/Manifest b/sys-cluster/oc/Manifest new file mode 100644 index 0000000..81aa383 --- /dev/null +++ b/sys-cluster/oc/Manifest @@ -0,0 +1,2 @@ +DIST oc-4.11.7.tar.gz 52556803 BLAKE2B 56c1c97be881566102e8c56f5c5cd57099aaf0725308d89fc709e72ef49816bfa854db33ec877b32d8eaf2f8178eb5773616a6e0fcf52c6f456e3281b35446e5 SHA512 abab3d99fbf06a2be9bbee728286496f1f9138d0745cace04a0ef1184c1e57760d4f475053b2b3bf0f8179b8c585dc5a0e1a64818820f2ee31f2f8824345d34e +EBUILD oc-4.11.7.ebuild 640 BLAKE2B de05ca6ca6f689dfa419b72a300f3fe63174877638a3e5c2f5051872144a059979cd25818247097688a3c419bffca89825abb43b67e06147782c81f0385ed77f SHA512 e6c0d1e199a2e739519fa915dd67512fc784f6efc9649772bafdf8a7d4f1d8d0f42093e301cbd969c8455b2067bc7e9b92928d0f68f37266260fe8febef9e595 diff --git a/sys-cluster/oc/oc-4.11.7.ebuild b/sys-cluster/oc/oc-4.11.7.ebuild new file mode 100644 index 0000000..2ec6085 --- /dev/null +++ b/sys-cluster/oc/oc-4.11.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2022 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 + +DESCRIPTION="Conformance test suite for OpenShift" +HOMEPAGE="https://github.com/openshift/origin https://www.openshift.org/" +SRC_URI="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${PV}/openshift-client-linux.tar.gz -> ${P}.tar.gz" + + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bash-completion" + +DEPEND="dev-lang/go" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}" + +src_install() { + dobin "oc" + cd "${S}" + ./oc completion bash > oc_completion + newbashcomp oc_completion oc +}