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.

56 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=prometheus
  3. PKG_VERSION:=2.10.0
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/prometheus/prometheus/tar.gz/v${PKG_VERSION}?
  7. PKG_HASH:=0362f4aa2fb44cc2c572df140da742bdf99fe9f338157a83f6634694fd693000
  8. PKG_LICENSE:=Apache-2.0
  9. PKG_LICENSE_FILES:=LICENSE
  10. PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/prometheus/prometheus/
  15. GO_PKG_BUILD_PKG:=github.com/prometheus/prometheus/cmd/prometheus/
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/prometheus/Default
  19. TITLE:=Monitoring system & time series database
  20. USERID:=prometheus=112:prometheus=112
  21. URL:=http://prometheus.io
  22. DEPENDS:=$(GO_ARCH_DEPENDS)
  23. endef
  24. define Package/prometheus
  25. $(call Package/prometheus/Default)
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. endef
  29. define Package/prometheus/description
  30. Prometheus, a Cloud Native Computing Foundation project, is a systems and
  31. service monitoring system. It collects metrics from configured targets at given
  32. intervals, evaluates rule expressions, displays the results, and can trigger
  33. alerts if some condition is observed to be true.
  34. endef
  35. define Package/prometheus/install
  36. $(call GoPackage/Package/Install/Bin,$(1))
  37. $(CP) ./files/* $(1)/
  38. endef
  39. define Package/prometheus/conffiles
  40. /etc/prometheus.yml
  41. endef
  42. $(eval $(call GoBinPackage,prometheus))
  43. $(eval $(call BuildPackage,prometheus))