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.

49 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=prometheus-statsd-exporter
  3. PKG_VERSION:=0.8.1
  4. PKG_RELEASE:=3
  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_MAINTAINER:=Andre Heider <a.heider@gmail.com>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_BUILD_DEPENDS:=golang/host
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_USE_MIPS16:=0
  15. GO_PKG:=github.com/prometheus/statsd_exporter
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/prometheus-statsd-exporter
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=StatsD to Prometheus metrics exporter
  22. URL:=http://prometheus.io
  23. DEPENDS:=$(GO_ARCH_DEPENDS)
  24. endef
  25. define Package/prometheus-statsd-exporter/description
  26. statsd_exporter receives StatsD-style metrics and exports them as Prometheus
  27. metrics.
  28. endef
  29. define Package/prometheus-statsd-exporter/install
  30. $(call GoPackage/Package/Install/Bin,$(1))
  31. $(CP) ./files/* $(1)/
  32. endef
  33. define Package/prometheus-statsd-exporter/conffiles
  34. /etc/prometheus-statsd-exporter.yml
  35. endef
  36. $(eval $(call GoBinPackage,prometheus-statsd-exporter))
  37. $(eval $(call BuildPackage,prometheus-statsd-exporter))