commit:     6f436ba2c40c05cc464a55dedbf455f60af7a51c
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Thu Mar  5 16:49:14 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar  5 21:28:39 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f436ba2

app-metrics/chrony_exporter: add 0.13.3

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

 .../chrony_exporter/chrony_exporter-0.13.3.ebuild  | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.13.3.ebuild 
b/app-metrics/chrony_exporter/chrony_exporter-0.13.3.ebuild
new file mode 100644
index 000000000000..f8e36521380b
--- /dev/null
+++ b/app-metrics/chrony_exporter/chrony_exporter-0.13.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2026 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/chrony_exporter/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz
+       
https://github.com/gentoo-golang-dist/chrony_exporter/releases/download/v${PV}/${P}-vendor.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}
+}

Reply via email to