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.6.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:=7839491f6e8b297cc8c28ca96845ff087f7961a12b92aa0eea1f66528da8bdaf
  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/images/seo-*.png
  42. rm -rf $(1)/usr/share/netdata/web/images/post.png
  43. rm -rf $(1)/usr/share/netdata/web/old
  44. rm $(1)/usr/share/netdata/web/demo*html
  45. rm $(1)/usr/share/netdata/web/fonts/*.svg
  46. rm $(1)/usr/share/netdata/web/fonts/*.ttf
  47. rm $(1)/usr/share/netdata/web/fonts/*.woff
  48. rm $(1)/usr/share/netdata/web/fonts/*.otf
  49. mkdir -p $(1)/usr/lib/netdata
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
  51. rm $(1)/usr/lib/netdata/python.d/python-modules-installer.sh
  52. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml2
  53. rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml3
  54. chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
  55. mkdir -p $(1)/etc/init.d
  56. $(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
  57. mkdir -p $(1)/usr/sbin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin
  59. endef
  60. $(eval $(call BuildPackage,netdata))