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
13 PKG_MAINTAINER
:=Daniel Engberg
<daniel.engberg.lists@pyret.net
>
15 PKG_LICENSE_FILES
:=COPYING
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
18 PKG_SOURCE_URL
:=https
://github.com
/firehol
/netdata
/releases
/download
/v
$(PKG_VERSION
)
19 PKG_HASH
:=1624a3b02f07dc8881b8edd5899049d4d3d53e485424ffb2fb65a322e2ff82c3
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/netdata
28 CATEGORY
:=Administration
29 DEPENDS
:=+zlib
+libuuid
30 TITLE
:=Real-time performance monitoring tool
31 URL
:=https
://my-netdata.io
/
34 define Package
/netdata
/description
35 netdata is a highly optimized Linux daemon providing real-time performance
36 monitoring for Linux systems
, applications and SNMP devices over the web.
39 TARGET_CFLAGS
+= -ffunction-sections
-fdata-sections
40 TARGET_LDFLAGS
+= -Wl
,--gc-sections
42 CONFIGURE_ARGS
+= --with-zlib
--with-math
--disable-x86-sse
--disable-lto
44 define Package
/netdata
/conffiles
48 define Package
/netdata
/install
49 mkdir
-p
$(1)/etc
/netdata
50 $(CP
) $(PKG_INSTALL_DIR
)/etc
/netdata
$(1)/etc
51 $(CP
) .
/files
/netdata.conf
$(1)/etc
/netdata
52 mkdir
-p
$(1)/usr
/share
/netdata
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/netdata
$(1)/usr
/share
54 rm -rf
$(1)/usr
/share
/netdata
/web
/images
55 rm -rf
$(1)/usr
/share
/netdata
/web
/old
56 rm $(1)/usr
/share
/netdata
/web
/demo
*html
57 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.svg
58 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.ttf
59 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.woff
60 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.otf
61 mkdir
-p
$(1)/usr
/lib
/netdata
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/netdata
$(1)/usr
/lib
63 rm $(1)/usr
/lib
/netdata
/python.d
/python-modules-installer.sh
64 chmod
4755 $(1)/usr
/lib
/netdata
/plugins.d
/apps.plugin
65 mkdir
-p
$(1)/etc
/init.d
66 $(INSTALL_BIN
) .
/files
/netdata.init
$(1)/etc
/init.d
/netdata
67 mkdir
-p
$(1)/usr
/sbin
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/netdata
$(1)/usr
/sbin
71 $(eval
$(call BuildPackage
,netdata
))