public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/etcd/
Date: Sat, 25 Nov 2023 06:55:27 +0000 (UTC)	[thread overview]
Message-ID: <1700895321.b760fba58a93c17e3eee678f2c5d961c08671772.zmedico@gentoo> (raw)

commit:     b760fba58a93c17e3eee678f2c5d961c08671772
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 25 06:54:26 2023 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Nov 25 06:55:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b760fba5

dev-db/etcd: add 3.4.28

Bug: https://bugs.gentoo.org/918419
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 dev-db/etcd/Manifest           |  2 ++
 dev-db/etcd/etcd-3.4.28.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index ef54e978af04..a3edcea80c78 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -1,2 +1,4 @@
 DIST etcd-3.4.26-deps.tar.xz 39352316 BLAKE2B 8b1a30d645b1ea756ac944d2d3f7e0c5b9491bab54d4d74c6525c519e5297a1e8e2a97f70a50a5681cf8941d2e4978d5c3717fccb552042bcd42e7c4bd2b29a8 SHA512 eb3af2910030a165699158a3dfe7e1267f29c0720865026da2a95941c7e1e19db793e177e9ca5a9f3b134c1a9a83b4a0613a32a30282b68fe3aef75b8dacae59
 DIST etcd-3.4.26.tar.gz 6043999 BLAKE2B 03f3bd0388e59dea9300b9a811b426ce03f1001750259dcd8386566efaa64783746f0353f83c1d01960004a77cea08a194aba394d91808aad15b5d4bb8f151cf SHA512 b2048070adb1df6e98c06e0e951f7940815dab238fe4ba49c36681a638f39eb7e40fed691baf70410d01467965094d70f008d0046b1b550b2ac1ed19ac89ca47
+DIST etcd-3.4.28-deps.tar.xz 66108144 BLAKE2B 81bef927202231a7b8a1856327d371060b15aadf6189dd3950946a8274df5eb6845b6a645f27f8c231d1bf6baef40777b433e0f9f96f6faf136cef53ec66220f SHA512 5cf3810309c28559a3b793a2c7e329aea13f0e1ec83a033bf8d1f34b4aa7a357446bbe654f56175b52822c08e22e335be39592955b369ddc91a276c90c582820
+DIST etcd-3.4.28.tar.gz 6052858 BLAKE2B 8c6dbebf3570c88e53ff5d13b0192502bc93d50076b9b66bd3ef4a313e734a1dc630366203b8e5d22ce29e9e8498e5e9304a6b02973d2defd4b65425ee24becb SHA512 409f82c9979ee34327f0f1f6fd171ccbeb6a044ca4e1f137dd803172e2b79f5f14d68eea67b12c90401dc93fe830b7adf77f8c06c2730f3205d367a957fc43cc

