public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/prometheus/
Date: Sat, 25 Mar 2023 18:16:48 +0000 (UTC)	[thread overview]
Message-ID: <1679768198.1b3af9816cecc845ee74fb870ecb30d27ad6264a.williamh@gentoo> (raw)

commit:     1b3af9816cecc845ee74fb870ecb30d27ad6264a
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 25 18:15:53 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat Mar 25 18:16:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b3af981

app-metrics/prometheus: add 2.43.0

Bug: https://bugs.gentoo.org/885109
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-metrics/prometheus/Manifest                 |  3 ++
 app-metrics/prometheus/prometheus-2.43.0.ebuild | 72 +++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest
index 88cb8cc4ca83..ea659d0f3c49 100644
--- a/app-metrics/prometheus/Manifest
+++ b/app-metrics/prometheus/Manifest
@@ -7,3 +7,6 @@ DIST prometheus-2.40.4.tar.gz 6156657 BLAKE2B a522b31516f5e26475afa2d59a7074b7de
 DIST prometheus-2.41.0-assets.tar.xz 45792212 BLAKE2B 79e494a983d1e666b2e706532c2bd16562382b458132af2c8f26ab684097bd70384e1a11d0926662592b0d3133cab4435b16d1e2d7f1cd3a3b237831cf762dc4 SHA512 a35ec5b31fa05f2f044b9b843095cf68913664f88a4b9f64479ae2392682a7a7c8cf5e7239340ff260bf151c92d06929284174371cac072d32355103d9257131
 DIST prometheus-2.41.0-deps.tar.xz 254253988 BLAKE2B 8ba4697b53a99660d9191097fb734c1024b8b9a437c18d9eaf0a10e7e065364e34eb419751fce253188aa3ec6714ab1231ed85d11469dd76fe1eb76e4cdd4360 SHA512 87f591c93bec487210e9adf4c486f96fc02b708f923b4dd01f4e264a800190733f36718170f5da647e5aef4839214809e850ffac3cad17cb80957adaa80ef5a9
 DIST prometheus-2.41.0.tar.gz 6184846 BLAKE2B 525fca8b006b0edf9c6c3e71120b4c11af1e08966108c21ab4897501f64d454b3ac2ac7c5f986485d2c1c2d2186f3dc131ad6df1499f5006fa68473de7fc0aed SHA512 87076421a9c641c3553fe039a5de6e6c0a63f44869895bc0741a446bd150a59ca77eaa4080bac61ecbc3c4bf378ea79fabe1e640710793cd8c83a20ba7e4a5e1
+DIST prometheus-2.43.0-assets.tar.xz 45483188 BLAKE2B 603ba713947954d5c54748cc5778d7c3f6f3ef90abbb73eb3b44269c4b2973290e408d284abe83d30d99107be6007feeb2078d70b4fba71a8b4e612cd7e923a2 SHA512 8a15a3ebbeb8ae27d20d036ee7a9eae09ca8829f8e5b96ebe662e078e57ec02c3654916f705101ea1e371d7b79a4ea9f98b3c3f0433137c7750699e6bf3e0d97
+DIST prometheus-2.43.0-deps.tar.xz 261021244 BLAKE2B b2f9af3e1f511135dd782f99aa552c6f20f2196eca95bd88643e4c29c03be81ce5e9fe8818c7700680cbac8c853a9f8c98cc10c517e28cecbf67db257a224019 SHA512 304f49997a8a466811b7a383a2512a47f15f0c0be878af1818698231d7bfbead8974bba31b30fdad59185c00915f45652a68b9f4b52950e81fe6dfa957906358
+DIST prometheus-2.43.0.tar.gz 6228230 BLAKE2B d004bb077c70849e7d9e0c28420582475f32d6b5541c12f3c79af02b897fd9df0847c27317cdffe7ccc4183a31e7d0d0535ce980dfe79b3a517a7a6d819645f3 SHA512 d84fcd064224c6b0a9306151ce96052bac53b5c08f6a69ced88e6424c65d1c6143e82a863ac5c9e348a7be97bc2caa38f64f521a5b050e710b474025f6e41014

