2 # Copyright (C) 2008-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Josef Schlehofer
<pepe.schlehofer@gmail.com
>, Daniel Engberg
<daniel.engberg.lists@pyret.net
>
15 PKG_LICENSE
:=GPL-3.0
-or-later
16 PKG_LICENSE_FILES
:=COPYING
17 PKG_CPE_ID
:=cpe
:/a
:my-netdata
:netdata
19 PKG_SOURCE
:=$(PKG_NAME
)-v
$(PKG_VERSION
).
tar.gz
20 PKG_SOURCE_URL
:=https
://github.com
/netdata
/netdata
/releases
/download
/v
$(PKG_VERSION
)
21 PKG_HASH
:=20ba8695d87187787b27128ac3aab9b09aa29ca6b508c48542e0f7d50ec9322b
22 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_NAME
)-v
$(PKG_VERSION
)
27 PKG_BUILD_FLAGS
:=no-mips16 gc-sections
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/netdata
33 CATEGORY
:=Administration
34 DEPENDS
:=+zlib
+libuuid
+libuv
+libmnl
+libjson-c
35 TITLE
:=Real-time performance monitoring tool
36 URL
:=https
://www.netdata.cloud
/
39 define Package
/netdata
/description
40 netdata is a highly optimized Linux daemon providing real-time performance
41 monitoring for Linux systems
, applications and SNMP devices over the web.
43 If you want to use Python plugins
install python3
, python3-yaml and
47 TARGET_CFLAGS
:= $(filter-out -O
%,$(TARGET_CFLAGS
)) -O3
58 --disable-compression \
59 --disable-plugin-nfacct \
60 --disable-plugin-freeipmi \
61 --disable-plugin-cups \
62 --disable-plugin-xenstat \
63 --disable-backend-prometheus-remote-write \
64 --disable-unit-tests \
68 define Build
/Configure
69 $(SED
) 's/m4_esyscmd(\[git describe .*\])/$(PKG_VERSION)/' $(PKG_BUILD_DIR
)/configure.ac
70 $(Build
/Configure
/Default
)
73 define Package
/netdata
/conffiles
77 define Package
/netdata
/install
78 $(INSTALL_DIR
) $(1)/etc
/netdata
/custom-plugins.d
79 $(CP
) $(PKG_INSTALL_DIR
)/etc
/netdata
$(1)/etc
80 $(CP
) .
/files
/netdata.conf
$(1)/etc
/netdata
81 touch
$(1)/etc
/netdata
/.opt-out-from-anonymous-statistics
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/netdata
$(1)/usr
/lib
84 $(CP
) $(1)/usr
/lib
/netdata
/conf.d
/fping.conf
$(1)/etc
85 $(CP
) $(1)/usr
/lib
/netdata
/conf.d
/health_alarm_notify.conf
$(1)/etc
86 $(CP
) $(1)/usr
/lib
/netdata
/plugins.d
/tc-qos-helper.sh
$(1)/etc
87 $(INSTALL_DIR
) $(1)/usr
/sbin
88 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/netdata
$(1)/usr
/sbin
89 $(INSTALL_DIR
) $(1)/usr
/share
/netdata
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/netdata
$(1)/usr
/share
91 rm $(1)/usr
/share
/netdata
/web
/demo
*html
92 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.svg
93 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.ttf
94 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.woff
95 rm $(1)/usr
/share
/netdata
/web
/images
/*.png
96 rm $(1)/usr
/share
/netdata
/web
/images
/*.gif
97 rm $(1)/usr
/share
/netdata
/web
/images
/*.ico
98 rm -rf
$(1)/usr
/share
/netdata
/web
/old
99 $(INSTALL_DIR
) $(1)/etc
/init.d
100 $(INSTALL_BIN
) .
/files
/netdata.init
$(1)/etc
/init.d
/netdata
103 $(eval
$(call BuildPackage
,netdata
))