commit:     bf91134a3b9f84d7c7ff2dd07ef3e87275a74646
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 12:52:52 2017 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 12:52:52 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf91134a

dev-db/etcd: Version bump to 3.2.10

Package-Manager: Portage-2.3.14, Repoman-2.3.6

 dev-db/etcd/Manifest           |  1 +
 dev-db/etcd/etcd-3.2.10.ebuild | 63 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index fb5242cb72a..7a518c6c96e 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -1,2 +1,3 @@
 DIST etcd-2.3.8.tar.gz 2206562 SHA256 
6a138b2005e42b0961a12886cc641b792e991cd631fdb502ec5c614b65231cd1 SHA512 
4268de32797cab23e9e47784d31d5abd6982068c53d3cc9735a06719740dba45b73f4e067cbc7aa8aef5ca7c56d8be067f1076685ac82f64012b760d8b7f2bfc
 WHIRLPOOL 
4db1b4fe6d0ff917adfc53bd959bb7ac2937da794483e4a4a95e5fb557cf4fbfd43d5bb3c5e21e499432f80f6606407accaa69bc03a3982621276deb529c07da
+DIST etcd-3.2.10.tar.gz 3016954 SHA256 
86b7afd78b3a409b23ddf9d889b74c4edecf0fec1148f83bf025911705895f08 SHA512 
6d00bd47b8c76332e4d1eaa12d8db6052c19bad5e99402860875ba1d6590e0b4aa1afc7cfeb25128125d0195c408c5f4d782b75a0132fc6a8f5cfff673faab75
 WHIRLPOOL 
de440a42fb85fa33ae9aa4f4ea5b1e7640b73fb35819a3a9f12823c4bfe88ba7f32b931a9aa74e851f0cf47d6d38c4832fe47b826e636e1d7a8d14ab0d3a5539
 DIST etcd-3.2.9.tar.gz 2889569 SHA256 
7ad70d9b0d206fe09abc40e82d29ac748d09c0423ddf255ddf4334d21867eb6f SHA512 
c194365e388fda8f796af70ff4b575b6ccabac0ca9ae3d84d55718e3914b927d5a6ba10b48eddc897139918880fcfa29d7a329463d20ce72f62115a0a41b6d4d
 WHIRLPOOL 
4e6eb6b7b6d9ac68f0b1c8c2e5cc677ce9815ffd70c27901ef9a416ad73d9578b20592374e4e85a3aea11092b671832e8cdefc9781edd500e5d3bcd14f65cbc3

diff --git a/dev-db/etcd/etcd-3.2.10.ebuild b/dev-db/etcd/etcd-3.2.10.ebuild
new file mode 100644
index 00000000000..9de03c3233b
--- /dev/null
+++ b/dev-db/etcd/etcd-3.2.10.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd golang-vcs-snapshot
+
+KEYWORDS="~amd64"
+EGO_PN="github.com/coreos/etcd"
+DESCRIPTION="Highly-available key value store for shared configuration and 
service discovery"
+HOMEPAGE="https://github.com/coreos/etcd";
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="doc"
+DEPEND=">=dev-lang/go-1.8:="
+RDEPEND="!dev-db/etcdctl"
+
+src_prepare() {
+       default
+       sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
+               -i "${S}"/src/${EGO_PN}/build || die
+}
+
+pkg_setup() {
+       enewgroup ${PN}
+       enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_compile() {
+       export GOPATH=${S}
+       pushd src/${EGO_PN} || die
+       ./build || die
+       popd || die
+}
+
+src_install() {
+       pushd src/${EGO_PN} || die
+       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}
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}/${PN}.logrotated" "${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}
+       popd || die
+}
+
+src_test() {
+       pushd src/${EGO_PN} || die
+       ./test || die
+       popd || die
+}

Reply via email to