diff --git a/dev-db/etcd/etcd-3.4.28.ebuild b/dev-db/etcd/etcd-3.4.28.ebuild
new file mode 100644
index 000000000000..9084f1072095
--- /dev/null
+++ b/dev-db/etcd/etcd-3.4.28.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd tmpfiles
+GIT_COMMIT=adf6bd245
+
+DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/etcd-io/etcd"
+SRC_URI="https://github.com/etcd-io/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~loong ~riscv"
+IUSE="doc +server"
+
+COMMON_DEPEND="server? (
+	acct-group/etcd
+	acct-user/etcd
+	)"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+# Tests fail with this error:
+# fatal error: checkptr: unsafe pointer conversion
+RESTRICT="test"
+
+src_prepare() {
+	export GO_BUILD_FLAGS="-v -x"
+	default
+	sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|"\
+		-i "${S}"/build || die
+	sed -e 's:\(for p in \)shellcheck :\1 :' \
+		-e 's:^			gofmt \\$:\\:' \
+		-e 's:^			govet \\$:\\:' \
+		-e 's:^			govet_shadow \\$:\\:' \
+		-i "${S}"/test || die
+
+	sed -e "s|GO_BUILD_FLAGS=\"[^\"]*\"|GO_BUILD_FLAGS=\"${GO_BUILD_FLAGS}\"|" \
+		-e "s|go test |go test ${GO_BUILD_FLAGS} |" \
+		-i ./test || die
+}
+
+src_compile() {
+	./build || die
+}
+
+src_test() {
+	./test || die
+}
+
+src_install() {
+	dobin bin/etcdctl
+	use doc && dodoc -r Documentation
+	if use server; then
+		insinto /etc/${PN}
+		sed -e 's|^data-dir:|\0 /var/lib/etcd|' -i etcd.conf.yml.sample || die
+		newins etcd.conf.yml.sample etcd.conf.yml
+		dobin bin/etcd
+		dodoc README.md
+		systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
+		newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+		newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+		newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN}
+		insinto /etc/logrotate.d
+		newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+		keepdir /var/lib/${PN} /var/log/${PN}
+		fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN}
+		fperms 0700 /var/lib/${PN}
+		fperms 0755 /var/log/${PN}
+	fi
+}
+
+pkg_postinst() {
+	if use server; then
+		tmpfiles_process ${PN}.conf
+	fi
+}


             reply	other threads:[~2023-11-25  6:55 UTC|newest]

