From a52ae733a2140b1935c4ed519d590c43d63d1d94 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 10 Nov 2022 18:09:59 +0100 Subject: add bind-exporter --- prom-exporter-bind/Makefile | 19 +++++++++++++++++++ prom-exporter-bind/debian/changelog | 5 +++++ prom-exporter-bind/debian/compat | 1 + prom-exporter-bind/debian/control | 12 ++++++++++++ prom-exporter-bind/debian/install | 1 + prom-exporter-bind/debian/rules | 16 ++++++++++++++++ prom-exporter-bind/debian/source/format | 1 + prom-exporter-bind/sha256sums.txt | 2 ++ 8 files changed, 57 insertions(+) create mode 100644 prom-exporter-bind/Makefile create mode 100644 prom-exporter-bind/debian/changelog create mode 100644 prom-exporter-bind/debian/compat create mode 100644 prom-exporter-bind/debian/control create mode 100644 prom-exporter-bind/debian/install create mode 100755 prom-exporter-bind/debian/rules create mode 100644 prom-exporter-bind/debian/source/format create mode 100644 prom-exporter-bind/sha256sums.txt diff --git a/prom-exporter-bind/Makefile b/prom-exporter-bind/Makefile new file mode 100644 index 0000000..98ed9db --- /dev/null +++ b/prom-exporter-bind/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/prometheus-community/bind_exporter/releases/download" + +.PHONY: clean + +all: i386/bind_exporter amd64/bind_exporter + +%/bind_exporter: bind_exporter-$(VERSION).linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 + +bind_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 -f bind_exporter-$(VERSION).linux-*.tar.gz diff --git a/prom-exporter-bind/debian/changelog b/prom-exporter-bind/debian/changelog new file mode 100644 index 0000000..04800ae --- /dev/null +++ b/prom-exporter-bind/debian/changelog @@ -0,0 +1,5 @@ +prom-exporter-bind (0.5.0-1) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner Wed, 10 Nov 2022 17:55:42 +0100 diff --git a/prom-exporter-bind/debian/compat b/prom-exporter-bind/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/prom-exporter-bind/debian/compat @@ -0,0 +1 @@ +9 diff --git a/prom-exporter-bind/debian/control b/prom-exporter-bind/debian/control new file mode 100644 index 0000000..72ac240 --- /dev/null +++ b/prom-exporter-bind/debian/control @@ -0,0 +1,12 @@ +Source: prom-exporter-bind +Maintainer: Christian Pointner +Section: utils +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 9), wget, ca-certificates + +Package: prom-exporter-bind +Architecture: amd64 i386 +Depends: ${misc:Depends} +Conflicts: prometheus-bind-exporter +Description: prometheus bind-exporter (binary only) diff --git a/prom-exporter-bind/debian/install b/prom-exporter-bind/debian/install new file mode 100644 index 0000000..ba73e3c --- /dev/null +++ b/prom-exporter-bind/debian/install @@ -0,0 +1 @@ +usr/bin/prometheus-bind-exporter diff --git a/prom-exporter-bind/debian/rules b/prom-exporter-bind/debian/rules new file mode 100755 index 0000000..189f74f --- /dev/null +++ b/prom-exporter-bind/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)/bind_exporter + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/bind_exporter $$(pwd)/debian/tmp/usr/bin/prometheus-bind-exporter + +override_dh_auto_clean: + make VERSION=$(DEB_VERSION_UPSTREAM) clean diff --git a/prom-exporter-bind/debian/source/format b/prom-exporter-bind/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/prom-exporter-bind/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/prom-exporter-bind/sha256sums.txt b/prom-exporter-bind/sha256sums.txt new file mode 100644 index 0000000..18c0294 --- /dev/null +++ b/prom-exporter-bind/sha256sums.txt @@ -0,0 +1,2 @@ +3312ff75e72b93ad97c63b6a68aaa7d950c19cf0d5a12c9f0566ce92fd4ce8b8 bind_exporter-0.5.0.linux-i386.tar.gz +c1279ada69396b52f75be4b7233f6310c26785951326485402072bb3e3a94a5b bind_exporter-0.5.0.linux-amd64.tar.gz -- cgit v1.2.3