netdata: update to 1.3.0 and use procd init 3246/head
authordiizzyy <diizzyy@gmail.com>
Tue, 27 Sep 2016 22:27:12 +0000 (00:27 +0200)
committerdiizzyy <diizzyy@gmail.com>
Tue, 27 Sep 2016 22:41:26 +0000 (00:41 +0200)
Update to 1.3.0
Change init.d script to use procd
Use release binary instead of git

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
admin/netdata/Makefile
admin/netdata/files/netdata.init

index 1f43efeab812b8f957abf214448c2464a5513f3a..38b2837b97fa070dfa5e25ed64121b6f450bc2a2 100644 (file)
@@ -8,16 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netdata
-PKG_VERSION:=1.2.0
+PKG_VERSION:=1.3.0
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Sebastian Careba <nitroshift@yahoo.com>
 PKG_LICENSE:=GPL-3.0
 PKG_LICENSE_FILES:=COPYING
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/firehol/netdata
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=bb4aa949f5ac825253d8adc6070661299abc1c3b
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://firehol.org/download/netdata/releases/v$(PKG_VERSION)
+PKG_SOURCE_VERSION:=f8ed1eac764386b839fbd2db0f41e664
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 
 PKG_INSTALL:=1
index 448e56d91731f8c7e59a1445e5da25b8f1bfcb70..d4be0a7c25d12f5b108a4af25c4567566707f95e 100644 (file)
@@ -1,11 +1,21 @@
 #!/bin/sh /etc/rc.common
 
 START=99
+USE_PROCD=1
 
-start() {
-       service_start /usr/sbin/netdata
-}
+APPBINARY=/usr/sbin/netdata
+CONFIGFILE=/etc/netdata/netdata.conf
 
-stop() {
-       service_stop /usr/sbin/netdata
-}
+       start_service() {
+       mkdir -m 0755 -p /var/cache/netdata
+       chown nobody /var/cache/netdata
+       mkdir -m 0755 -p /var/lib/netdata
+       chown nobody /var/lib/netdata
+       mkdir -m 0755 -p /var/log/netdata
+       chown nobody /var/log/netdata
+       procd_open_instance
+       procd_set_param command $APPBINARY -nd -c $CONFIGFILE
+       procd_set_param file $CONFIGFILE
+       procd_set_param respawn
+       procd_close_instance
+       }