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.

70 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=netdata
  9. PKG_VERSION:=1.7.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
  12. PKG_LICENSE:=GPL-3.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_SOURCE_URL:=https://github.com/firehol/netdata/releases/download/v$(PKG_VERSION)
  16. PKG_HASH:=7fa23ceaccf6548fba165cd4839ce694784b2fcf7f90de0a0162b9c529805fc0
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/netdata
  21. SECTION:=admin
  22. CATEGORY:=Administration
  23. DEPENDS:=+zlib +libuuid
  24. TITLE:=Real-time performance monitoring tool
  25. URL:=https://my-netdata.io/
  26. endef
  27. define Package/netdata/description
  28. netdata is a highly optimized Linux daemon providing real-time performance
  29. monitoring for Linux systems, applications and SNMP devices over the web.
  30. endef
  31. CONFIGURE_ARGS += --with-zlib --with-math --disable-x86-sse --disable-lto
  32. define Package/netdata/conffiles
  33. /etc/netdata/
  34. endef
  35. define Package/netdata/install
  36. mkdir -p $(1)/etc/netdata
  37. $(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
  38. $(CP) ./files/netdata.conf $(1)/etc/netdata
  39. mkdir -p $(1)/usr/share/netdata
  40. $(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
  41. rm -rf $(1)/usr/share/netdata/web/images
  42. rm -rf $(1)/usr/share/netdata/web/old
  43. rm $(1)/usr/share/netdata/web/demo*html
  44. rm $(1)/usr/share/netdata/web/fonts/*.svg
  45. rm $(1)/usr/share/netdata/web/fonts/*.ttf
  46. rm $(1)/usr/share/netdata/web/fonts/*.woff
  47. rm $(1)/usr/share/netdata/web/fonts/*.otf
  48. mkdir -p $(1)/usr/lib/netdata
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
  50. rm $(1)/usr/lib/netdata/python.d/python-modules-installer.sh
  51. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml2
  52. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml3
  53. chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
  54. mkdir -p $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
  56. mkdir -p $(1)/usr/sbin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin
  58. endef
  59. $(eval $(call BuildPackage,netdata))