libnpupnp: update to 6.1.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.33.1
12 PKG_RELEASE:=4
13
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
18
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)
23
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26 PKG_FIXUP:=autoreconf
27 PKG_BUILD_FLAGS:=no-mips16 gc-sections
28
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/netdata
32 SECTION:=admin
33 CATEGORY:=Administration
34 DEPENDS:=+zlib +libuuid +libuv +libmnl +libjson-c
35 TITLE:=Real-time performance monitoring tool
36 URL:=https://www.netdata.cloud/
37 endef
38
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.
42
43 If you want to use Python plugins install python3, python3-yaml and
44 python3-urllib3
45 endef
46
47 TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
48
49 CONFIGURE_ARGS += \
50 --with-zlib \
51 --with-math \
52 --disable-x86-sse \
53 --enable-lto \
54 --disable-ebpf \
55 --without-libcap \
56 --disable-https \
57 --disable-dbengine \
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 \
65 --disable-ml \
66 --disable-cloud
67
68 define Build/Configure
69 $(SED) 's/m4_esyscmd(\[git describe .*\])/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
70 $(Build/Configure/Default)
71 endef
72
73 define Package/netdata/conffiles
74 /etc/netdata/
75 endef
76
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
101 endef
102
103 $(eval $(call BuildPackage,netdata))