public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-metrics/chrony_exporter/, app-metrics/chrony_exporter/files/
@ 2025-06-22  9:47 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-06-22  9:47 UTC (permalink / raw
  To: gentoo-commits

commit:     b8045b7015db5d754b3aaa39e96ebbe124f8fd0f
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed Jun  4 08:55:13 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 22 09:45:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8045b70

app-metrics/chrony_exporter: add 0.12.1

Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/42437
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-metrics/chrony_exporter/Manifest               |  2 ++
 .../chrony_exporter/chrony_exporter-0.12.1.ebuild  | 39 ++++++++++++++++++++++
 .../chrony_exporter/files/0.12.1-binary-name.patch | 15 +++++++++
 3 files changed, 56 insertions(+)

diff --git a/app-metrics/chrony_exporter/Manifest b/app-metrics/chrony_exporter/Manifest
index ac3d3535bce1..9935c988ded4 100644
--- a/app-metrics/chrony_exporter/Manifest
+++ b/app-metrics/chrony_exporter/Manifest
@@ -2,3 +2,5 @@ DIST chrony_exporter-0.11.0-deps.tar.xz 41116280 BLAKE2B 03b6ae2be5d4f40b1676bba
 DIST chrony_exporter-0.11.0.tar.gz 22601 BLAKE2B 9c050f55c6a88f2da37269609d885a15436618368141e75301ddbb477b13bd625089f8315ba020595222afb6e18d5812bfd394ac2413c85c9ce9e9dc13cca689 SHA512 d531d285fa1ff86d2d3036c2efe93f9cf6cd22b55024a91228f25260d6fe6fdb25c4d5af51c83e799721a51b7c742205436b4dc2eeb2ed9cff965f85a264aa1b
 DIST chrony_exporter-0.12.0-deps.tar.xz 41668288 BLAKE2B 2859b3cf8e0e724f60d5c908c1e2f96b4df8a371f5ca3aafe5ce3340b667376af47a8cf0dbc0a3f29ce671fbab0a580b59cd96e074d6fd3b368b7b1e8e0f40d2 SHA512 0efd311bd46613561a5faef163f780a2a29da02717dacfa3a6a6308c0dc52106b87dcc1398cf84c09ffd995f0e216b03be62d9748c88a0432b64da0188aba6f0
 DIST chrony_exporter-0.12.0.tar.gz 23036 BLAKE2B 9a0610e5f814644551ec5166f7fd471c50a3838c78c00e840f24b6811cab8b2ae00a6f993254c931d9dd4d1243ae8074d7343f0180d5ef8c288998ddb05e6441 SHA512 8ef168f876cb6a1f7bb9a32374c330cc90694c7fe058f94dab6f9e7a687db5c1cc7cf2974897c020874769a964d78398dd88880b503573a9bd5cad2987383673
+DIST chrony_exporter-0.12.1-deps.tar.xz 9414928 BLAKE2B 926a60f152c8978cff88628f2ad3c26d3ec3408c37305df9f5581e02786d716124b4017a79cf2f00f8553eff2c1829265b65bc731ecb587cc80a9bb9a0a8edca SHA512 064f769c99aaeadf581065728713363c7d2113ef8c34eb43aec68d3984e806bd99c1218969f78d510911f56e765c521176c02e97ce4fef568add95f9f09928de
+DIST chrony_exporter-0.12.1.tar.gz 23232 BLAKE2B 9143604da8a825b313716b06c85d6a5ad9cef4142117ffd3fde210196fd7ed41f76dcef56cc403a7577a2ddc0921a46316ac4f7b10c47e9379e1da8e75d8d5a9 SHA512 302a6aa48a46737c20b99244be2e4e156a0dd63a58cbb2d99ef723576b5c0f186f43ecd14129c6b9d3d7f72d81e84b5653837de7d856865c6a3209d5ab8eb69e

diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.12.1.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.12.1.ebuild
new file mode 100644
index 000000000000..f00c1f64b246
--- /dev/null
+++ b/app-metrics/chrony_exporter/chrony_exporter-0.12.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Chrony NTP exporter for Prometheus"
+HOMEPAGE="https://github.com/SuperQ/chrony_exporter"
+
+SRC_URI="https://github.com/SuperQ/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+	https://www.applied-asynchrony.com/distfiles/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="acct-group/chrony_exporter
+		acct-user/chrony_exporter"
+
+BDEPEND="dev-util/promu"
+
+PATCHES=( "${FILESDIR}/0.12.1-binary-name.patch" )
+
+src_prepare() {
+	default
+	# No need to enable the race detector for tests (#935442)
+	sed -i -e '/test-flags := -race/d' Makefile.common || die
+}
+
+src_compile() {
+	promu build -v --cgo || die
+}
+
+src_install() {
+	dobin ${PN}
+	newinitd "${FILESDIR}"/${PN}.initd ${PN}
+	newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}

diff --git a/app-metrics/chrony_exporter/files/0.12.1-binary-name.patch b/app-metrics/chrony_exporter/files/0.12.1-binary-name.patch
new file mode 100644
index 000000000000..a3e04f8cfea3
--- /dev/null
+++ b/app-metrics/chrony_exporter/files/0.12.1-binary-name.patch
@@ -0,0 +1,15 @@
+
+Properly set the binary name in the promu config instead of doing
+renaming acrobatics in the ebuild.
+
+--- a/.promu.yml
++++ b/.promu.yml
+@@ -5,6 +5,8 @@ go:
+ repository:
+   path: github.com/superq/chrony_exporter
+ build:
++  binaries:
++    - name: chrony_exporter
+   ldflags: |
+     -X github.com/prometheus/common/version.Version={{.Version}}
+     -X github.com/prometheus/common/version.Revision={{.Revision}}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-06-22  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22  9:47 [gentoo-commits] repo/gentoo:master commit in: app-metrics/chrony_exporter/, app-metrics/chrony_exporter/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox