commit:     5a445268c42a511282df85051623321456c6385e
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 31 19:21:31 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 20:34:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a445268

app-metrics/pushgateway: add 1.11.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-metrics/pushgateway/Manifest                  |  2 +
 app-metrics/pushgateway/pushgateway-1.11.2.ebuild | 54 +++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest
index 7c80c1a1a595..7b84474e7650 100644
--- a/app-metrics/pushgateway/Manifest
+++ b/app-metrics/pushgateway/Manifest
@@ -2,3 +2,5 @@ DIST pushgateway-1.11.0-deps.tar.xz 1519980 BLAKE2B 
9d3c6a20911191da1330671cf055
 DIST pushgateway-1.11.0.tar.gz 4256647 BLAKE2B 
2861bed8705b40772fe41e70c7e21b3f30f7a70ef4a8d2eb2283c11202f65d0d38befb778f8be8a9c9117605fc2a8b9254c20f43f73c6de675fbb7e3402627f8
 SHA512 
d4bb1d77cf0fb03160f3d7e05d0b570464e77d09f952e0ea1eb220d89fe60cd8599375c1230c8cd85d378ce9f32b27826a1f6cb462da9962da77c62f398ec156
 DIST pushgateway-1.11.1-vendor.tar.xz 1400592 BLAKE2B 
2c2b8cdc3007b66f1ffe105dc3d12a16b0e642c6f8cb0576da7fa2d14064c7c72b4fc9d436c826b6eb65eae35849414b9fa8079309cf3e4d742e31685362fa1f
 SHA512 
de8468aa6ef4af3e37298c46b8da40c894a78b9a6d2aea984a323457830685b0fea49cf00faa1e14aea3f50691979e844a916a2091ea85a9a5c0c5d1d4e0059f
 DIST pushgateway-1.11.1.tar.gz 4256655 BLAKE2B 
1e92432bb09159e981c754d80294ed349a32f17ddd87b714d6d76e70aa3b126da3df696996cc58811e582ea62e4a0a30958c0a60f4ea63856b7ebe9bbae9ac23
 SHA512 
e26311bddf6b9d8419aa1ec2ee5204c4ee8c6b0ae95a1be6f3bd3bc5a8eb7302c59b21b12ea0f3824fef4513dc871e56b1573529275cb4eae531e6dad29946a7
+DIST pushgateway-1.11.2-vendor.tar.xz 1413788 BLAKE2B 
3183476bab1d2351f546b0b3416db98b5fa794bd8623f380bfe76d188fffc90bac8b7e6ef459acb718d4bedebfd1d69ec7138b665397b1db3857e751e99c0e89
 SHA512 
b045ec5cb80713656347ee1e01b0bb88e145f9b8adca7e6001b752119e12d87755d56c32a123c73f811953d7612d8bb3ce32647ebfa042d27e4e10c838cc96b3
+DIST pushgateway-1.11.2.tar.gz 4258561 BLAKE2B 
c5db1cc4fc81488f99edce9b14ce4c9e59f0c20d1caf318861855b90f19b0c036076b75cdafe086532ebd1a6350230132fb832a6eed815f10766d4d119a3b566
 SHA512 
6f40d6c5cd92cd61c33329405660fb38060dbdfe75b130ab03b50b5c2ae4a1874dc7bc15872925865b4dd9e989fc11ad5d6e9e292283ef0886794ae74cd9d6a1

diff --git a/app-metrics/pushgateway/pushgateway-1.11.2.ebuild 
b/app-metrics/pushgateway/pushgateway-1.11.2.ebuild
new file mode 100644
index 000000000000..7277d933d3da
--- /dev/null
+++ b/app-metrics/pushgateway/pushgateway-1.11.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+GIT_COMMIT="aff0d83"
+DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs"
+HOMEPAGE="https://github.com/prometheus/pushgateway";
+SRC_URI="
+       https://github.com/prometheus/pushgateway/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz
+"
+
+LICENSE="Apache-2.0"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv"
+RESTRICT="test"
+
+RDEPEND="
+       acct-group/pushgateway
+       acct-user/pushgateway
+"
+DEPEND="${RDEPEND}"
+BDEPEND=">=dev-lang/go-1.24"
+
+src_compile() {
+       local go_ldflags=(
+               -X github.com/prometheus/common/version.Version=${PV}
+               -X github.com/prometheus/common/version.Revision=${GIT_COMMIT}
+               -X github.com/prometheus/common/version.Branch=master
+               -X github.com/prometheus/common/version.BuildUser=gentoo
+               -X github.com/prometheus/common/version.BuildDate="$(date 
+%F-%T)"
+       )
+       ego build -ldflags "${go_ldflags[*]}" -o bin/${PN} .
+}
+
+src_install() {
+       dobin bin/${PN}
+       dodoc {README,CHANGELOG,CONTRIBUTING}.md
+
+       keepdir /var/log/${PN}
+       fowners ${PN}:${PN} /var/log/${PN}
+
+       newinitd "${FILESDIR}"/${PN}-2.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}-1.confd ${PN}
+       systemd_newunit "${FILESDIR}/${PN}-1.service" "${PN}.service"
+
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+}

Reply via email to