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.

48 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=prometheus-statsd-exporter
  3. PKG_VERSION:=0.8.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=statsd_exporter-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/prometheus/statsd_exporter/tar.gz/v${PKG_VERSION}?
  7. PKG_HASH:=d69af3ccdc393ec2d3007dd9d039d4f0f0a6dd9df55fb7cd3fd0304607324d51
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/statsd_exporter-$(PKG_VERSION)
  9. PKG_LICENSE:=Apache-2.0
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/prometheus/statsd_exporter
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../lang/golang/golang-package.mk
  17. define Package/prometheus-statsd-exporter
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=StatsD to Prometheus metrics exporter
  21. URL:=http://prometheus.io
  22. DEPENDS:=$(GO_ARCH_DEPENDS)
  23. endef
  24. define Package/prometheus-statsd-exporter/description
  25. statsd_exporter receives StatsD-style metrics and exports them as Prometheus
  26. metrics.
  27. endef
  28. define Package/prometheus-statsd-exporter/install
  29. $(call GoPackage/Package/Install/Bin,$(1))
  30. $(CP) ./files/* $(1)/
  31. endef
  32. define Package/prometheus-statsd-exporter/conffiles
  33. /etc/prometheus-statsd-exporter.yml
  34. endef
  35. $(eval $(call GoBinPackage,prometheus-statsd-exporter))
  36. $(eval $(call BuildPackage,prometheus-statsd-exporter))