blob: d264fa860fc562cdd572a6193cc1f3a9d9dff9c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2024 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}
}
|