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
|
2022-03-03 15:30:16 +00:00
|
|
|
PKG_VERSION:=1.33.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=4
|
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
|
2022-03-03 15:30:16 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/netdata/netdata/releases/download/v$(PKG_VERSION)
|
|
|
|
PKG_HASH:=20ba8695d87187787b27128ac3aab9b09aa29ca6b508c48542e0f7d50ec9322b
|
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
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
|
2023-03-23 08:09:13 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16 gc-sections
|
2016-05-12 08:43:49 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/netdata
|
|
|
|
SECTION:=admin
|
|
|
|
CATEGORY:=Administration
|
2020-02-23 09:27:35 +00:00
|
|
|
DEPENDS:=+zlib +libuuid +libuv +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
|
|
|
|
|
2023-03-23 08:09:13 +00:00
|
|
|
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
|
2017-09-18 22:12:15 +00:00
|
|
|
|
2018-11-08 18:44:09 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-zlib \
|
|
|
|
--with-math \
|
|
|
|
--disable-x86-sse \
|
|
|
|
--enable-lto \
|
2020-10-16 15:10:56 +00:00
|
|
|
--disable-ebpf \
|
2018-11-08 18:44:09 +00:00
|
|
|
--without-libcap \
|
2019-08-12 00:33:31 +00:00
|
|
|
--disable-https \
|
|
|
|
--disable-dbengine \
|
2022-03-15 09:51:42 +00:00
|
|
|
--disable-compression \
|
2019-08-12 00:33:31 +00:00
|
|
|
--disable-plugin-nfacct \
|
|
|
|
--disable-plugin-freeipmi \
|
|
|
|
--disable-plugin-cups \
|
|
|
|
--disable-plugin-xenstat \
|
|
|
|
--disable-backend-prometheus-remote-write \
|
2020-05-14 08:45:46 +00:00
|
|
|
--disable-unit-tests \
|
2022-03-03 15:30:16 +00:00
|
|
|
--disable-ml \
|
2020-05-14 08:45:46 +00:00
|
|
|
--disable-cloud
|
2017-07-19 08:27:41 +00:00
|
|
|
|
2022-03-03 15:30:16 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(SED) 's/m4_esyscmd(\[git describe .*\])/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
|
|
|
|
$(Build/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
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
|
|
|
|
$(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
|
2020-05-14 08:45:46 +00:00
|
|
|
rm -rf $(1)/usr/share/netdata/web/old
|
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))
|