diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-08-24 21:41:02 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-08-24 21:41:02 +0200 |
commit | c2770b6d8f6e0e306f320cad9540af7a5b04c858 (patch) | |
tree | 5eba74b3cda743ef30a6dab54cd6e818cb288a15 /prom-exporter-nftables/Makefile | |
parent | upgrade chrony exporter (diff) |
add nftables exporter
Diffstat (limited to 'prom-exporter-nftables/Makefile')
-rw-r--r-- | prom-exporter-nftables/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/prom-exporter-nftables/Makefile b/prom-exporter-nftables/Makefile new file mode 100644 index 0000000..35a70f7 --- /dev/null +++ b/prom-exporter-nftables/Makefile @@ -0,0 +1,18 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/metal-stack/nftables-exporter/releases/download" + +.PHONY: clean + +all: amd64/nftables-exporter + +amd64/nftables-exporter: nftables-exporter-v$(VERSION) + mkdir -p $(shell echo $@ | sed 's#/.*##') + cp $< $@ + +nftables-exporter-v$(VERSION): + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/nftables-exporter" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -f nftables-exporter-v$(VERSION) |