From 9bae988f3c0b67a13e1afb045413b26d88177dfc Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 25 Dec 2023 16:56:06 +0100 Subject: [PATCH] New package: chrony_exporter-0.7.0 --- .../chrony_exporter/files/chrony_exporter/run | 4 ++++ srcpkgs/chrony_exporter/template | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 srcpkgs/chrony_exporter/files/chrony_exporter/run create mode 100644 srcpkgs/chrony_exporter/template diff --git a/srcpkgs/chrony_exporter/files/chrony_exporter/run b/srcpkgs/chrony_exporter/files/chrony_exporter/run new file mode 100755 index 00000000000..cf4b78747d7 --- /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 00000000000..13fbb2264cb --- /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 +}