1 |
commit: 70cda0f4b176a36a7ef61e353dde08968f0b9a45 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 1 14:52:27 2021 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 14:54:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70cda0f4 |
7 |
|
8 |
net-analyzer/netdata: 1.32.0 version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/netdata/Manifest | 1 + |
14 |
net-analyzer/netdata/netdata-1.32.0.ebuild | 152 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 153 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 78001a06c870..24b3f66996d0 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -4,3 +4,4 @@ DIST netdata-1.29.2.tar.gz 6234502 BLAKE2B b34314114c41e1fd80cfb1c495f34b2dbcc54 |
22 |
DIST netdata-1.29.3.tar.gz 6234406 BLAKE2B 975b27e8cb66c174d7cf01de0e5b76d57b0eac8005d5da19aa308df530edd8fcacc97b1ba5956ac38ffb9fcd55b2c58f4a1dec3bc691a5b898e886de19b365df SHA512 67e661328d76b3b9d4837e5acae16937300f1b91bc37bafc3ee606aeda88d2775c606126b9f072c682a1b24f5610b7993fedb808fd9032b240702d12cf063b54 |
23 |
DIST netdata-1.30.1.tar.gz 7153879 BLAKE2B 68553c000ee3a63cbd79cce5fe4daf75239cd76572160e1903f8325548d0cc4222f0c5e43f1488c31087b40de5222115bbe491cc00e36aea331992fc87b9f1ec SHA512 c3d116bf3459ca6224f5cd8341933c2696581178262a37887c532e09e98e5d075217fcd66574e00cc644fc16ec583b7e2fe54be95c98c477fb20fbe7ad9ed1a9 |
24 |
DIST netdata-1.31.0.tar.gz 12528280 BLAKE2B 739538b26a07f9f607a2f63f50225ce6ea50feaae8bbb2a60e6a2548ebdf36e4bd37f28d43d414cac44eec4ad9459f40e9532ac61f62f947bd0bd61e64803114 SHA512 62deba75e41fca44015a4e36b6791f7f10ea0a2658bcbd640e231abbbdbf56c7317c9fa72218fbd22a3312b33e7ec7886ea254cba331da9b3a51923e45393576 |
25 |
+DIST netdata-1.32.0.tar.gz 22486361 BLAKE2B 45959a367301a9c2b1e77c2cec33063728356095394a0c3241f669f4b0da61ad55a782dbcddbaa52d1bc7e8870ae971f431341678e2fbe4c6e30893774a9503d SHA512 b90e61b76aae8eb4922ff920434b4c454314fe11438c21565ec186a2ccd116161e6830b5093108625517bbce567e9ab87428044e610bc5c9cd4c9d3d4b59c3fa |
26 |
|
27 |
diff --git a/net-analyzer/netdata/netdata-1.32.0.ebuild b/net-analyzer/netdata/netdata-1.32.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..d1b0ffa89e2f |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/netdata/netdata-1.32.0.ebuild |
32 |
@@ -0,0 +1,152 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python{3_8,3_9} ) |
38 |
+ |
39 |
+inherit autotools fcaps linux-info python-single-r1 systemd |
40 |
+ |
41 |
+if [[ ${PV} == *9999 ]] ; then |
42 |
+ EGIT_REPO_URI="https://github.com/netdata/${PN}.git" |
43 |
+ inherit git-r3 |
44 |
+else |
45 |
+ SRC_URI="https://github.com/netdata/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ S="${WORKDIR}/${PN}-v${PV}" |
47 |
+ KEYWORDS="~amd64 ~ppc64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Linux real time system monitoring, done right!" |
51 |
+HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/" |
52 |
+ |
53 |
+LICENSE="GPL-3+ MIT BSD" |
54 |
+SLOT="0" |
55 |
+IUSE="caps cloud +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis +lto mongodb mysql nfacct nodejs postgres prometheus +python tor xen" |
56 |
+REQUIRED_USE=" |
57 |
+ mysql? ( python ) |
58 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
59 |
+ tor? ( python )" |
60 |
+ |
61 |
+# most unconditional dependencies are for plugins.d/charts.d.plugin: |
62 |
+RDEPEND=" |
63 |
+ acct-group/netdata |
64 |
+ acct-user/netdata |
65 |
+ app-misc/jq |
66 |
+ >=app-shells/bash-4:0 |
67 |
+ || ( |
68 |
+ net-analyzer/openbsd-netcat |
69 |
+ net-analyzer/netcat |
70 |
+ ) |
71 |
+ net-libs/libwebsockets |
72 |
+ net-misc/curl |
73 |
+ net-misc/wget |
74 |
+ sys-apps/util-linux |
75 |
+ virtual/awk |
76 |
+ caps? ( sys-libs/libcap ) |
77 |
+ cups? ( net-print/cups ) |
78 |
+ dbengine? ( |
79 |
+ app-arch/lz4 |
80 |
+ dev-libs/judy |
81 |
+ dev-libs/openssl:= |
82 |
+ ) |
83 |
+ dev-libs/libuv |
84 |
+ compression? ( sys-libs/zlib ) |
85 |
+ ipmi? ( sys-libs/freeipmi ) |
86 |
+ jsonc? ( dev-libs/json-c:= ) |
87 |
+ kinesis? ( dev-libs/aws-sdk-cpp[kinesis] ) |
88 |
+ mongodb? ( dev-libs/mongo-c-driver ) |
89 |
+ nfacct? ( |
90 |
+ net-firewall/nfacct |
91 |
+ net-libs/libmnl |
92 |
+ ) |
93 |
+ nodejs? ( net-libs/nodejs ) |
94 |
+ prometheus? ( |
95 |
+ dev-libs/protobuf:= |
96 |
+ app-arch/snappy |
97 |
+ ) |
98 |
+ python? ( |
99 |
+ ${PYTHON_DEPS} |
100 |
+ $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
101 |
+ mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_USEDEP}]') ) |
102 |
+ postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]') ) |
103 |
+ tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_USEDEP}]') ) |
104 |
+ ) |
105 |
+ xen? ( |
106 |
+ app-emulation/xen-tools |
107 |
+ dev-libs/yajl |
108 |
+ )" |
109 |
+DEPEND="${RDEPEND} |
110 |
+ virtual/pkgconfig" |
111 |
+ |
112 |
+FILECAPS=( |
113 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
114 |
+) |
115 |
+ |
116 |
+pkg_setup() { |
117 |
+ use python && python-single-r1_pkg_setup |
118 |
+ linux-info_pkg_setup |
119 |
+} |
120 |
+ |
121 |
+src_prepare() { |
122 |
+ default |
123 |
+ eautoreconf |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ econf \ |
128 |
+ --localstatedir="${EPREFIX}"/var \ |
129 |
+ --with-user=netdata \ |
130 |
+ $(use_enable cloud) \ |
131 |
+ $(use_with cloud aclk-ng) \ |
132 |
+ $(use_enable jsonc) \ |
133 |
+ $(use_enable cups plugin-cups) \ |
134 |
+ $(use_enable dbengine) \ |
135 |
+ $(use_enable nfacct plugin-nfacct) \ |
136 |
+ $(use_enable ipmi plugin-freeipmi) \ |
137 |
+ $(use_enable kinesis backend-kinesis) \ |
138 |
+ $(use_enable lto lto) \ |
139 |
+ $(use_enable mongodb backend-mongodb) \ |
140 |
+ $(use_enable prometheus backend-prometheus-remote-write) \ |
141 |
+ $(use_enable xen plugin-xenstat) \ |
142 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
143 |
+ $(use_with compression zlib) |
144 |
+} |
145 |
+ |
146 |
+src_compile() { |
147 |
+ emake clean |
148 |
+ default |
149 |
+} |
150 |
+ |
151 |
+src_install() { |
152 |
+ default |
153 |
+ |
154 |
+ rm -rf "${D}/var/cache" || die |
155 |
+ |
156 |
+ keepdir /var/log/netdata |
157 |
+ fowners -Rc netdata:netdata /var/log/netdata |
158 |
+ keepdir /var/lib/netdata |
159 |
+ keepdir /var/lib/netdata/registry |
160 |
+ fowners -Rc netdata:netdata /var/lib/netdata |
161 |
+ |
162 |
+ fowners -Rc root:netdata /usr/share/${PN} |
163 |
+ |
164 |
+ newinitd system/netdata-openrc ${PN} |
165 |
+ systemd_dounit system/netdata.service |
166 |
+ insinto /etc/netdata |
167 |
+ doins system/netdata.conf |
168 |
+} |
169 |
+ |
170 |
+pkg_postinst() { |
171 |
+ fcaps_pkg_postinst |
172 |
+ |
173 |
+ if use nfacct ; then |
174 |
+ fcaps 'cap_net_admin' 'usr/libexec/netdata/plugins.d/nfacct.plugin' |
175 |
+ fi |
176 |
+ |
177 |
+ if use xen ; then |
178 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' |
179 |
+ fi |
180 |
+ |
181 |
+ if use ipmi ; then |
182 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin' |
183 |
+ fi |
184 |
+} |