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.

68 lines
2.1 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.4.0
  10. PKG_RELEASE:=2
  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:=http://firehol.org/download/netdata/releases/v$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=3028b87ee19e8550df6b9decc49733d595e0bd6e
  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:=http://netdata.firehol.org/
  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. define Package/netdata/conffiles
  32. /etc/netdata/
  33. endef
  34. define Package/netdata/install
  35. mkdir -p $(1)/etc/netdata
  36. $(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
  37. $(CP) ./files/netdata.conf $(1)/etc/netdata
  38. mkdir -p $(1)/usr/share/netdata
  39. $(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
  40. rm $(1)/usr/share/netdata/web/images/animated.gif
  41. rm -rf $(1)/usr/share/netdata/web/old
  42. rm $(1)/usr/share/netdata/web/demo*html
  43. rm $(1)/usr/share/netdata/web/fonts/*.svg
  44. rm $(1)/usr/share/netdata/web/fonts/*.ttf
  45. rm $(1)/usr/share/netdata/web/fonts/*.woff
  46. rm $(1)/usr/share/netdata/web/fonts/*.otf
  47. mkdir -p $(1)/usr/lib/netdata
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
  49. rm $(1)/usr/lib/netdata/python.d/python-modules-installer.sh
  50. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml2
  51. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml3
  52. chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
  53. mkdir -p $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
  55. mkdir -p $(1)/usr/sbin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin
  57. endef
  58. $(eval $(call BuildPackage,netdata))