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: Tue, 09 Feb 2021 15:46:09
Message-Id: 1612885562.ac679acfec9f82e7bd51f0dc4deb7ec4ed41914c.candrews@gentoo
1 commit: ac679acfec9f82e7bd51f0dc4deb7ec4ed41914c
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 15:45:41 2021 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 15:46:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac679acf
7
8 net-analyzer/netdata: 1.29.1 version bump
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-analyzer/netdata/Manifest | 1 +
14 net-analyzer/netdata/netdata-1.29.1.ebuild | 138 +++++++++++++++++++++++++++++
15 2 files changed, 139 insertions(+)
16
17 diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest
18 index bf854116e37..2fcfe9141b4 100644
19 --- a/net-analyzer/netdata/Manifest
20 +++ b/net-analyzer/netdata/Manifest
21 @@ -1 +1,2 @@
22 DIST netdata-1.29.0.tar.gz 6233326 BLAKE2B b177fba4d6560b289e5a9fbedffe7f3eae53074fea30483a54a682370ab5427bb1002392ea44efd1c7675dd8347116675d91ac47dbd3fb3d0c66d0391d63971c SHA512 adcc450492f769a1d6277b551d318479dac2150b2c92b9ab648bb3f30cfe3cd0717f2febbe5299093f1d0638a90523aad9f6a073fc34bd91990d2c90416d0fdc
23 +DIST netdata-1.29.1.tar.gz 6233282 BLAKE2B 53fd82c0b904b6d29eac1534e46d856c9b13460fec7b739cb5e93596961753d978dff0a5e08c88f10d974838809d4266b715e442b54e507ae744122d0345297f SHA512 252efece4501d9cd3c71536b96f9487c618f9a2a3445d0bf0d49f0bfd399b80115b0f57f22fddc5567763a9f41e95f24c8ed64b6e1c29f0d7d121d844d8d1176
24
25 diff --git a/net-analyzer/netdata/netdata-1.29.1.ebuild b/net-analyzer/netdata/netdata-1.29.1.ebuild
26 new file mode 100644
27 index 00000000000..8d690b9c053
28 --- /dev/null
29 +++ b/net-analyzer/netdata/netdata-1.29.1.ebuild
30 @@ -0,0 +1,138 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python{3_7,3_8,3_9} )
36 +
37 +inherit autotools fcaps linux-info python-single-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 +jsonc kinesis +lto mongodb mysql nfacct nodejs postgres prometheus +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-libs/libwebsockets
69 + net-misc/curl
70 + net-misc/wget
71 + sys-apps/util-linux
72 + virtual/awk
73 + caps? ( sys-libs/libcap )
74 + cups? ( net-print/cups )
75 + dbengine? (
76 + app-arch/lz4
77 + dev-libs/judy
78 + dev-libs/openssl:=
79 + )
80 + dev-libs/libuv
81 + compression? ( sys-libs/zlib )
82 + ipmi? ( sys-libs/freeipmi )
83 + jsonc? ( dev-libs/json-c:= )
84 + kinesis? ( dev-libs/aws-sdk-cpp[kinesis] )
85 + mongodb? ( dev-libs/mongo-c-driver )
86 + nfacct? (
87 + net-firewall/nfacct
88 + net-libs/libmnl
89 + )
90 + nodejs? ( net-libs/nodejs )
91 + prometheus? (
92 + dev-libs/protobuf:=
93 + app-arch/snappy
94 + )
95 + python? (
96 + ${PYTHON_DEPS}
97 + $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_MULTI_USEDEP}]')
98 + mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}]') )
99 + postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}]') )
100 + tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_MULTI_USEDEP}]') )
101 + )
102 + xen? (
103 + app-emulation/xen-tools
104 + dev-libs/yajl
105 + )"
106 +DEPEND="${RDEPEND}
107 + virtual/pkgconfig"
108 +
109 +FILECAPS=(
110 + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin'
111 +)
112 +
113 +pkg_setup() {
114 + use python && python-single-r1_pkg_setup
115 + linux-info_pkg_setup
116 +}
117 +
118 +src_prepare() {
119 + default
120 + eautoreconf
121 +}
122 +
123 +src_configure() {
124 + # --disable-cloud: https://github.com/netdata/netdata/issues/8961
125 + econf \
126 + --localstatedir="${EPREFIX}"/var \
127 + --with-user=netdata \
128 + --disable-cloud \
129 + $(use_enable jsonc) \
130 + $(use_enable cups plugin-cups) \
131 + $(use_enable dbengine) \
132 + $(use_enable nfacct plugin-nfacct) \
133 + $(use_enable ipmi plugin-freeipmi) \
134 + $(use_enable kinesis backend-kinesis) \
135 + $(use_enable lto lto) \
136 + $(use_enable mongodb backend-mongodb) \
137 + $(use_enable prometheus backend-prometheus-remote-write) \
138 + $(use_enable xen plugin-xenstat) \
139 + $(use_enable cpu_flags_x86_sse2 x86-sse) \
140 + $(use_with compression zlib)
141 +}
142 +
143 +src_install() {
144 + default
145 +
146 + rm -rf "${D}/var/cache" || die
147 +
148 + keepdir /var/log/netdata
149 + fowners -Rc netdata:netdata /var/log/netdata
150 + keepdir /var/lib/netdata
151 + keepdir /var/lib/netdata/registry
152 + fowners -Rc netdata:netdata /var/lib/netdata
153 +
154 + fowners -Rc root:netdata /usr/share/${PN}
155 +
156 + newinitd system/netdata-openrc ${PN}
157 + systemd_dounit system/netdata.service
158 + insinto /etc/netdata
159 + doins system/netdata.conf
160 +}
161 +
162 +pkg_postinst() {
163 + fcaps_pkg_postinst
164 +
165 + if use xen ; then
166 + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin'
167 + fi
168 +}