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.

50 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=prometheus-statsd-exporter
  3. PKG_VERSION:=0.15.0
  4. PKG_RELEASE:=2
  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:=4bd4df20898b25f9c315060b3f80cf375f5fb0d0bb2705440e1b9f0932055c8d
  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/config/prometheus-statsd-exporter
  35. /etc/prometheus-statsd-exporter.yml
  36. endef
  37. $(eval $(call GoBinPackage,prometheus-statsd-exporter))
  38. $(eval $(call BuildPackage,prometheus-statsd-exporter))