summaryrefslogtreecommitdiff
path: root/prom-exporter-smokeping/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-06 16:50:48 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-06 16:50:48 +0100
commit3e4942f5d23a3329558f8c1b9dd501f89063d327 (patch)
treefbffcec58e99a15b527439cbed6b581aa8706491 /prom-exporter-smokeping/Makefile
parentadd package for snmp exporter (diff)
add package for prometheus smokeping prober
Diffstat (limited to 'prom-exporter-smokeping/Makefile')
-rw-r--r--prom-exporter-smokeping/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/prom-exporter-smokeping/Makefile b/prom-exporter-smokeping/Makefile
new file mode 100644
index 0000000..84d8887
--- /dev/null
+++ b/prom-exporter-smokeping/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/SuperQ/smokeping_prober/releases/download"
+
+.PHONY: clean
+
+all: i386/smokeping_prober amd64/smokeping_prober
+
+%/smokeping_prober: smokeping_prober-$(VERSION).linux-%.tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
+
+smokeping_prober-$(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 smokeping_prober-$(VERSION).linux-*.tar.gz