summaryrefslogtreecommitdiff
path: root/dev-db/etcd
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/etcd')
-rw-r--r--dev-db/etcd/Manifest3
-rw-r--r--dev-db/etcd/etcd-3.4.26.ebuild79
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
index 296b3faca9f5..1bcb0653dd4b 100644
--- a/dev-db/etcd/Manifest
+++ b/dev-db/etcd/Manifest
@@ -9,5 +9,8 @@ AUX etcd.service-r1 458 BLAKE2B 4e2dd4934350821d01de1a0d9b8c4a402eeb87bf81a24f48
AUX etcd.tmpfiles.d.conf 72 BLAKE2B b567592de5cc69c8e55ef16c537d0ad9207fd5f932bd2ca622f66909362033bb3387289af4675be53c0a5a7cf513805c4dfe45391091128a6ada3ffea4377420 SHA512 403fa63c0284811c655e5e9f3e7f6eb81ad6c10a1b0eb8df400e7e85c621c56b9580457bbb2a823c0ae3c2fac10f6b8bfb73991a10d9373e87f10b906d8d50cd
DIST etcd-3.4.16-deps.tar.xz 36600528 BLAKE2B 3c8cbaef04b673962858cde9846a6a118eec785c0fc76b6e600b1686fd6e684f4b73af4aedb5886dfca51434e5738fb9bd0a39cdb81eda922e374c7668f0c0d0 SHA512 9119e09fc50bb916c3e436b9a4eea4b041184384865955f9b1a0f12e1334d9a143d49cc241ee51229e04fdfaedbbce24a66159107f52519b88a1e95cd64222df
DIST etcd-3.4.16.tar.gz 8853228 BLAKE2B 576d3f038f6e9e3eadaa9ba3935f8372271e9fd2cfb8ab193ce16ee57a55419daad4d8496f6ad27dcb833566e6eb077052422e1c86053d176a86b4305c8cc525 SHA512 3f413debe8bd723a00a3e39db05f6dbf414b7dc02f40f07d3037445c63b31c7bd8adaf77152ae01aa6aae3966f65393c5c8e352bbc2b86d01e5e2dd979c1c2e1
+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
EBUILD etcd-3.4.16-r1.ebuild 2036 BLAKE2B ee310d75d5ad6bb799d6d07745dedd1f58db1f753f1fc35ad6079fe9c6b354a2dbeb9f3d3385f216fae9bf204e577abe60110fd3bc18747d766947cc4c656b30 SHA512 d9f1f53794d1866f297bc15eb7dfa8702b063e042cbbb4c35521f02eddf13d2269e6bf16f93ca0ea2bca9ddbc0ece61a0ba11467a11dc9348f82a074cfc9ef73
+EBUILD etcd-3.4.26.ebuild 2037 BLAKE2B 07b550c81f55499856904474ce34a3cb0030d2d7bfc4617f5423e282a66280289eb801a8407c0bc3eea3fcbcdccad6da52c306d60dd01158e6020d67e87a8c9e SHA512 82cccfbc1e019102f84d6f350d486bf7244a571faadce6f51fd38eecbed266eeeecb23ecbdeb666ee9f8193bec731e386186d9fcfb72ee6f63b44c22b94ff3ca
MISC metadata.xml 421 BLAKE2B 5498a48643720f59f55d3b37d21fa80a4d8c984e7dc0e9beaccdb4f08d53819025e5849e481a7ce14fc519de15fdbed622f3c3912335cf81a678c522ba367b32 SHA512 ed8b5d3b552fdc284301ed63b941c2ce87cc808718dc15191597932d6543606907a175c929416f51193c63e12d79fef7993d0f91d9d0f70aacf75447c3744b73
diff --git a/dev-db/etcd/etcd-3.4.26.ebuild b/dev-db/etcd/etcd-3.4.26.ebuild
new file mode 100644
index 000000000000..a8328d87000f
--- /dev/null
+++ b/dev-db/etcd/etcd-3.4.26.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=a603c0798
+
+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 ~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
+}