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/zetcd-0.0.3.ebuild
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/zetcd-0.0.3.ebuild')
-rw-r--r--sys-cluster/zetcd/zetcd-0.0.3.ebuild43
1 files changed, 43 insertions, 0 deletions
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 00000000000..58c794d731a
--- /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}
+}