1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit linux-info systemd user
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://github.com/firehol/${PN}.git"
12 inherit git-r3 autotools
16 SRC_URI="http://firehol.org/download/${PN}/releases/v${PV}/${P}.tar.xz"
20 DESCRIPTION="Linux real time system monitoring, over the web!"
21 HOMEPAGE="https://github.com/firehol/netdata"
25 KEYWORDS="~amd64 ~x86"
26 IUSE="+zlib nfacct nodejs"
28 # most unconditional dependencies are for plugins.d/charts.d.plugin:
29 RDEPEND=">=app-shells/bash-4
36 zlib? ( sys-libs/zlib )
50 # check for Kernel-Samepage-Merging (CONFIG_KSM)
59 enewuser ${PN} -1 -1 / ${PN}
63 if [[ ${PV} == "9999" ]] ; then
70 if [[ ${PV} == "9999" ]] ; then
78 --localstatedir=/var \
79 $(use_enable nfacct plugin-nfacct) \
82 || die "configure failed"
88 fowners ${PN} /var/log/netdata
90 newinitd system/netdata-openrc ${PN}
91 systemd_dounit system/netdata.service