2016-05-12 08:43:49 +00:00
|
|
|
#
|
|
|
|
# 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
|
2019-12-18 21:05:33 +00:00
|
|
|
PKG_VERSION:=1.19.0
|
2019-09-26 16:41:37 +00:00
|
|
|
PKG_RELEASE:=1
|
2019-04-26 15:36:23 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>, Daniel Engberg <daniel.engberg.lists@pyret.net>
|
2019-07-21 15:33:40 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2016-05-12 08:43:49 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-04-26 15:36:23 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:my-netdata:netdata
|
2016-05-12 08:43:49 +00:00
|
|
|
|
2018-11-08 18:44:09 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
2019-08-12 00:33:31 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/netdata/netdata/tar.gz/v$(PKG_VERSION)?
|
2019-12-18 21:05:33 +00:00
|
|
|
PKG_HASH:=007656f639d3544698af503f35550aeb4d4d5a06b81801bf5acf4ac21db68f6e
|
2016-05-12 08:43:49 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2019-10-19 17:09:48 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2016-05-12 08:43:49 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2018-11-08 18:44:09 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
2016-05-12 08:43:49 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/netdata
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2019-08-12 00:33:31 +00:00
|
|
|
DEPENDS:=+zlib +libuuid +libmnl +libjson-c
|
2016-05-12 08:43:49 +00:00
|
|
|
TITLE:=Real-time performance monitoring tool
|
2019-07-21 15:33:40 +00:00
|
|
|
URL:=https://www.netdata.cloud/
|
2016-05-12 08:43:49 +00:00
|
|
|
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.
|
2018-11-08 18:44:09 +00:00
|
|
|
|
2019-04-26 15:36:23 +00:00
|
|
|
If you want to use Python plugins install python3, python3-yaml and
|
|
|
|
python3-urllib3
|
2016-05-12 08:43:49 +00:00
|
|
|
endef
|
|
|
|
|
2017-12-27 14:59:12 +00:00
|
|
|
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
|
|
|
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections -O3
|
2017-09-18 22:12:15 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
|
2018-11-08 18:44:09 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-zlib \
|
|
|
|
--with-math \
|
|
|
|
--disable-x86-sse \
|
|
|
|
--enable-lto \
|
|
|
|
--without-libcap \
|
2019-08-12 00:33:31 +00:00
|
|
|
--disable-https \
|
|
|
|
--disable-dbengine \
|
|
|
|
--disable-plugin-nfacct \
|
|
|
|
--disable-plugin-freeipmi \
|
|
|
|
--disable-plugin-cups \
|
|
|
|
--disable-plugin-xenstat \
|
|
|
|
--disable-backend-prometheus-remote-write \
|
|
|
|
--enable-jsonc
|
2017-07-19 08:27:41 +00:00
|
|
|
|
2016-05-12 08:43:49 +00:00
|
|
|
define Package/netdata/conffiles
|
|
|
|
/etc/netdata/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netdata/install
|
2018-11-08 18:44:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/netdata/custom-plugins.d
|
2016-10-20 07:47:31 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
|
|
|
|
$(CP) ./files/netdata.conf $(1)/etc/netdata
|
2019-08-12 00:33:31 +00:00
|
|
|
touch $(1)/etc/netdata/.opt-out-from-anonymous-statistics
|
2018-11-08 18:44:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
|
|
|
|
$(CP) $(1)/usr/lib/netdata/conf.d/fping.conf $(1)/etc
|
|
|
|
$(CP) $(1)/usr/lib/netdata/conf.d/health_alarm_notify.conf $(1)/etc
|
|
|
|
rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml2
|
|
|
|
rm -rf $(1)/usr/lib/netdata/python.d/python_modules/pyyaml3
|
|
|
|
rm -rf $(1)/usr/lib/netdata/python.d/python_modules/urllib3
|
|
|
|
$(CP) $(1)/usr/lib/netdata/plugins.d/tc-qos-helper.sh $(1)/etc
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/netdata
|
2016-05-12 08:43:49 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
|
2016-10-20 07:47:31 +00:00
|
|
|
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
|
2019-02-17 09:16:59 +00:00
|
|
|
rm $(1)/usr/share/netdata/web/images/*.png
|
|
|
|
rm $(1)/usr/share/netdata/web/images/*.gif
|
|
|
|
rm $(1)/usr/share/netdata/web/images/*.ico
|
2018-11-08 18:44:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2016-10-20 07:47:31 +00:00
|
|
|
$(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
|
2016-05-12 08:43:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netdata))
|