Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netdata/
Date: Thu, 28 Nov 2019 17:06:38
Message-Id: 1574960787.37c897d6322271fb76027faf20d84d12f7c1d9af.candrews@gentoo
1 commit: 37c897d6322271fb76027faf20d84d12f7c1d9af
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 17:05:03 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 17:06:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c897d6
7
8 net-analyzer/netdata: 1.19.0 version bump
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-analyzer/netdata/Manifest | 1 +
14 net-analyzer/netdata/netdata-1.19.0.ebuild | 129 +++++++++++++++++++++++++++++
15 2 files changed, 130 insertions(+)
16
17 diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest
18 index 2f50ed65ed4..ed6d7d05b85 100644
19 --- a/net-analyzer/netdata/Manifest
20 +++ b/net-analyzer/netdata/Manifest
21 @@ -1 +1,2 @@
22 DIST netdata-1.18.1.tar.gz 3413907 BLAKE2B 9047f23875f446b378c80962e7f8e5c9424fbc2a405c75b76e242b26ae48336cbb026d3fc5c0e4127b0e5d1f1d5a14652ae92661474cd11ecbd64614461ab118 SHA512 fb72f4729e05ab83fe9462e31b10fc40243472ea9f6cbb9421e2ca549810f2f80b28b05e886faa66e15c53b317ee559a3e0fb3d382c36a424dd39fec779918d9
23 +DIST netdata-1.19.0.tar.gz 3443251 BLAKE2B 8e18a661367850e712a75c1c11b661a977bf77b48369e0e36763a74f96b3726c523093a82eb6f94257c02e754d900cb675d501fda824ceb94eef31dfa30e5712 SHA512 026ae159d8ed52a30e406c110c2732e54e50f070865ba3e430df73e4df40387105053e750ca6029cfbc7f40a2c05b7fb6ba4e3e4a7070822c7eec4c1a4712aea
24
25 diff --git a/net-analyzer/netdata/netdata-1.19.0.ebuild b/net-analyzer/netdata/netdata-1.19.0.ebuild
26 new file mode 100644
27 index 00000000000..b066aadbf11
28 --- /dev/null
29 +++ b/net-analyzer/netdata/netdata-1.19.0.ebuild
30 @@ -0,0 +1,129 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
36 +
37 +inherit autotools fcaps linux-info python-r1 systemd
38 +
39 +if [[ ${PV} == *9999 ]] ; then
40 + EGIT_REPO_URI="https://github.com/netdata/${PN}.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/netdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="Linux real time system monitoring, done right!"
48 +HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/"
49 +
50 +LICENSE="GPL-3+ MIT BSD"
51 +SLOT="0"
52 +IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi mysql nfacct nodejs postgres +python tor xen"
53 +REQUIRED_USE="
54 + mysql? ( python )
55 + python? ( ${PYTHON_REQUIRED_USE} )
56 + tor? ( python )"
57 +
58 +# most unconditional dependencies are for plugins.d/charts.d.plugin:
59 +RDEPEND="
60 + acct-group/netdata
61 + acct-user/netdata
62 + app-misc/jq
63 + >=app-shells/bash-4:0
64 + || (
65 + net-analyzer/openbsd-netcat
66 + net-analyzer/netcat
67 + )
68 + net-misc/curl
69 + net-misc/wget
70 + sys-apps/util-linux
71 + virtual/awk
72 + caps? ( sys-libs/libcap )
73 + cups? ( net-print/cups )
74 + dbengine? (
75 + dev-libs/libuv
76 + app-arch/lz4
77 + dev-libs/judy
78 + dev-libs/openssl:=
79 + )
80 + compression? ( sys-libs/zlib )
81 + ipmi? ( sys-libs/freeipmi )
82 + nfacct? (
83 + net-firewall/nfacct
84 + net-libs/libmnl
85 + )
86 + nodejs? ( net-libs/nodejs )
87 + python? (
88 + ${PYTHON_DEPS}
89 + dev-python/pyyaml[${PYTHON_USEDEP}]
90 + mysql? (
91 + || (
92 + dev-python/mysqlclient[${PYTHON_USEDEP}]
93 + dev-python/mysql-python[${PYTHON_USEDEP}]
94 + )
95 + )
96 + postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
97 + tor? ( net-libs/stem[${PYTHON_USEDEP}] )
98 + )
99 + xen? (
100 + app-emulation/xen-tools
101 + dev-libs/yajl
102 + )"
103 +DEPEND="${RDEPEND}
104 + virtual/pkgconfig"
105 +
106 +FILECAPS=(
107 + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin'
108 +)
109 +
110 +pkg_setup() {
111 + linux-info_pkg_setup
112 +}
113 +
114 +src_prepare() {
115 + default
116 + eautoreconf
117 +}
118 +
119 +src_configure() {
120 + econf \
121 + --localstatedir="${EPREFIX}"/var \
122 + --with-user=netdata \
123 + --disable-jsonc \
124 + $(use_enable cups plugin-cups) \
125 + $(use_enable dbengine) \
126 + $(use_enable nfacct plugin-nfacct) \
127 + $(use_enable ipmi plugin-freeipmi) \
128 + $(use_enable xen plugin-xenstat) \
129 + $(use_enable cpu_flags_x86_sse2 x86-sse) \
130 + $(use_with compression zlib)
131 +}
132 +
133 +src_install() {
134 + default
135 +
136 + rm -rf "${D}/var/cache" || die
137 +
138 + # Remove unneeded .keep files
139 + find "${ED}" -name ".keep" -delete || die
140 +
141 + fowners -Rc netdata:netdata /var/log/netdata
142 + keepdir /var/log/netdata
143 + fowners -Rc netdata:netdata /var/lib/netdata
144 + keepdir /var/lib/netdata
145 + keepdir /var/lib/netdata/registry
146 +
147 + fowners -Rc root:netdata /usr/share/${PN}
148 +
149 + newinitd system/netdata-openrc ${PN}
150 + systemd_dounit system/netdata.service
151 + insinto /etc/netdata
152 + doins system/netdata.conf
153 +}
154 +
155 +pkg_postinst() {
156 + if use xen ; then
157 + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin'
158 + fi
159 +}