diff --git a/srcpkgs/netdata/INSTALL b/srcpkgs/netdata/INSTALL new file mode 100644 index 00000000000..a3ad66fc5fd --- /dev/null +++ b/srcpkgs/netdata/INSTALL @@ -0,0 +1,6 @@ +case ${ACTION} in + post) + chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin + chmod 4750 usr/libexec/netdata/plugins.d/apps.plugin + ;; +esac diff --git a/srcpkgs/netdata/files/netdata/run b/srcpkgs/netdata/files/netdata/run new file mode 100755 index 00000000000..27c8d3adaed --- /dev/null +++ b/srcpkgs/netdata/files/netdata/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec netdata -nd diff --git a/srcpkgs/netdata/patches/crosstime.patch b/srcpkgs/netdata/patches/crosstime.patch new file mode 100644 index 00000000000..318940d4e40 --- /dev/null +++ b/srcpkgs/netdata/patches/crosstime.patch @@ -0,0 +1,9 @@ +--- src/log.h.orig 2016-04-24 21:25:30.134626548 -0500 ++++ src/log.h 2016-04-24 21:26:22.579967475 -0500 +@@ -1,5 +1,6 @@ + #include + #include ++#include + + #ifndef NETDATA_LOG_H + #define NETDATA_LOG_H 1 diff --git a/srcpkgs/netdata/template b/srcpkgs/netdata/template new file mode 100644 index 00000000000..75af0447f0f --- /dev/null +++ b/srcpkgs/netdata/template @@ -0,0 +1,20 @@ +# Template file for 'netdata' +pkgname=netdata +version=1.1.0 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="zlib-devel" +system_accounts="netdata" +conf_files="/etc/${pkgname}/*.conf" +configure_args="--with-user=netdata --with-webroot=/usr/share/${pkgname}/webroot" +short_desc="Real-time performance monitoring, done right" +maintainer="Michael Aldridge " +license="GPL-3" +homepage="http://netdata.firehol.org/" +distfiles="http://firehol.org/download/netdata/releases/v${version}/${pkgname}-${version}.tar.gz" +checksum=b1967cf2a9f2ddc5798c0576eb6861d3e5bac0665b50077ce784b671c1e55180 + +post_install() { + vsv netdata +}