From 653470fa061d0249f8f0b0ebe033551add76f13b Mon Sep 17 00:00:00 2001 From: Paul Labedan Date: Fri, 1 Apr 2016 07:45:38 +0200 Subject: add netdata ebuild --- net-analyzer/netdata/Manifest | 1 + net-analyzer/netdata/netdata-9999.ebuild | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 net-analyzer/netdata/Manifest create mode 100644 net-analyzer/netdata/netdata-9999.ebuild diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest new file mode 100644 index 0000000..8c482d1 --- /dev/null +++ b/net-analyzer/netdata/Manifest @@ -0,0 +1 @@ +EBUILD netdata-9999.ebuild 844 SHA256 d918a2e5c5535f4bf1ab7d5d9b25b80fa4f3f62f8cd9346d4372498f6bf27a11 SHA512 d3a1d61e4340443095a700953fb63b4b5378f859188086842fa709903607914a732cadc08a04aaf54ca714afc627fef8ae69f5084666bfe3a6655549838a035e WHIRLPOOL 467e88263c3eec6112b342af8001c3cdf6ff75a8e71356a8dde3c10ecb2aa6f4bdd8ddc103f4dda884c161092b39463bf2385d7ddfb22158700dbb8cd53b8a6f diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild new file mode 100644 index 0000000..768b9ec --- /dev/null +++ b/net-analyzer/netdata/netdata-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools git-2 user + +DESCRIPTION="Linux real time system monitoring, over the web!" +HOMEPAGE="https://github.com/firehol/netdata" +EGIT_REPO_URI="https://github.com/firehol/netdata" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="" +IUSE="nfacct +zlib" + +RDEPEND="zlib? ( sys-libs/zlib ) + nfacct? ( + net-firewall/nfacct + net-libs/libmnl + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + enewgroup netdata + enewuser netdata -1 -1 / netdata +} + +src_prepare() { + eautoreconf +} + +src_configure() { + econf \ + --localstatedir="${EROOT}var" \ + $(use_enable nfacct plugin-nfacct) \ + $(use_with zlib) \ + --with-user=netdata +} + +src_install() { + default + fowners netdata /var/log/netdata + rm -fr "${ED}/var/cache/netdata" +} -- cgit v1.2.3-65-gdbad