app-metrics/chrony_exporter: add 0.12.0

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-03-03 10:51:05 +01:00
committed by Sam James
parent b586b18bf1
commit 71a030d8b5
2 changed files with 39 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST chrony_exporter-0.10.1-deps.tar.xz 8939432 BLAKE2B 91fa640e67ab1b158992808d
DIST chrony_exporter-0.10.1.tar.gz 21438 BLAKE2B 9be912ab6569de2a5e6e39055ba54cc619d8a7c29d0043abda97af13ded6ee7766c97d97cc12cfc3404c4adbb1c779e444a9b3f18bf5ca615ba33f8cd62c70b9 SHA512 4e8f321b38605bad448d453e5754c6fe10518fe35ee063552a6dad6c01fbcc2156b1eb40873ba157a324fffc899acdaa8fb33b5464bdfe2c2b620c7849224c2a
DIST chrony_exporter-0.11.0-deps.tar.xz 41116280 BLAKE2B 03b6ae2be5d4f40b1676bba081c09aac244e77490ae3f1448e7731b110140ae429c5d3221f06935b8d85c75ef2c730938ce1b90e61e91257c1ce47bf548dff99 SHA512 ffab08b45eac42677c59b6b1fdfcbaea1571cfa73ddabebd52b7c5e1080d81f38e049b3983a54bd92c5eb45eff6759d40513c5e71f5c7ab53a60d0986fdedcfd
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

View File

@@ -0,0 +1,37 @@
# 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"
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 --prefix bin || die
}
src_install() {
newbin bin/${P} ${PN}
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}