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.

71 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.8.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:=1624a3b02f07dc8881b8edd5899049d4d3d53e485424ffb2fb65a322e2ff82c3
  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. TARGET_CFLAGS += -ffunction-sections -fdata-sections
  32. TARGET_LDFLAGS += -Wl,--gc-sections
  33. CONFIGURE_ARGS += --with-zlib --with-math --disable-x86-sse --disable-lto
  34. define Package/netdata/conffiles
  35. /etc/netdata/
  36. endef
  37. define Package/netdata/install
  38. mkdir -p $(1)/etc/netdata
  39. $(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
  40. $(CP) ./files/netdata.conf $(1)/etc/netdata
  41. mkdir -p $(1)/usr/share/netdata
  42. $(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
  43. rm -rf $(1)/usr/share/netdata/web/images
  44. rm -rf $(1)/usr/share/netdata/web/old
  45. rm $(1)/usr/share/netdata/web/demo*html
  46. rm $(1)/usr/share/netdata/web/fonts/*.svg
  47. rm $(1)/usr/share/netdata/web/fonts/*.ttf
  48. rm $(1)/usr/share/netdata/web/fonts/*.woff
  49. rm $(1)/usr/share/netdata/web/fonts/*.otf
  50. mkdir -p $(1)/usr/lib/netdata
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
  52. rm $(1)/usr/lib/netdata/python.d/python-modules-installer.sh
  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))