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, 15 Sep 2020 04:06:29
Message-Id: 1600142781.b5b243505349276133affb82ebf37ac3e0f5c2e8.candrews@gentoo
1 commit: b5b243505349276133affb82ebf37ac3e0f5c2e8
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 15 04:05:51 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 15 04:06:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b24350
7
8 net-analyzer/netdata: 1.25.0 version bump
9
10 Package-Manager: Portage-3.0.7, Repoman-3.0.1
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-analyzer/netdata/Manifest | 1 +
14 net-analyzer/netdata/netdata-1.25.0.ebuild | 141 +++++++++++++++++++++++++++++
15 2 files changed, 142 insertions(+)
16
17 diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest
18 index 6e0d6fa46c1..cf89fd34ad5 100644
19 --- a/net-analyzer/netdata/Manifest
20 +++ b/net-analyzer/netdata/Manifest
21 @@ -1,2 +1,3 @@
22 DIST netdata-1.23.2.tar.gz 3839012 BLAKE2B f0c225307b61a0a3b5d581e6d5e4a90d5f26ad0aae49e32dfd3dc36405e48d2e8f7a088c31a2a19059418f88e362eb9840b6c020f5459a0d0388f10b7c729eb0 SHA512 4a4dc647e0326da4f785444e15e2f74af09428374bfe2db57c44dd2765ce77b2babbd8b52e33e04f49b95937a6ca8691ffa18b51d1717ea927025b70fa7e369f
23 DIST netdata-1.24.0.tar.gz 3876403 BLAKE2B 36a2413039f89d4a9f4c60a6ebe319b5e818b9a0f57e722cd7e29293452faebf264cf961530a03c9a8ffa27fe9f12caf5c54d1e58741641a1be76e936a0e3222 SHA512 18276605f74520b3d55b8a67bfbee7cb2483d472becbcab7e2b1af19f08b05ffd2a83e6e8eec98733abde8ba1f552eec919e8ae59266cbec7c2c94beb4a2aeb4
24 +DIST netdata-1.25.0.tar.gz 3891805 BLAKE2B 42e6f1d2a20bce352fa5bbac162ff906a150069d3dd7e4c83f7315a6962f4e33f6a5a65e500b4763ad6f0778d71e93226604c6b0bee2f8fdcdfc9f36f07f7033 SHA512 d92249a2fab28ae26132708bc79af591f8050fef2e82b331d3756c84e21072bfd6f6b1158d8ca912a500ed7fd65e4e3005828b28180befa88d2984dde8bd816b
25
26 diff --git a/net-analyzer/netdata/netdata-1.25.0.ebuild b/net-analyzer/netdata/netdata-1.25.0.ebuild
27 new file mode 100644
28 index 00000000000..48231022d05
29 --- /dev/null
30 +++ b/net-analyzer/netdata/netdata-1.25.0.ebuild
31 @@ -0,0 +1,141 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python{3_6,3_7,3_8,3_9} )
37 +
38 +inherit autotools fcaps linux-info python-single-r1 systemd
39 +
40 +if [[ ${PV} == *9999 ]] ; then
41 + EGIT_REPO_URI="https://github.com/netdata/${PN}.git"
42 + inherit git-r3
43 +else
44 + SRC_URI="https://github.com/netdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~x86"
46 +fi
47 +
48 +DESCRIPTION="Linux real time system monitoring, done right!"
49 +HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/"
50 +
51 +LICENSE="GPL-3+ MIT BSD"
52 +SLOT="0"
53 +IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis mongodb mysql nfacct nodejs postgres prometheus +python tor xen"
54 +REQUIRED_USE="
55 + mysql? ( python )
56 + python? ( ${PYTHON_REQUIRED_USE} )
57 + tor? ( python )"
58 +
59 +# most unconditional dependencies are for plugins.d/charts.d.plugin:
60 +RDEPEND="
61 + acct-group/netdata
62 + acct-user/netdata
63 + app-misc/jq
64 + >=app-shells/bash-4:0
65 + || (
66 + net-analyzer/openbsd-netcat
67 + net-analyzer/netcat
68 + )
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? (
99 + || (
100 + $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}]')
101 + $(python_gen_cond_dep 'dev-python/mysql-python[${PYTHON_MULTI_USEDEP}]')
102 + )
103 + )
104 + postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}]') )
105 + tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_MULTI_USEDEP}]') )
106 + )
107 + xen? (
108 + app-emulation/xen-tools
109 + dev-libs/yajl
110 + )"
111 +DEPEND="${RDEPEND}
112 + virtual/pkgconfig"
113 +
114 +FILECAPS=(
115 + 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin'
116 +)
117 +
118 +pkg_setup() {
119 + use python && python-single-r1_pkg_setup
120 + linux-info_pkg_setup
121 +}
122 +
123 +src_prepare() {
124 + default
125 + eautoreconf
126 +}
127 +
128 +src_configure() {
129 + # --disable-cloud: https://github.com/netdata/netdata/issues/8961
130 + econf \
131 + --localstatedir="${EPREFIX}"/var \
132 + --with-user=netdata \
133 + --disable-cloud \
134 + $(use_enable jsonc) \
135 + $(use_enable cups plugin-cups) \
136 + $(use_enable dbengine) \
137 + $(use_enable nfacct plugin-nfacct) \
138 + $(use_enable ipmi plugin-freeipmi) \
139 + $(use_enable kinesis backend-kinesis) \
140 + $(use_enable mongodb backend-mongodb) \
141 + $(use_enable prometheus backend-prometheus-remote-write) \
142 + $(use_enable xen plugin-xenstat) \
143 + $(use_enable cpu_flags_x86_sse2 x86-sse) \
144 + $(use_with compression zlib)
145 +}
146 +
147 +src_install() {
148 + default
149 +
150 + rm -rf "${D}/var/cache" || die
151 +
152 + keepdir /var/log/netdata
153 + fowners -Rc netdata:netdata /var/log/netdata
154 + keepdir /var/lib/netdata
155 + keepdir /var/lib/netdata/registry
156 + fowners -Rc netdata:netdata /var/lib/netdata
157 +
158 + fowners -Rc root:netdata /usr/share/${PN}
159 +
160 + newinitd system/netdata-openrc ${PN}
161 + systemd_dounit system/netdata.service
162 + insinto /etc/netdata
163 + doins system/netdata.conf
164 +}
165 +
166 +pkg_postinst() {
167 + fcaps_pkg_postinst
168 +
169 + if use xen ; then
170 + fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin'
171 + fi
172 +}