diff --git a/srcpkgs/chrony_exporter/files/chrony_exporter/run b/srcpkgs/chrony_exporter/files/chrony_exporter/run new file mode 100755 index 00000000000000..cf4b78747d7f0c --- /dev/null +++ b/srcpkgs/chrony_exporter/files/chrony_exporter/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +[ -r conf ] && . ./conf +exec chpst -u chrony chrony_exporter ${OPTS} diff --git a/srcpkgs/chrony_exporter/template b/srcpkgs/chrony_exporter/template new file mode 100644 index 00000000000000..13fbb2264cbc97 --- /dev/null +++ b/srcpkgs/chrony_exporter/template @@ -0,0 +1,17 @@ +# Template file for 'chrony_exporter' +pkgname=chrony_exporter +version=0.7.0 +revision=1 +build_style=go +go_import_path="github.com/superq/chrony_exporter" +depends="chrony" +short_desc="Prometheus exporter for Chrony NTP" +maintainer="Leah Neukirchen " +license="Apache-2.0" +homepage="https://github.com/SuperQ/chrony_exporter" +distfiles="https://github.com/SuperQ/chrony_exporter/archive/refs/tags/v${version}.tar.gz" +checksum=32f254dc794b505ec6b2f5a4f9d67ca3d80a0ce17280a00b96f3849ab8054cec + +post_install() { + vsv chrony_exporter +}