admin/netdata: Update to 1.8.0
[feed/packages.git] / admin / netdata / Makefile
1 #
2 # Copyright (C) 2008-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=netdata
11 PKG_VERSION:=1.8.0
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
14 PKG_LICENSE:=GPL-3.0
15 PKG_LICENSE_FILES:=COPYING
16
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
20
21 PKG_INSTALL:=1
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/netdata
27 SECTION:=admin
28 CATEGORY:=Administration
29 DEPENDS:=+zlib +libuuid
30 TITLE:=Real-time performance monitoring tool
31 URL:=https://my-netdata.io/
32 endef
33
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.
37 endef
38
39 TARGET_CFLAGS += -ffunction-sections -fdata-sections
40 TARGET_LDFLAGS += -Wl,--gc-sections
41
42 CONFIGURE_ARGS += --with-zlib --with-math --disable-x86-sse --disable-lto
43
44 define Package/netdata/conffiles
45 /etc/netdata/
46 endef
47
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
69 endef
70
71 $(eval $(call BuildPackage,netdata))