You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

eole-haproxy-exporter.mk 681B

123456789101112
  1. upstart_DATA_DIR := $(DESTDIR)/etc/init
  2. HAPROXY_EXPORTER_VERSION := 0.10.0
  3. download-exporter:
  4. mkdir -p tmp
  5. cd tmp && wget https://github.com/prometheus/haproxy_exporter/releases/download/v$(HAPROXY_EXPORTER_VERSION)/haproxy_exporter-$(HAPROXY_EXPORTER_VERSION).linux-amd64.tar.gz
  6. cd tmp && wget https://github.com/prometheus/haproxy_exporter/releases/download/v$(HAPROXY_EXPORTER_VERSION)/sha256sums.txt
  7. cd tmp && sha256sum -c --ignore-missing sha256sums.txt
  8. cd tmp && tar -xzf haproxy_exporter-$(HAPROXY_EXPORTER_VERSION).linux-amd64.tar.gz
  9. mkdir -p bin
  10. cp -f tmp/haproxy_exporter-$(HAPROXY_EXPORTER_VERSION).linux-amd64/haproxy_exporter ./bin/haproxy_exporter
  11. rm -rf tmp