commit: 3004ee277837abf0ec10ad6a228cddc0a925ab64 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Mon Dec 15 07:06:00 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Mon Dec 15 07:07:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3004ee27
app-admin/consul: add 1.22.1 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-admin/consul/Manifest | 2 ++ app-admin/consul/consul-1.22.1.ebuild | 65 +++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest index 4e567fd8b7a2..6d4bc44c487b 100644 --- a/app-admin/consul/Manifest +++ b/app-admin/consul/Manifest @@ -10,3 +10,5 @@ DIST consul-1.20.2-deps.tar.xz 10069664 BLAKE2B 7a6ac97367625da734fd9a399e14744e DIST consul-1.20.2.tar.gz 39310768 BLAKE2B 9d6d05a6d16e842fd0cdb1a8d8a93adedfc82388fbf72bb8088ab1fd96ac9d98762f0e67c0b22c240e801655bc2c478ba09d0cfc563b3151c2d56f59e4f001f5 SHA512 687c30b55aedcd0b9154ae4a05c6a828e453146ae171a1407497fb45aed952fc888306c48590cc9243dd7c1f59795b345f04f36c2de183f64e13e35e4a61d66b DIST consul-1.20.4-deps.tar.xz 10083416 BLAKE2B a2cd1e661d5ffe51681d757918990e4912ec58a774631e51281f7029b2e452a0d6d5f4923970e545f277eb1becb013666d678e950a8c162c129466af1284ab9a SHA512 f8cdb9f06f9c29da5f2d345a9d41ba2f5c50994a66b39dca99ccc41a2003884c464d7f79f47397769655eebafa5403e9829a8340edc33c3fd33e54c5055dd1f2 DIST consul-1.20.4.tar.gz 39216717 BLAKE2B ed7fd3d7b0c9cb8a8e7d41a38dda7bb2d337a047ea69f66fe75a418b52e1b98a9364aafc5b90f9ec419eafc5683beb4f5f78442bae0e3bdf8df9a93484a66f50 SHA512 664b12e2ced795b1627a3614018f182313fac8c72e366bc81d72e8ad454de09814711f0cd58fa920f4521c96253ca0a7673ea83d474be1b30171df11abf06845 +DIST consul-1.22.1-vendor.tar.xz 10605176 BLAKE2B f10468b3d625daf52a0251edf04ede2109bd76ca6ad791f0b98cfb3a99a958fc27396a980f40e2008fbcf58580ddc89e8cdc52126e7d640215c0927c67e7f575 SHA512 ef568086fa8f9408dad1a41dbfc4fadaf6e9e5cab262591e5f26cf7138020528829999aaf1f0a1fed4e761ac4b9bd7cc680a9b21f50874110dbb897f935d72a8 +DIST consul-1.22.1.tar.gz 50628621 BLAKE2B 09f56f1e503e5d08ec296958dbecd1c273446ddb2dc678847458e767c130826efcfa7bdc0536ce3f581834ee681c97ddc430ddec6e84b93e28769dd9274a7150 SHA512 0ee559324079ac7e7f95e5c38cd5f09e2e40b51491697951e60aa8ad7d6eddebf7a129d559ed2a01eca2e2cac9d34e19e850cfd3c1e8f796800cff30e02557f0 diff --git a/app-admin/consul/consul-1.22.1.ebuild b/app-admin/consul/consul-1.22.1.ebuild new file mode 100644 index 000000000000..3cfdbbf1c073 --- /dev/null +++ b/app-admin/consul/consul-1.22.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +GIT_COMMIT="3831febfb003370d3544ff6f71ba4eeea0b92772" +GIT_DATE="2025-11-26T05:53:08Z" # source build-support/functions/10-util.sh; git_date + +DESCRIPTION="A tool for service discovery, monitoring and configuration" +HOMEPAGE="https://www.consul.io" +SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz" + +LICENSE="BUSL-1.1 MPL-2.0" +# Dependent licenses +LICENSE+=" AFL-2.1 Apache-2.0 Artistic Artistic-2 BEER-WARE Boost-1.0 BSD BSD-2 BSD-4 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-2.0 CC-BY-SA-3.0 CC-BY-SA-4.0 GPL-1 GPL-2 GPL-3 ISC LGPL-2 LGPL-2.1 LGPL-3 LPPL-1.3c MIT MPL-2.0 Ms-PL OFL-1.1 openssl OSL-1.1 RSA Sleepycat Unicode-DFS-2016 UoI-NCSA WTFPL-2 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +RESTRICT="test" + +DEPEND=" + acct-group/consul + acct-user/consul +" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-lang/go-1.25.4" + +src_prepare() { + default + sed -e "s|^GIT_DATE=.*|GIT_DATE=${GIT_DATE}|" -i Makefile || die +} + +src_compile() { + if use x86; then + #924629 pie breaks build on x86 + GOFLAGS=${GOFLAGS//-buildmode=pie} + fi + # The dev target sets causes build.sh to set appropriate XC_OS + # and XC_ARCH, and skips generation of an unused zip file, + # avoiding a dependency on app-arch/zip. + GIT_DESCRIBE="v${PV}" \ + GIT_DIRTY="" \ + GIT_COMMIT="${GIT_COMMIT}" \ + emake dev-build +} + +src_install() { + dobin bin/consul + + keepdir /etc/consul.d + insinto /etc/consul.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/consul + fowners consul:consul /var/log/consul + + systemd_dounit "${FILESDIR}/consul.service" + newinitd "${FILESDIR}/consul.initd" "${PN}" + newconfd "${FILESDIR}/consul.confd" "${PN}" + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +}
