diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-04-25 02:32:56 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-04-25 02:50:25 +0200 |
commit | 9608ef4bbe273504e4a21f95cfd7ea9ab373abb7 (patch) | |
tree | 84b1c2b5e948cbd19e57a3618e7514f3f6e881ed /dev-db | |
parent | net-p2p/qbittorrent: amd64 stable wrt bug #653976 (diff) | |
download | gentoo-9608ef4bbe273504e4a21f95cfd7ea9ab373abb7.tar.gz gentoo-9608ef4bbe273504e4a21f95cfd7ea9ab373abb7.tar.bz2 gentoo-9608ef4bbe273504e4a21f95cfd7ea9ab373abb7.zip |
dev-db/etcd: Version bump to 3.3.4
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/etcd/Manifest | 1 | ||||
-rw-r--r-- | dev-db/etcd/etcd-3.3.4.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest index 8c28baa6d22c..bde9a5cfebd8 100644 --- a/dev-db/etcd/Manifest +++ b/dev-db/etcd/Manifest @@ -2,3 +2,4 @@ DIST etcd-2.3.8.tar.gz 2206562 BLAKE2B 754930b4b5f0e90386b2b4765a9dbb6790ae509a8 DIST etcd-3.2.17.tar.gz 3064774 BLAKE2B b111082f39dd428d40d8325dc5d1f3507fbd45c2fb12002f87d4a85c60e6d546042b6ae3ecda9e842e7d27b992a17b7899c1b871f25623651a455fd0758b690b SHA512 d526a1c96de04467f23ca112bcb502367f22fd8cbefe29667f097aa7fcec6fce78914c56b2e39fd0131b566803d715cb5fee5e335f9f3f4b86011d00232b5d0d DIST etcd-3.3.2.tar.gz 3385493 BLAKE2B e4c2e614b0b868268fbfe3db222caeab2fe65f8fe55026aadff2acc5f1a2769fe3a71f0658e90ca35ccf5b117e7ec30b1f8a62499b6156976dac63118a766b92 SHA512 6320a49dddac527312b75c113428c52c27e0516b7d7235ceddf3009c2edbdc509d2ec425859c5d57591b55109e04aa9737dbe7d1337a6c2307936fa372f8a28a DIST etcd-3.3.3.tar.gz 3387223 BLAKE2B bf873ef764a4fa03c2c5b282129a2dc2e7574fd7d0206fb270d61c3a277342a2af145f4e00512c878a31d4102c0f8b0b7090872beb928b574aca97f5fe43915e SHA512 16597bba961d7018656dd4f73d4067218978cc41fa8fafbf9677621bdba2d5e81825d2c74820153a177df1813e5d8ac79e72967ba61be3339feb01bb2f539920 +DIST etcd-3.3.4.tar.gz 3513132 BLAKE2B 92902c260150259ce5627dbf517c81bdb914c857a901a5f7d8d878a2daad8db931c2d1958a562a612ed62b5ac3080ce54661cb70eabff3430ab9ff65c258544d SHA512 971c47545059dda65d40c2db0928a01b97cf8b1e1b60a6e631e797e3cf1619245430f938f637bea3ab0d01cc2a8974586988727bc9c652b8802e184ad5ad8487 diff --git a/dev-db/etcd/etcd-3.3.4.ebuild b/dev-db/etcd/etcd-3.3.4.ebuild new file mode 100644 index 000000000000..88b1e478fe0a --- /dev/null +++ b/dev-db/etcd/etcd-3.3.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2018 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" +MY_PV="${PV/_rc/-rc.}" +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${MY_PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc +server" +DEPEND=">=dev-lang/go-1.9:=" +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() { + if use server; then + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + fi +} + +src_compile() { + export GOPATH=${S} + pushd src/${EGO_PN} || die + ./build || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin bin/etcdctl + use doc && dodoc -r Documentation + if use server; then + insinto /etc/${PN} + doins "${FILESDIR}/${PN}.conf" + dobin bin/etcd + dodoc README.md + 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}" + keepdir /var/lib/${PN} + fowners ${PN}:${PN} /var/lib/${PN} + fperms 0700 /var/lib/${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + fperms 755 /var/log/${PN} + fi + popd || die +} + +src_test() { + pushd src/${EGO_PN} || die + ./test || die + popd || die +} |