summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-02-20 22:09:59 -0800
committerZac Medico <zmedico@gentoo.org>2016-02-20 22:09:59 -0800
commit3eb4b99aae30650330c779d36f616f4bd990ea84 (patch)
treecfdca1b787fba104e8214a7170b20f3592b1e3da /dev-db/etcd
parentdev-go/beego: install beego.a (diff)
downloadgentoo-3eb4b99aae30650330c779d36f616f4bd990ea84.tar.gz
gentoo-3eb4b99aae30650330c779d36f616f4bd990ea84.tar.bz2
gentoo-3eb4b99aae30650330c779d36f616f4bd990ea84.zip
dev-db/etcd: version bump to 2.2.5
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-db/etcd')
-rw-r--r--dev-db/etcd/Manifest1
-rw-r--r--dev-db/etcd/etcd-2.2.5.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index e5e094dc2a48..eaaa219de627 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -1,2 +1,3 @@
DIST etcd-2.0.10.tar.gz 450581 SHA256 6029113d9870e5c6f0d10adbd2b6670958a46575114a094b86b607771a0e5ff3 SHA512 825524ee4c435b8f369970cfe39158443b8e29f6fba5ab86ae8be2d91f6faa0674d15f311bc863092fb6c77b054b8f3b69e163610b546e3c5cf59a111b38a3ed WHIRLPOOL a2b4c160cbc9cde5ebf64fa2fe41f6bc6ac5dc851551778b681d658e511f0dbc7241a4c74a6b520d43fe8e9cee65fa28f94655d64caf6f3c99cbd4ba84a57b65
DIST etcd-2.2.1.tar.gz 1844265 SHA256 1c0ce63812ef951f79c0a544c91f9f1ba3c6b50cb3e8197de555732454864d05 SHA512 4a96ed12c1f23ac4c9ea7ffeb17853f10a5eb04365b0fdfa765fa9f3acf12d32f7b4bfaa05de78bc17620808ae97f61425d2956a0d1cd817e501106e39498950 WHIRLPOOL edcb6f837b83f83a658717ceaf79c7304f5d4df34d2a15bbf9d82d370612f31ee8e5e248e9b143ff15df666ce25ab8c47d7dc5c62a3d7365a8bde0153d5e79a7
+DIST etcd-2.2.5.tar.gz 2151517 SHA256 a7fb7998ada620fda74e517c100891d25a15a6fa20b627df52da7cd29328e6d5 SHA512 4436180c564ba2122cb346033ccf3de90e1f9cf17c12f62635c41cd0617c16e1a5705bbcfce64d74702ee378e89bc6663f208a99d64e819ddf449c3f442a38e0 WHIRLPOOL f5706c1eb25750fea89556d803bf8a9915569a197bf676c06c016652905d559e3ec60e7bcf682a341aa36115b91b892529a035f96b4a63e0403ee13e492c55a3
diff --git a/dev-db/etcd/etcd-2.2.5.ebuild b/dev-db/etcd/etcd-2.2.5.ebuild
new file mode 100644
index 000000000000..2f47765d75b1
--- /dev/null
+++ b/dev-db/etcd/etcd-2.2.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user systemd
+
+KEYWORDS="~amd64"
+DESCRIPTION="A highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/coreos/etcd/"
+SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="doc"
+DEPEND=">=dev-lang/go-1.4:="
+RDEPEND="!dev-db/etcdctl"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
+ -e 's|-ldflags "-s.*"|-v -x|' \
+ -e 's|-ldflags "-s|-v -x "|' \
+ -i build || die
+ sed -e 's|go test|\0 -v|'\
+ -i test || die
+}
+
+src_compile() {
+ ./build || die
+}
+
+src_install() {
+ insinto /etc/${PN}
+ doins "${FILESDIR}/${PN}.conf"
+ dobin bin/*
+ dodoc README.md
+ use doc && dodoc -r Documentation
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ dodir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 755 /var/lib/${PN}
+ dodir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ fperms 755 /var/log/${PN}
+}
+
+src_test() {
+ ./test || die
+}