commit: 01d0f2e8fc28abde146e03ed864006e8dcc2ad42
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 10 23:18:14 2025 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jun 10 23:18:30 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d0f2e8
app-metrics/prometheus: add 3.4.1
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
app-metrics/prometheus/Manifest | 3 +
app-metrics/prometheus/prometheus-3.4.1.ebuild | 79 ++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest
index 1b2c4e76a120..2b9041b72d00 100644
--- a/app-metrics/prometheus/Manifest
+++ b/app-metrics/prometheus/Manifest
@@ -7,3 +7,6 @@ DIST prometheus-3.1.0.tar.gz 4973352 BLAKE2B
ac8f68002f3924f79ee2a75aed8ea585fc0
DIST prometheus-3.2.1-assets.tar.xz 78754104 BLAKE2B
142dcf8bf5e2fd7d241f5ed0e7d9ed5beaea413b631a8c80b93766aa7554ef125c769d262b6af23efd128eb787d40c673e75dde917fe0ded9518581194c80901
SHA512
8f1b74397d111676a091dc58730e180a9d350726d2195daebd40dad8f90deb7e226919864e4bb7206a1b95cb082e227a19c3406ff53eee177874a0b53e5accc9
DIST prometheus-3.2.1-deps.tar.xz 137051124 BLAKE2B
a0b74c935bfcfc2dc369ed9e3474e4da25f69a1da6d602524b21958858550f892d1c7e1b4d414e9c075445055608910c21b3e72b82076313f733b39e03c42b2e
SHA512
b187411b7e3586c638a9c7cdbf3289255e8fee987a95f17e2d606ebfbd31e4926472990ad7d92a0b416592a227a0e238be64b2ce8444312134ce050d619b4e52
DIST prometheus-3.2.1.tar.gz 5001971 BLAKE2B
f341e177c94ca949fa374603d57356ba191daa7ffd5f2edda532cdb4b977f25dbbb241e6a08dc04dbc6aac4c0cf4e5db951c0add5fd92451fecacb9eac2e422f
SHA512
6e6a972c23efaba80699d2f82f4ca3fbe2bc81644d9a4540a3a82c556009a5388a2e81e7548792fa01f7cfea8727d3aa8c9e4bc0f0538f0016e0a88502399c51
+DIST prometheus-3.4.1-assets.tar.xz 71179932 BLAKE2B
2a93859c94aa59d2ef871811318df71ced59ada80a741cef2e594fd3bd53a91c1c5435139602bfd644346b4a71d4ea967a022329e022e82cd8b2b995af1b0155
SHA512
80833ed6c1dfb52c8497b2a820b570b90b066a712caeb3433659e9eb0d923e797d1ea9a623a1536d575f3596f198e0dcc91b3816e24a714cf42804e26ba95f0f
+DIST prometheus-3.4.1-deps.tar.xz 162720712 BLAKE2B
d3048b78ddc4f32485d2c76614063623e822d78dde5cb6df17138b7d34f9469beb0acb929b3f8d594c26e9f24c19548e3e2f228b8b5bfdfb9eec550607ad2c60
SHA512
6a750ae390890beb0557d3dc93d6514af1b67ebc1165bcfa1f3835e6adc60cc4ace9064248bfce3c8d349f817887bf89c7b19977020c82e070b2ccec31198370
+DIST prometheus-3.4.1.tar.gz 5078318 BLAKE2B
b37da194843f135c3c90480a071a3261d41ab4fa6e761be6461e315c5117b256636b4ba8b71607c20adb68472d841b9cb7b4aa0c87fafebc364eeada66c756e2
SHA512
491e6d4b82dae66900ec74ffc2e12388ec5ae6b9348efe2d61a30892226ec4a20a8e5293a56f917ef6a63f1528f8e19a2a7609f7a648d6fa4710f8a24755a1f8
diff --git a/app-metrics/prometheus/prometheus-3.4.1.ebuild
b/app-metrics/prometheus/prometheus-3.4.1.ebuild
new file mode 100644
index 000000000000..056f51564ade
--- /dev/null
+++ b/app-metrics/prometheus/prometheus-3.4.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd eapi9-ver
+
+GIT_COMMIT=aea6503d9bbaad6c5faff3ecf6f1025213356c92
+MY_PV=v${PV/_rc/-rc.}
+
+# To create the assets tarball run the following:
+# git checkout <tag>
+# make assets-compress
+# tar -acf <tarball> web/ui
+
+DESCRIPTION="Prometheus monitoring system and time series database"
+HOMEPAGE="https://prometheus.io"
+SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz ->
${P}.tar.gz
+ https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz
+ https://dev.gentoo.org/~williamh/dist/${P}-assets.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
+
+COMMON_DEPEND="acct-group/prometheus
+ acct-user/prometheus"
+DEPEND="!app-metrics/prometheus-bin
+ ${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+BDEPEND=">=dev-util/promu-0.17.0"
+
+RESTRICT=" test"
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s/{{.Branch}}/HEAD/" \
+ -e "s/{{.Revision}}/${GIT_COMMIT}/" \
+ -e "s/{{.Version}}/${PV}/" \
+ .promu.yml || die
+ cp -a -u "${WORKDIR}"/web/ui web || die "cp failed"
+}
+
+src_compile() {
+ emake PROMU="${EPREFIX}"/usr/bin/promu common-build plugins
+}
+
+src_install() {
+ dobin prometheus promtool
+ dodoc -r documentation/{images,*.md} *.md docs
+ insinto /etc/prometheus
+ doins -r documentation/examples/prometheus.yml
+ insinto /usr/share/prometheus
+ doins -r documentation/examples
+
+ systemd_newunit "${FILESDIR}"/prometheus-3.2.service prometheus.service
+ newinitd "${FILESDIR}"/prometheus-3.2.initd prometheus
+ newconfd "${FILESDIR}"/prometheus-3.2.confd prometheus
+ keepdir /var/log/prometheus /var/lib/prometheus
+ fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
+}
+
+pkg_postinst() {
+ # added 2025-03-28 to warn about a fix for version 3.1.0
+ if ver_replacing -eq 3.1.0; then
+ ewarn "The systemd service has been renamed from prometheus-3
to prometheus."
+ fi
+ # added 2025-03-28 for version 3.2.1
+ if ver_replacing -lt 3.2; then
+ ewarn "The --web.enable-lifecycle and --web.enable-admin-api
options have been removed"
+ ewarn "from the default command line."
+ ewarn "If you need these options, please enable them in
/etc/prometheus/prometheus.yml"
+ elog
+ elog "The --web.listen-address option was removed from the
default command line"
+ elog "because we were using the default upstream setting."
+ fi
+}