diff options
author | Holger Hoffstätte <holger@applied-asynchrony.com> | 2024-06-27 15:05:42 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-07-04 02:21:33 +0100 |
commit | 0d5a31ce556742d39617ee80c79507e3e131468c (patch) | |
tree | e453cb49c69b042985278b4d1c06a5fc00407117 /app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild | |
parent | acct-user/chrony_exporter: new package (diff) | |
download | gentoo-0d5a31ce556742d39617ee80c79507e3e131468c.tar.gz gentoo-0d5a31ce556742d39617ee80c79507e3e131468c.tar.bz2 gentoo-0d5a31ce556742d39617ee80c79507e3e131468c.zip |
app-metrics/chrony_exporter: new package, add 0.10.1
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/37321
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild')
-rw-r--r-- | app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild new file mode 100644 index 000000000000..b24bc02e2e57 --- /dev/null +++ b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild @@ -0,0 +1,31 @@ +# 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_compile() { + promu build -v --cgo --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |