mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-db/etcd: add 3.4.26
Bug: https://bugs.gentoo.org/906656 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
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
|
||||
|
||||
79
dev-db/etcd/etcd-3.4.26.ebuild
Normal file
79
dev-db/etcd/etcd-3.4.26.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user