diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 00:35:46 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 00:35:46 +0200 |
commit | 66df99b168bd48aaa57cd860a372c18a8a6b8d23 (patch) | |
tree | b0f66799cdc7e30bbd5cf8f0afcb6852afe961c0 | |
parent | add package for NUT exporter (diff) |
add mikrotik exporter
-rw-r--r-- | prom-exporter-mikrotik/Makefile | 19 | ||||
-rw-r--r-- | prom-exporter-mikrotik/debian/changelog | 5 | ||||
-rw-r--r-- | prom-exporter-mikrotik/debian/compat | 1 | ||||
-rw-r--r-- | prom-exporter-mikrotik/debian/control | 12 | ||||
-rw-r--r-- | prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install | 1 | ||||
-rwxr-xr-x | prom-exporter-mikrotik/debian/rules | 12 | ||||
-rw-r--r-- | prom-exporter-mikrotik/debian/source/format | 1 | ||||
-rw-r--r-- | prom-exporter-mikrotik/sha256sums.txt | 2 |
8 files changed, 53 insertions, 0 deletions
diff --git a/prom-exporter-mikrotik/Makefile b/prom-exporter-mikrotik/Makefile new file mode 100644 index 0000000..0604247 --- /dev/null +++ b/prom-exporter-mikrotik/Makefile @@ -0,0 +1,19 @@ +VERSION := 1.0.11 +GITHUB_BASEURL := "https://github.com/nshttpd/mikrotik-exporter/releases/download" + +.PHONY: clean + +all: i386/mikrotik_exporter amd64/mikrotik_exporter + +%/mikrotik_exporter: mikrotik-exporter_linux_% + mkdir -p $(shell echo $@ | sed 's#/.*##') + cp $< $@ + +mikrotik-exporter_linux_%: + wget -nc "$(GITHUB_BASEURL)/$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf i386 + rm -rf amd64 + rm -f mikrotik-exporter_linux-* diff --git a/prom-exporter-mikrotik/debian/changelog b/prom-exporter-mikrotik/debian/changelog new file mode 100644 index 0000000..5b4ccab --- /dev/null +++ b/prom-exporter-mikrotik/debian/changelog @@ -0,0 +1,5 @@ +prom-exporter-mikrotik (1.0.11-1) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner <equinox@spreadspace.org> Wed, 30 Jul 2021 00:27:15 +0200 diff --git a/prom-exporter-mikrotik/debian/compat b/prom-exporter-mikrotik/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/prom-exporter-mikrotik/debian/compat @@ -0,0 +1 @@ +9 diff --git a/prom-exporter-mikrotik/debian/control b/prom-exporter-mikrotik/debian/control new file mode 100644 index 0000000..36aa839 --- /dev/null +++ b/prom-exporter-mikrotik/debian/control @@ -0,0 +1,12 @@ +Source: prom-exporter-mikrotik +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-mikrotik +Architecture: amd64 i386 +Depends: ${misc:Depends} +Conflicts: prometheus-mikrotik-exporter +Description: prometheus mikrotik-exporter (binary only) diff --git a/prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install b/prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install new file mode 100644 index 0000000..efdc2a2 --- /dev/null +++ b/prom-exporter-mikrotik/debian/prom-exporter-mikrotik.install @@ -0,0 +1 @@ +usr/bin/prometheus-mikrotik-exporter diff --git a/prom-exporter-mikrotik/debian/rules b/prom-exporter-mikrotik/debian/rules new file mode 100755 index 0000000..dc2a824 --- /dev/null +++ b/prom-exporter-mikrotik/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_configure: + +override_dh_auto_build: + make $(DEB_BUILD_ARCH)/mikrotik_exporter + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/mikrotik_exporter $$(pwd)/debian/tmp/usr/bin/prometheus-mikrotik-exporter diff --git a/prom-exporter-mikrotik/debian/source/format b/prom-exporter-mikrotik/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/prom-exporter-mikrotik/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/prom-exporter-mikrotik/sha256sums.txt b/prom-exporter-mikrotik/sha256sums.txt new file mode 100644 index 0000000..5228bd9 --- /dev/null +++ b/prom-exporter-mikrotik/sha256sums.txt @@ -0,0 +1,2 @@ +427da58b434de23df27d94d09d7fcc386445a89445a251418b06e593e7a4f4e1 mikrotik-exporter_linux_amd64 +721aeb302f828b09a7f3fcc0b417c5ddb1b8a6d3a5efacd7c0cfd7ec4b3a00b3 mikrotik-exporter_linux_i386 |