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.

61 lines
1.8 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:=20160508-devel
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Sebastian Careba <nitroshift@yahoo.com>
  12. PKG_LICENSE:=GPL-3.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL=https://github.com/firehol/netdata
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=0ec2db444011f5b6ebf41dab45502c27cd544af2
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_INSTALL:=1
  20. PKG_FIXUP:=autoreconf
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/netdata
  23. SECTION:=admin
  24. CATEGORY:=Administration
  25. DEPENDS:=+zlib
  26. TITLE:=Real-time performance monitoring tool
  27. URL:=http://netdata.firehol.org/
  28. endef
  29. define Package/netdata/description
  30. netdata is a highly optimized Linux daemon providing real-time performance
  31. monitoring for Linux systems, applications and SNMP devices over the web.
  32. endef
  33. define Package/netdata/conffiles
  34. /etc/netdata/
  35. endef
  36. define Package/netdata/install
  37. $(INSTALL_DIR) $(1)/etc/netdata
  38. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/netdata/apps_groups.conf $(1)/etc/netdata
  39. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/netdata/charts.d.conf $(1)/etc/netdata
  40. $(INSTALL_CONF) ./files/netdata.conf $(1)/etc/netdata
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin/
  45. $(INSTALL_DIR) $(1)/usr/share/netdata
  46. $(INSTALL_DIR) $(1)/usr/lib/netdata
  47. $(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
  49. chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
  50. endef
  51. $(eval $(call BuildPackage,netdata))