packages/admin/netdata/Makefile
nitroshift 77e9cba6f1 Netdata: update to v. 1.4.0
Maintainer: Sebastian Careba nitroshift@yahoo.com
Compile tested: mvebu, WRT1900AC v1 (Mamba), OpenWRT r49953
Run tested: mvebu, WRT1900AC v1 (Mamba), OpenWRT r49953

Description:

Updated package to latest release.

Signed-off-by: Sebastian Careba nitroshift@yahoo.com
2016-10-10 12:46:03 +03:00

61 lines
1.8 KiB
Makefile

#
# Copyright (C) 2008-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=netdata
PKG_VERSION:=1.4.0
PKG_RELEASE:=1
PKG_MAINTAINER:=Sebastian Careba <nitroshift@yahoo.com>
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=COPYING
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://firehol.org/download/netdata/releases/v$(PKG_VERSION)
PKG_SOURCE_VERSION:=3028b87ee19e8550df6b9decc49733d595e0bd6e
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
TARGET_CFLAGS+= -DNETDATA_NO_ATOMIC_INSTRUCTIONS=1
include $(INCLUDE_DIR)/package.mk
define Package/netdata
SECTION:=admin
CATEGORY:=Administration
DEPENDS:=+zlib +libuuid
TITLE:=Real-time performance monitoring tool
URL:=http://netdata.firehol.org/
endef
define Package/netdata/description
netdata is a highly optimized Linux daemon providing real-time performance
monitoring for Linux systems, applications and SNMP devices over the web.
endef
define Package/netdata/conffiles
/etc/netdata/
endef
define Package/netdata/install
$(INSTALL_DIR) $(1)/etc/netdata
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/netdata/apps_groups.conf $(1)/etc/netdata
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/netdata/charts.d.conf $(1)/etc/netdata
$(INSTALL_CONF) ./files/netdata.conf $(1)/etc/netdata
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/share/netdata
$(INSTALL_DIR) $(1)/usr/lib/netdata
$(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
$(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
chmod 4755 $(1)/usr/lib/netdata/plugins.d/apps.plugin
endef
$(eval $(call BuildPackage,netdata))