|
#
|
|
# Copyright (C) 2008-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=netdata
|
|
PKG_VERSION:=1.7.0
|
|
PKG_RELEASE:=1
|
|
PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
|
|
PKG_LICENSE:=GPL-3.0
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://github.com/firehol/netdata/releases/download/v$(PKG_VERSION)
|
|
PKG_HASH:=7fa23ceaccf6548fba165cd4839ce694784b2fcf7f90de0a0162b9c529805fc0
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/netdata
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
DEPENDS:=+zlib +libuuid
|
|
TITLE:=Real-time performance monitoring tool
|
|
URL:=https://my-netdata.io/
|
|
endef
|
|
|
|
define Package/netdata/description
|
|
netdata is a highly optimized Linux daemon providing real-time performance
|
|
monitoring for Linux systems, applications and SNMP devices over the web.
|
|
endef
|
|
|
|
CONFIGURE_ARGS += --with-zlib --with-math --disable-x86-sse --disable-lto
|
|
|
|
define Package/netdata/conffiles
|
|
/etc/netdata/
|
|
endef
|
|
|
|
define Package/netdata/install
|
|
mkdir -p $(1)/etc/netdata
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
|
|
$(CP) ./files/netdata.conf $(1)/etc/netdata
|
|
mkdir -p $(1)/usr/share/netdata
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
|
|
rm -rf $(1)/usr/share/netdata/web/images
|
|
rm -rf $(1)/usr/share/netdata/web/old
|
|
rm $(1)/usr/share/netdata/web/demo*html
|
|
rm $(1)/usr/share/netdata/web/fonts/*.svg
|
|
rm $(1)/usr/share/netdata/web/fonts/*.ttf
|
|
rm $(1)/usr/share/netdata/web/fonts/*.woff
|
|
rm $(1)/usr/share/netdata/web/fonts/*.otf
|
|
mkdir -p $(1)/usr/lib/netdata
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
|
|
rm $(1)/usr/lib/netdata/python.d/python-modules-installer.sh
|
|
rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml2
|
|
rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml3
|
|
chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
|
|
mkdir -p $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
|
|
mkdir -p $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,netdata))
|