diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-05-26 17:36:27 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-05-26 17:36:27 +0200 |
commit | 7b5f3b9030675b7bf16aa720062682698d5450fc (patch) | |
tree | e7acef5dc388d486d47e7a86880cd8fc38e1d0bf | |
parent | update all packages to latetst release (diff) |
add package for chrony_exporter
-rw-r--r-- | prom-exporter-chrony/Makefile | 20 | ||||
-rw-r--r-- | prom-exporter-chrony/debian/changelog | 5 | ||||
-rw-r--r-- | prom-exporter-chrony/debian/compat | 1 | ||||
-rw-r--r-- | prom-exporter-chrony/debian/control | 12 | ||||
-rw-r--r-- | prom-exporter-chrony/debian/install | 1 | ||||
-rwxr-xr-x | prom-exporter-chrony/debian/rules | 16 | ||||
-rw-r--r-- | prom-exporter-chrony/debian/source/format | 1 | ||||
-rw-r--r-- | prom-exporter-chrony/sha256sums.txt | 3 |
8 files changed, 59 insertions, 0 deletions
diff --git a/prom-exporter-chrony/Makefile b/prom-exporter-chrony/Makefile new file mode 100644 index 0000000..de7ad72 --- /dev/null +++ b/prom-exporter-chrony/Makefile @@ -0,0 +1,20 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/SuperQ/chrony_exporter/releases/download" + +.PHONY: clean + +all: i386/chrony_exporter amd64/chrony_exporter arm64/chrony_exporter + +%/chrony_exporter: chrony_exporter-$(VERSION).linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 + +chrony_exporter-$(VERSION).linux-%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf i386 + rm -rf amd64 + rm -rf arm64 + rm -f chrony_exporter-$(VERSION).linux-*.tar.gz diff --git a/prom-exporter-chrony/debian/changelog b/prom-exporter-chrony/debian/changelog new file mode 100644 index 0000000..99697b6 --- /dev/null +++ b/prom-exporter-chrony/debian/changelog @@ -0,0 +1,5 @@ +prom-exporter-chrony (0.5.0-1) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner <equinox@spreadspace.org> Wed, 26 May 2023 17:31:12 +0200 diff --git a/prom-exporter-chrony/debian/compat b/prom-exporter-chrony/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/prom-exporter-chrony/debian/compat @@ -0,0 +1 @@ +9 diff --git a/prom-exporter-chrony/debian/control b/prom-exporter-chrony/debian/control new file mode 100644 index 0000000..e34fc74 --- /dev/null +++ b/prom-exporter-chrony/debian/control @@ -0,0 +1,12 @@ +Source: prom-exporter-chrony +Maintainer: Christian Pointner <equinox@spreadspace.org> +Section: utils +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 9), wget, ca-certificates + +Package: prom-exporter-chrony +Architecture: amd64 i386 arm64 +Depends: ${misc:Depends} +Conflicts: prometheus-chrony-exporter +Description: prometheus chrony-exporter (binary only) diff --git a/prom-exporter-chrony/debian/install b/prom-exporter-chrony/debian/install new file mode 100644 index 0000000..3af4f23 --- /dev/null +++ b/prom-exporter-chrony/debian/install @@ -0,0 +1 @@ +usr/bin/prometheus-chrony-exporter diff --git a/prom-exporter-chrony/debian/rules b/prom-exporter-chrony/debian/rules new file mode 100755 index 0000000..7d7b931 --- /dev/null +++ b/prom-exporter-chrony/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk +%: + dh $@ + +override_dh_auto_configure: + +override_dh_auto_build: + make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/chrony_exporter + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/chrony_exporter $$(pwd)/debian/tmp/usr/bin/prometheus-chrony-exporter + +override_dh_auto_clean: + make VERSION=$(DEB_VERSION_UPSTREAM) clean diff --git a/prom-exporter-chrony/debian/source/format b/prom-exporter-chrony/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/prom-exporter-chrony/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/prom-exporter-chrony/sha256sums.txt b/prom-exporter-chrony/sha256sums.txt new file mode 100644 index 0000000..f8b9cb5 --- /dev/null +++ b/prom-exporter-chrony/sha256sums.txt @@ -0,0 +1,3 @@ +188b17d15e7794236606f102d3273e1bbd69c1baa7f5644971990f55d1b568da chrony_exporter-0.5.0.linux-i386.tar.gz +4ed99ba16b75eb1529215f1b3515452651ea58c218d25f681c7f21e1d88ccc86 chrony_exporter-0.5.0.linux-amd64.tar.gz +3e3bfed804ddfbef06be1abb2b39dc0cd863c7fc60f0b9cbb01500341b4b8026 chrony_exporter-0.5.0.linux-arm64.tar.gz |