summaryrefslogtreecommitdiff
path: root/sys-cluster/zookeepercli
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/zookeepercli')
-rw-r--r--sys-cluster/zookeepercli/Manifest6
-rw-r--r--sys-cluster/zookeepercli/metadata.xml11
-rw-r--r--sys-cluster/zookeepercli/zookeepercli-1.0.10.ebuild60
3 files changed, 77 insertions, 0 deletions
diff --git a/sys-cluster/zookeepercli/Manifest b/sys-cluster/zookeepercli/Manifest
new file mode 100644
index 000000000000..9dabdb27e50f
--- /dev/null
+++ b/sys-cluster/zookeepercli/Manifest
@@ -0,0 +1,6 @@
+DIST go-zookeeper-218e9c81c0dd8b3b18172b2bbfad92cc7d6db55f.tar.gz 29301 SHA256 f90c7f318c92b9ad6fee417af842d9b9fc5b6635121e3f8035e236272ad41f28 SHA512 0fda62feaa668b43bdc7866270780b30069d7dace5c25c69d27d5df17bc3331885c9a7d3575b822c4da712e8a4af0465c6370cd3e89f6c39e73d70aed346d599 WHIRLPOOL f02c8c9edbf464111bc3302e23c986a73f7bc6684fb0e37136822cb910fc92136e0e2ca65420bcf98dce02245b42951acce17b0a062c4a0eb01df5b2b103e61f
+DIST golib-2418949ac30d9933e7412ccce41f1aa2ae8d5ae8.tar.gz 5892 SHA256 cf524e0dcb1dfd664b668950bf459288f98f92630ef943af8670cd6e3c78e39c SHA512 924b9e296f5d0051f321115b542603653d8868d3bc8cb933b16eaa511c34bb9869fc763ea2f2261a71e8dbe06c5e1963ff202986f496d7d889a55ae7694704ec WHIRLPOOL a099036eabe3bb62b7cc0dedb34c960531b0c3fa0a197f49a86d4c3d6ab80a95bb8b4ec8359b4d2f6c72ac7843184f9b4b182ff4d1d89e8f18aae76fdd1689dd
+DIST zookeepercli-1.0.10.tar.gz 11942 SHA256 2a32f1c1706e1df20f6229c163d42e2b0c3e4c2793e0a2ae71cb7add25cb28c5 SHA512 793de5eb2b62265a97c6e82f14c7ba1f9d32dacb86a02375a18ca6cbf472d5b7649e94107e3c497e81d4b81f7131b85032ba100c2d8f14a47fd8fc972c6be47d WHIRLPOOL 60a0cb4f9b3dc512d3dfef1440e4ae677d54601df3877013fa00d8ffe205d66c3d74c71b9956f55eebece56ef4421ae1d01d0fec0b8a2ee053bd6ec2bc814ad9
+EBUILD zookeepercli-1.0.10.ebuild 1555 SHA256 6f094361ddef6ba2c513743190ab4a2bfe55f8b7b01844f1e546b844fcd8bc96 SHA512 ce6cb8822dc01b4d21bd9bb80d25ae903f5147155faec00faf6827352a5cfc187fa4742edaeeb5783e063d2d28f36076506e05e2ea7eee3905d7539bf8aeb273 WHIRLPOOL de11344bda4a5ea03776d8f134760450848ae02a3883f23163f6d9e839b6dfd121bc0fd573908e3a5e7b798e737f59073d93e2159eb7efbf2042f65ea270e358
+MISC ChangeLog 787 SHA256 9a03cc5f330d08735e078484a797105568927ac15a0252a403a5486457ac27ba SHA512 0259d9b5fb3063bd64cd47eed14ed05833a56fcdb7f0073b163fc1330b881df25de6b22dfceb8dcf7a569b81fac2a9f972356a0fde4e80b097f7a67eafef75f1 WHIRLPOOL 756b04ac8fc03a2315c164fdcf26f50050110f6ecf5c2cc7c38549acb39ae418fa1640e68356fc7f69f1940a5314cc7bd53f513ebb5446a1b15e10238a0a6c53
+MISC metadata.xml 330 SHA256 362b8142f2d6a2131e77c66a4728083de04caf442121692366726dfcbedbfeac SHA512 4330eb8e97dbe6441726384149b6090b77c6276ce02547731756968bf255f8d632fdf5f1ebf77f66c977fdd5d75672b2dbc31e1ac0f29678e0f07b27484f37b6 WHIRLPOOL a102279766279f1b45ffe5e6920013c811502b4cca816e25deb30f1356dcd8c97de2109fb4cf51e43b01ffbaf5da5ac09050b663c4ad6fa0499ae5aee046a5ca
diff --git a/sys-cluster/zookeepercli/metadata.xml b/sys-cluster/zookeepercli/metadata.xml
new file mode 100644
index 000000000000..81b3c8f181ff
--- /dev/null
+++ b/sys-cluster/zookeepercli/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">outbrain/zookeepercli</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-cluster/zookeepercli/zookeepercli-1.0.10.ebuild b/sys-cluster/zookeepercli/zookeepercli-1.0.10.ebuild
new file mode 100644
index 000000000000..690ea9db1f15
--- /dev/null
+++ b/sys-cluster/zookeepercli/zookeepercli-1.0.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KEYWORDS="~amd64"
+EGO_PN="github.com/outbrain/zookeepercli/..."
+EGIT_COMMIT="v${PV}"
+SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+https://github.com/outbrain/golib/archive/2418949ac30d9933e7412ccce41f1aa2ae8d5ae8.tar.gz -> golib-2418949ac30d9933e7412ccce41f1aa2ae8d5ae8.tar.gz
+https://github.com/samuel/go-zookeeper/archive/218e9c81c0dd8b3b18172b2bbfad92cc7d6db55f.tar.gz -> go-zookeeper-218e9c81c0dd8b3b18172b2bbfad92cc7d6db55f.tar.gz"
+DESCRIPTION="Simple, lightweight, dependable CLI for ZooKeeper"
+HOMEPAGE="https://${EGO_PN%/*}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+DEPEND=">=dev-lang/go-1.4.2:="
+
+get_archive_go_package() {
+ local archive=${1} uri x
+ for x in ${SRC_URI}; do
+ if [[ ${x} == http* ]]; then
+ uri=${x}
+ elif [[ ${x} == ${archive} ]]; then
+ break
+ fi
+ done
+ uri=${uri#https://}
+ echo ${uri%/archive/*}
+}
+
+unpack_go_packages() {
+ local go_package x
+ # Unpack packages to appropriate locations for GOPATH
+ for x in ${A}; do
+ unpack ${x}
+ if [[ ${x} == *.tar.gz ]]; then
+ go_package=$(get_archive_go_package ${x})
+ mkdir -p "${S}/src/${go_package%/*}"
+ for x in ${go_package##*/}-*; do
+ [[ ${x} -ef ${S} ]] && continue
+ mv "${x}" "${S}/src/${go_package}" || die
+ done
+ fi
+ done
+}
+
+src_unpack() {
+ unpack_go_packages
+}
+
+src_compile() {
+ GOPATH="${S}" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}