diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-12-17 23:33:59 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-12-17 23:33:59 +0100 |
commit | c102a213d6b43d57653703093f431ab8bcbb8cea (patch) | |
tree | 0c707d2beabde331c9a4e9ec806faff76f9cc3cc /prom-exporter-mosquitto/Makefile | |
parent | update prom-server package (diff) |
add mosuqitto-exporter
Diffstat (limited to 'prom-exporter-mosquitto/Makefile')
-rw-r--r-- | prom-exporter-mosquitto/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/prom-exporter-mosquitto/Makefile b/prom-exporter-mosquitto/Makefile new file mode 100644 index 0000000..132eeb7 --- /dev/null +++ b/prom-exporter-mosquitto/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/jryberg/mosquitto-exporter/releases/download" + +.PHONY: clean + +all: amd64/mosquitto-exporter arm64/mosquitto-exporter + +%/mosquitto-exporter: mosquitto-exporter_$(VERSION)_linux_%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +mosquitto-exporter_$(VERSION)_linux_%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$@" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -rf arm64 + rm -f mosquitto_exporter-$(VERSION).linux-*.tar.gz |