summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-06-02 14:21:13 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-06-02 14:21:13 +0200
commit301f62a4adf703c8491cc35f92bfc4c8f873c000 (patch)
treedc33fb2f580e7aceabd6f65abe59ddcd8ddded72 /dev-db/etcd
parentdev-db/etcd: Version bump to 3.3.6 (diff)
downloadgentoo-301f62a4adf703c8491cc35f92bfc4c8f873c000.tar.gz
gentoo-301f62a4adf703c8491cc35f92bfc4c8f873c000.tar.bz2
gentoo-301f62a4adf703c8491cc35f92bfc4c8f873c000.zip
dev-db/etcd: Version bump to 3.2.21
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-db/etcd')
-rw-r--r--dev-db/etcd/Manifest1
-rw-r--r--dev-db/etcd/etcd-3.2.21.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index 82aa8f6d48ef..40e0ef078fbd 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -1,4 +1,5 @@
DIST etcd-3.2.20.tar.gz 3239546 BLAKE2B e999a4cd0a39a5cffcf948039f8e9c802eba9216c1a065b58e68ee9b7a3b09676ce3c228cc4719c87ec78b671512ec5bd6f54b0769e2f1dbce9cb02840cd1c84 SHA512 5d5b7e5d398785a4354a018c0636ba86bf45cd5360d84c096155f1e3f47616b6b85cddb68b9401228190962e9d9efc78b9d4e66c67022b9e729489422cbf892c
+DIST etcd-3.2.21.tar.gz 3239819 BLAKE2B bbf571a1efc6d4519a29e257f52b104ad5502c503db3516f7ff5cd90a7769fe5d2a890c4fa6fa0be55a0c2125b22e0cbb4973bacc56eb41243f8c0d22cf4af7a SHA512 bc10250be6a373f5096d9f4f7964faea6e94d2a8d8f8545b6400ca49d3ab504896212ac68579af577c027cc4682ba6441d52668b976e656a08933ca3db50ffaf
DIST etcd-3.3.4.tar.gz 3513132 BLAKE2B 92902c260150259ce5627dbf517c81bdb914c857a901a5f7d8d878a2daad8db931c2d1958a562a612ed62b5ac3080ce54661cb70eabff3430ab9ff65c258544d SHA512 971c47545059dda65d40c2db0928a01b97cf8b1e1b60a6e631e797e3cf1619245430f938f637bea3ab0d01cc2a8974586988727bc9c652b8802e184ad5ad8487
DIST etcd-3.3.5.tar.gz 3514955 BLAKE2B 394b6563f27a1a73aa553dc4db440d803721d001ab3d53c045df826c527c87232a6c1b83aed5fc9e4011f2480b456f0ae2a7a34bc173df90478d1704fd5c392d SHA512 e4495a02f1e2a08cc70a055528edbc118f50e4fe68b51afeb82908a7c2387de1e457adfb8078befec6829daeace61b95501da9f8b3fa49e0aecc9710ece470a4
DIST etcd-3.3.6.tar.gz 3515934 BLAKE2B 71cd401e3de2f022bd091b0e68e60a4864ec56a7e076dc510ce0e344a2b48243c18b51d432f6c6abdc1f5aaa42b69b4b843c0671f263095c5930f164c82b5e62 SHA512 00ee750499d487eeeb171f738c6cfe4ebc5d7ffc0f01343c56f712232046161091b23301818593ac14cbd36870d9bba407fad26d863dd41ea257ad21e1a3d93f
diff --git a/dev-db/etcd/etcd-3.2.21.ebuild b/dev-db/etcd/etcd-3.2.21.ebuild
new file mode 100644
index 000000000000..34692b679e18
--- /dev/null
+++ b/dev-db/etcd/etcd-3.2.21.ebuild
@@ -0,0 +1,63 @@
+# 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"
+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 0700 /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
+}