commit:     08e6c67f49f14cfde70f5b0f32bb61256ccfc19b
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  9 16:32:13 2026 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Jan  9 16:52:03 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08e6c67f

dev-db/etcd: Version bump to 3.5.26

There is 3.6.7, but some may still need 3.5.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

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

diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index b06cd68a7e3e..1d56cf003847 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -2,3 +2,5 @@ DIST etcd-3.4.31-deps.tar.xz 2212704 BLAKE2B 
8b30941eefdb3811fb331014b69eb8d5b9c
 DIST etcd-3.4.31.tar.gz 6072806 BLAKE2B 
30aa5b79d2fd0ba639bc766c104d5df28af50ae5398d860af3b3aff91c143ccd899538b341501386bac55dedc00086654de6e4ab9b237053b199a8de2fa509ec
 SHA512 
4a7e366ced86ea86a324ab972ea47be56456c0aa8744e5ec07d499a56bdc9179ebc3bc2f33bd67c2d341181a5bcc703abc5a7c2e57879169a351457b4a0274f3
 DIST etcd-3.5.18-deps.tar.xz 46453448 BLAKE2B 
677370cb6d9064f8474adbfc5030b46f3367198cb8defc9242be00423c570f8c9bc5358d6dbe9d8cfee8e7797a2f8c93e7b4c8cbee4702c59287005cd7885fef
 SHA512 
f1ed36d49f199fff4b0ee920870c3ac66dee0dcb5e92fa24a3861d841bdcfa99b210b292138116de9aafeec424c7663111f9bb0ad87910e1314031eb501f4aeb
 DIST etcd-3.5.18.tar.gz 4128059 BLAKE2B 
32f867170bf1195d019dcf562bff9104db00f6ccff6b91bf12a4c95a63a5d92dda6984437bed819240be7bd8d4e2b507904251f636e945c5847ef93e72f1dd63
 SHA512 
0d72c40d575997d70d9d4964e7ff4be75c77e13a40ea08fcc020fddc64dc420338f1853d5a51a2dbe3f4c2881ae196a7aa32565e4b41dbda77bc2b6ae2313104
+DIST etcd-3.5.26-deps.tar.xz 48943308 BLAKE2B 
6c5719f47ef4be8b98260ff8b1f4d09c25bf01eb830e8e7851793d617336df0556bf7010bd9b6dba611b017501bdda18541282363e275d3ecded6c25efa43c50
 SHA512 
e3544d6787800d734ec9e851ea4755f166e3eaf6e82c3353e172aa2f34336a312f97811e39aae4babc905d91627fa182aed007c450737194db937d4ba76dc8c9
+DIST etcd-3.5.26.tar.gz 4145585 BLAKE2B 
e261a5ef3b629a69cc044b1a92ee6b3a2d56ee7e648b86036016c79b084bbb5dd748ecaf0214900b88c596b14f297815ab166e468c0fe84d63f46e6b51e867d5
 SHA512 
3a014d259725d8a116a3823fd921c6fa6cf9587c993038c12765085032610e997bf318d29ca2ae9ed34a55990cb500b61e2bc1f8151a80e200ec2299d918cf76

diff --git a/dev-db/etcd/etcd-3.5.26.ebuild b/dev-db/etcd/etcd-3.5.26.ebuild
new file mode 100644
index 000000000000..142cc8e78642
--- /dev/null
+++ b/dev-db/etcd/etcd-3.5.26.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd tmpfiles
+GIT_COMMIT=65251b30e
+
+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"
+SRC_URI+=" https://dev.gentoo.org/~chewi/distfiles/${P}-deps.tar.xz";
+
+LICENSE="Apache-2.0"
+LICENSE+=" 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}"
+
+# Unit tests attempt to download go modules.
+RESTRICT="test"
+
+src_prepare() {
+       export FORCE_HOST_GO=1 GO_BUILD_FLAGS="-v -x"
+       default
+       sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|" \
+               -i "${S}"/build.sh || die
+       sed -e 's:\(for p in \)shellcheck :\1 :' \
+               -e 's:^      goword \\$:\\:' \
+               -e 's:^      gofmt \\$:\\:' \
+               -e 's:^      govet \\$:\\:' \
+               -e 's:^      revive \\$:\\:' \
+               -e 's:^      mod_tidy \\$:\\:' \
+               -e 
"s|GO_BUILD_FLAGS=\"[^\"]*\"|GO_BUILD_FLAGS=\"${GO_BUILD_FLAGS}\"|" \
+               -e "s|go test |go test ${GO_BUILD_FLAGS} |" \
+               -e 's|PASSES=${PASSES:-"fmt bom dep build 
unit"}|PASSES=${PASSES:-"fmt dep unit"}|' \
+               -i ./test.sh || die
+}
+
+src_compile() {
+       ./build.sh || die
+}
+
+src_test() {
+       ./test || die
+}
+
+src_install() {
+       dobin bin/etcdctl
+       dobin bin/etcdutl
+       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 via email to