diff --git a/app-metrics/prometheus/prometheus-2.43.0.ebuild b/app-metrics/prometheus/prometheus-2.43.0.ebuild
new file mode 100644
index 000000000000..db5a914685b6
--- /dev/null
+++ b/app-metrics/prometheus/prometheus-2.43.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd
+GIT_COMMIT=edfc3bcd025dd6fe296c167a14a216cab1e552ee
+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://github.com/prometheus/prometheus"
+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 ~riscv"
+
+COMMON_DEPEND="acct-group/prometheus
+	acct-user/prometheus"
+DEPEND="!app-metrics/prometheus-bin
+	${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+BDEPEND=">=dev-util/promu-0.3.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 -n "${WORKDIR}"/web/ui web || die
+}
+
+src_compile() {
+	emake PROMU="${EPREFIX}"/usr/bin/promu common-build plugins
+}
+
+src_install() {
+	dobin prometheus promtool
+	dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md}
+	insinto /usr/share/prometheus
+	doins -r console_libraries consoles
+	insinto /etc/prometheus
+	doins documentation/examples/prometheus.yml
+	dosym -r /usr/share/prometheus/console_libraries /etc/prometheus/console_libraries
+	dosym -r /usr/share/prometheus/consoles /etc/prometheus/consoles
+
+	systemd_dounit "${FILESDIR}"/prometheus.service
+	newinitd "${FILESDIR}"/prometheus.initd prometheus
+	newconfd "${FILESDIR}"/prometheus.confd prometheus
+	keepdir /var/log/prometheus /var/lib/prometheus
+	fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus
+}
+
+pkg_postinst() {
+	if has_version '<net-analyzer/prometheus-2.0.0_rc0'; then
+		ewarn "Old prometheus 1.x TSDB won't be converted to the new prometheus 2.0 format"
+		ewarn "Be aware that the old data currently cannot be accessed with prometheus 2.0"
+		ewarn "This release requires a clean storage directory and is not compatible with"
+		ewarn "files created by previous beta releases"
+	fi
+}


             reply	other threads:[~2023-03-25 18:16 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-25 18:16 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-18 22:50 [gentoo-commits] repo/gentoo:master commit in: app-metrics/prometheus/ William Hubbs
2023-12-03 23:15 Sam James
2023-09-26 21:27 William Hubbs
2023-04-30 23:50 Sam James
2023-03-27 22:01 William Hubbs
2023-03-26 23:53 William Hubbs
2023-03-26 19:46 William Hubbs
2023-03-25 18:52 William Hubbs
2023-01-17 18:55 William Hubbs
2023-01-17 17:59 William Hubbs
2022-11-29 19:53 William Hubbs
2022-11-29 19:50 William Hubbs
2022-11-29 19:50 William Hubbs
2022-11-13 22:05 William Hubbs
2022-11-13  0:28 William Hubbs
2022-11-13  0:25 William Hubbs
2022-11-12 17:06 William Hubbs
2022-10-21 16:22 William Hubbs
2022-10-21 16:19 William Hubbs
2022-10-04  3:06 Sam James
2022-09-23 16:42 William Hubbs
2022-09-23 16:29 William Hubbs
2022-09-10 18:21 William Hubbs
2022-08-21 14:57 Jakov Smolić
2022-08-11 10:55 Sam James
2022-07-23 22:37 William Hubbs
2022-07-01 16:27 William Hubbs
2022-02-18  9:19 Michał Górny
2022-02-18  3:36 Sam James
2021-11-07 20:52 Mikle Kolyada
2021-07-16 10:03 Mikle Kolyada
2021-05-19 14:06 Mikle Kolyada
2021-05-19 14:06 Mikle Kolyada
2021-05-19 12:45 Mikle Kolyada
2021-05-14  8:38 Mikle Kolyada
2021-05-14  8:38 Mikle Kolyada
2021-05-14  8:38 Mikle Kolyada
2021-05-03 21:46 William Hubbs
2021-05-03 21:45 William Hubbs
2021-05-03 21:12 Mikle Kolyada
2021-05-03 21:06 Mikle Kolyada
2021-05-03 21:06 Mikle Kolyada
2021-04-28 15:09 Mikle Kolyada
2021-04-10 12:23 Mikle Kolyada
2021-03-21 10:56 Mikle Kolyada
2021-03-14 18:37 Mikle Kolyada
2020-10-05 18:49 William Hubbs
2020-07-25  0:09 Sam James
2020-06-25  3:30 William Hubbs
2019-12-04  5:34 William Hubbs
2019-12-03  9:48 Michał Górny
2019-11-24 19:11 Manuel Rüger
2019-11-23 11:19 Manuel Rüger
2019-11-23 11:19 Manuel Rüger
2019-11-23 11:19 Manuel Rüger
2019-10-17 20:10 Manuel Rüger
2019-10-07  9:53 Manuel Rüger
2019-08-19 14:19 Manuel Rüger
2019-08-14 13:43 Manuel Rüger
2019-08-14 13:43 Manuel Rüger
2019-08-01 12:55 Manuel Rüger
2019-07-09 12:52 Manuel Rüger
2019-07-09 12:52 Manuel Rüger
2019-05-27 14:17 Manuel Rüger
2019-05-21  9:19 Manuel Rüger
2019-04-25 11:35 Manuel Rüger
2019-04-25 11:34 Manuel Rüger
2019-04-17  9:41 Manuel Rüger
2019-04-16  9:15 Manuel Rüger
2019-04-15 13:58 Manuel Rüger
2019-03-29 12:51 Manuel Rüger
2019-03-29 12:51 Manuel Rüger
2019-03-28 16:24 Manuel Rüger
2019-03-28 13:26 Manuel Rüger
2019-03-02 17:32 Manuel Rüger
2019-03-02 17:28 Manuel Rüger
2019-02-01 16:01 Manuel Rüger
2019-01-31 16:25 Manuel Rüger
2019-01-28 11:45 Manuel Rüger
2019-01-15 19:05 Manuel Rüger
2018-12-17 18:03 Manuel Rüger
2018-12-16 12:15 Manuel Rüger
2018-11-06 13:57 Manuel Rüger
2018-11-06 13:57 Manuel Rüger
2018-10-28 16:09 Manuel Rüger
2018-09-21 10:59 Tobias Klausmann
2018-09-20 22:34 Manuel Rüger
2018-09-13 11:45 Manuel Rüger
2018-07-13 10:18 Manuel Rüger
2018-07-13 10:15 Manuel Rüger
2018-06-27 11:22 Manuel Rüger
2018-06-07 12:57 Manuel Rüger
2018-03-27 13:33 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1679768198.1b3af9816cecc845ee74fb870ecb30d27ad6264a.williamh@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox