summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-07-16 12:11:08 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-07-16 12:11:08 +0200
commitab65c168538358611861983394686c7c347c95de (patch)
tree43030a5481f88369075460b14c9a71b635872d16 /sys-cluster/zetcd
parentapp-admin/passwordsafe: Add missing dependency on app-arch/zip (diff)
downloadgentoo-ab65c168538358611861983394686c7c347c95de.tar.gz
gentoo-ab65c168538358611861983394686c7c347c95de.tar.bz2
gentoo-ab65c168538358611861983394686c7c347c95de.zip
sys-cluster/zetcd: Version bump to 0.0.3
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-cluster/zetcd')
-rw-r--r--sys-cluster/zetcd/Manifest1
-rw-r--r--sys-cluster/zetcd/zetcd-0.0.3.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-cluster/zetcd/Manifest b/sys-cluster/zetcd/Manifest
index 406a4f5dbd74..5a1da5191954 100644
--- a/sys-cluster/zetcd/Manifest
+++ b/sys-cluster/zetcd/Manifest
@@ -1,2 +1,3 @@
DIST github.com-coreos-etcd-fa4903c83c72f2857b8ed795a3c86f140b89d52c.tar.gz 2875420 SHA256 594dafaa35ca0eea2eb6a0892dfaf97f9d0ff8f20fc4973484f5d677b793934f SHA512 f6455b1dec3813dc9d3d613f26ca329cda962f9c669956941419fd9da852466b751322888b55c07655d73766e476dfbea9a2e767155619eb9e97ba847d553280 WHIRLPOOL 293ac623950ff0b8a90c276cacc266a40f7ed767c5e77b8e70e8f325ad8f13dcd4f896395944f223ce3c4081eaa021f6c253964733278a74e8a98327707ee6e6
DIST zetcd-0.0.2.tar.gz 1775595 SHA256 2f49859e4dd6efe14e28f3190a1882084e79d5a9e998fb12b17ff384ac0b887c SHA512 6cbc81dd260a23f0ca2356e9deb5ccc3d17d8b0d63b5162d1576c4bdc61917450872bc2c14e1a4a1ec88119cea3f140996207987fb4d7bf16516fadd366c40d4 WHIRLPOOL db0b6b58799642e8f960a4283bd49037a04934c5ee3244c323dec89931620b524c67571be94f34692f2c07c27bcd17d5e474388fc5e7d0b8f74f1467c6ef8e8d
+DIST zetcd-0.0.3.tar.gz 1777988 SHA256 d921795b4872016a010786479648513cd0cd2458796f918c9fe5bcb152f6d8e1 SHA512 e636f2327daaeb4739b49472263b3e3df7f8b945cdf41f2c99c20cbf1108510cdb8b903c2b0df3bf09bd896a2df105e30d0133935300395e879865fe74bf17f6 WHIRLPOOL 25965566e0f2b48bb6e71da3b52ec7b6ff993b1c801b52fb690829705048f29c9129bfe24d4bb23125892c21172045d64e8cef333e33225b7cf7e320c3eda0c2
diff --git a/sys-cluster/zetcd/zetcd-0.0.3.ebuild b/sys-cluster/zetcd/zetcd-0.0.3.ebuild
new file mode 100644
index 000000000000..58c794d731ab
--- /dev/null
+++ b/sys-cluster/zetcd/zetcd-0.0.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/coreos/zetcd"
+
+EGO_VENDOR=( "github.com/coreos/etcd fa4903c83c72f2857b8ed795a3c86f140b89d52c" )
+
+inherit golang-build golang-vcs-snapshot user
+
+ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A ZooKeeper personality for etcd"
+HOMEPAGE="https://github.com/coreos/zetcd"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}" go install ${EGO_PN}/cmd/... || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc src/${EGO_PN}/README.md
+ keepdir /var/log/zetcd
+ fowners -R ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}