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
:=7fa23ceaccf6548fba165cd4839ce694784b2fcf7f90de0a0162b9c529805fc0
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 CONFIGURE_ARGS
+= --with-zlib
--with-math
--disable-x86-sse
--disable-lto
41 define Package
/netdata
/conffiles
45 define Package
/netdata
/install
46 mkdir
-p
$(1)/etc
/netdata
47 $(CP
) $(PKG_INSTALL_DIR
)/etc
/netdata
$(1)/etc
48 $(CP
) .
/files
/netdata.conf
$(1)/etc
/netdata
49 mkdir
-p
$(1)/usr
/share
/netdata
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/netdata
$(1)/usr
/share
51 rm -rf
$(1)/usr
/share
/netdata
/web
/images
52 rm -rf
$(1)/usr
/share
/netdata
/web
/old
53 rm $(1)/usr
/share
/netdata
/web
/demo
*html
54 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.svg
55 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.ttf
56 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.woff
57 rm $(1)/usr
/share
/netdata
/web
/fonts
/*.otf
58 mkdir
-p
$(1)/usr
/lib
/netdata
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/netdata
$(1)/usr
/lib
60 rm $(1)/usr
/lib
/netdata
/python.d
/python-modules-installer.sh
61 rm -rf
$(1)/usr
/lib
/netdata
/python.d
/python_modules
/pyyaml2
62 rm -rf
$(1)/usr
/lib
/netdata
/python.d
/python_modules
/pyyaml3
63 chmod
4755 $(1)/usr
/lib
/netdata
/plugins.d
/apps.plugin
64 mkdir
-p
$(1)/etc
/init.d
65 $(INSTALL_BIN
) .
/files
/netdata.init
$(1)/etc
/init.d
/netdata
66 mkdir
-p
$(1)/usr
/sbin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/netdata
$(1)/usr
/sbin
70 $(eval
$(call BuildPackage
,netdata
))