Thread overview: 132+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25  6:55 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-24 19:59 [gentoo-commits] repo/gentoo:master commit in: dev-db/etcd/ Zac Medico
2024-08-12  5:29 Zac Medico
2024-05-11 15:16 Arthur Zamarin
2024-04-14 23:47 Zac Medico
2024-04-14 20:43 Zac Medico
2024-03-25  2:14 Zac Medico
2024-03-25  2:01 Zac Medico
2023-11-25  7:56 Zac Medico
2023-10-12  5:54 WANG Xuerui
2023-06-23  2:14 Sam James
2023-05-19 21:08 Zac Medico
2023-05-15 20:13 Arthur Zamarin
2023-04-30 23:50 Sam James
2022-09-27 23:41 Zac Medico
2022-05-15 21:36 Zac Medico
2022-05-15 21:21 Zac Medico
2022-05-15 21:21 Zac Medico
2021-09-27  4:54 Zac Medico
2021-09-27  4:49 Zac Medico
2021-09-27  4:30 Zac Medico
2020-08-19 17:37 Zac Medico
2020-08-19 17:37 Zac Medico
2020-08-15  4:09 Zac Medico
2020-08-15  3:57 Sam James
2020-08-06  7:01 Zac Medico
2020-08-06  7:01 Zac Medico
2020-04-03 18:35 William Hubbs
2020-04-01 21:49 William Hubbs
2020-03-23 15:51 William Hubbs
2020-03-19 22:50 William Hubbs
2020-02-25  5:35 William Hubbs
2019-11-27 13:36 Manuel Rüger
2019-10-28 13:58 Manuel Rüger
2019-10-23 22:49 Manuel Rüger
2019-10-23 22:49 Manuel Rüger
2019-10-23 20:50 Manuel Rüger
2019-10-13 16:57 Manuel Rüger
2019-10-13 16:57 Manuel Rüger
2019-10-10  7:28 Manuel Rüger
2019-10-10  7:28 Manuel Rüger
2019-09-21  1:40 Zac Medico
2019-09-21  1:22 Zac Medico
2019-09-18  7:24 Manuel Rüger
2019-09-18  7:24 Manuel Rüger
2019-09-05 22:04 Zac Medico
2019-09-02 20:34 Zac Medico
2019-09-02 15:35 Manuel Rüger
2019-09-02 15:35 Manuel Rüger
2019-09-02 15:35 Manuel Rüger
2019-08-19 20:42 Manuel Rüger
2019-08-17 18:52 Manuel Rüger
2019-08-17 18:52 Manuel Rüger
2019-06-05 15:18 Manuel Rüger
2019-05-03 12:41 Manuel Rüger
2019-03-28 13:20 Manuel Rüger
2019-03-16 22:41 Zac Medico
2019-03-16 22:41 Zac Medico
2019-02-08 13:54 Manuel Rüger
2019-01-14 14:04 Manuel Rüger
2019-01-14 14:03 Manuel Rüger
2019-01-14 14:03 Manuel Rüger
2018-11-26 20:18 Manuel Rüger
2018-10-17  1:58 Zac Medico
2018-07-25 14:02 Manuel Rüger
2018-07-25 14:02 Manuel Rüger
2018-07-17 14:24 Manuel Rüger
2018-06-16 13:58 Manuel Rüger
2018-06-15 14:24 Manuel Rüger
2018-06-06 20:41 Manuel Rüger
2018-06-06 20:40 Manuel Rüger
2018-06-06 20:40 Manuel Rüger
2018-06-02 12:21 Manuel Rüger
2018-06-02 12:21 Manuel Rüger
2018-05-14 14:01 Manuel Rüger
2018-05-14 13:58 Manuel Rüger
2018-05-14 13:55 Manuel Rüger
2018-04-26  1:42 Manuel Rüger
2018-04-25  0:51 Manuel Rüger
2018-03-29 12:55 Manuel Rüger
2018-03-20 11:35 Manuel Rüger
2018-03-09 15:08 Manuel Rüger
2018-03-09 15:08 Manuel Rüger
2018-03-02 13:14 Manuel Rüger
2018-02-23 16:31 Manuel Rüger
2018-02-13 14:22 Manuel Rüger
2018-02-01 23:01 Manuel Rüger
2018-02-01 23:01 Manuel Rüger
2018-01-24 19:20 Manuel Rüger
2018-01-24 19:20 Manuel Rüger
2018-01-15 13:19 Manuel Rüger
2018-01-15 13:08 Manuel Rüger
2018-01-15 13:08 Manuel Rüger
2018-01-09 19:27 Manuel Rüger
2018-01-05 14:42 Manuel Rüger
2018-01-05 14:42 Manuel Rüger
2017-12-23 15:02 Manuel Rüger
2017-12-23 15:02 Manuel Rüger
2017-12-06 19:48 Manuel Rüger
2017-11-20 12:55 Manuel Rüger
2017-10-09 14:13 Manuel Rüger
2017-10-09 14:13 Manuel Rüger
2017-10-02 12:16 Manuel Rüger
2017-10-01 18:19 Zac Medico
2017-09-08 21:48 Manuel Rüger
2017-09-08 21:47 Manuel Rüger
2017-08-24  9:56 Manuel Rüger
2017-08-08 12:59 Manuel Rüger
2017-08-08 12:59 Manuel Rüger
2017-07-27 13:35 Manuel Rüger
2017-07-16 10:21 Manuel Rüger
2017-07-16 10:21 Manuel Rüger
2017-07-16 10:21 Manuel Rüger
2017-06-28 14:49 Manuel Rüger
2017-06-12 13:53 Manuel Rüger
2017-06-12 12:57 Manuel Rüger
2017-06-12 12:57 Manuel Rüger
2017-05-29 11:55 Manuel Rüger
2017-04-27 22:37 Manuel Rüger
2017-04-25 18:12 Manuel Rüger
2017-04-25 15:51 Manuel Rüger
2017-01-31 20:23 Zac Medico
2017-01-31 20:21 Zac Medico
2017-01-31 19:32 Zac Medico
2016-11-20  6:58 Patrick Lauer
2016-11-20  0:55 Zac Medico
2016-10-24  9:26 Zac Medico
2016-10-21 15:47 Zac Medico
2016-06-27 16:34 Alexys Jacob
2016-02-21  6:12 Zac Medico
2015-10-23 21:14 Zac Medico
2015-10-23 21:10 Zac Medico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1700895321.b760fba58a93c17e3eee678f2c5d961c08671772.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox