diff options
author | 2016-04-01 07:45:38 +0200 | |
---|---|---|
committer | 2016-04-01 07:45:38 +0200 | |
commit | 653470fa061d0249f8f0b0ebe033551add76f13b (patch) | |
tree | 0bc98e8c62e8e75fcf16c2b5cf1fe37736e0b4b8 | |
parent | cleanup: remove old x11-terms/terminology and x11-misc/touchegg (diff) | |
download | plab-653470fa061d0249f8f0b0ebe033551add76f13b.tar.gz plab-653470fa061d0249f8f0b0ebe033551add76f13b.tar.bz2 plab-653470fa061d0249f8f0b0ebe033551add76f13b.zip |
add netdata ebuild
-rw-r--r-- | net-analyzer/netdata/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/netdata/netdata-9999.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
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" +} |