1 |
commit: c8c877f3dca0668d050722ccb8367653b0b9a1e1 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 23 14:26:40 2021 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 23 14:27:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8c877f3 |
7 |
|
8 |
net-analyzer/netdata: 1.29.3 version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.15, 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.3.ebuild | 138 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 139 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 7e7511f99a0..7b5fbe5cff2 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -1,3 +1,4 @@ |
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 |
DIST netdata-1.29.2.tar.gz 6234502 BLAKE2B b34314114c41e1fd80cfb1c495f34b2dbcc5449189d12215c2af4a5c543fb0be9314842430da75547db0bc5f1027fec313703cbc98d21435807d2105d6761372 SHA512 3046fa99725c9ec9b5cac695d2ab66dbad999fc7b1242722592521b0e270fbb32756a7de4aac9ac8fa4ef5dbf455034f7fdbe84f8e281c12471de61e79a0eacd |
25 |
+DIST netdata-1.29.3.tar.gz 6234406 BLAKE2B 975b27e8cb66c174d7cf01de0e5b76d57b0eac8005d5da19aa308df530edd8fcacc97b1ba5956ac38ffb9fcd55b2c58f4a1dec3bc691a5b898e886de19b365df SHA512 67e661328d76b3b9d4837e5acae16937300f1b91bc37bafc3ee606aeda88d2775c606126b9f072c682a1b24f5610b7993fedb808fd9032b240702d12cf063b54 |
26 |
|
27 |
diff --git a/net-analyzer/netdata/netdata-1.29.3.ebuild b/net-analyzer/netdata/netdata-1.29.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8d690b9c053 |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/netdata/netdata-1.29.3.ebuild |
32 |
@@ -0,0 +1,138 @@ |
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_7,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}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ KEYWORDS="~amd64 ~x86" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Linux real time system monitoring, done right!" |
50 |
+HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/" |
51 |
+ |
52 |
+LICENSE="GPL-3+ MIT BSD" |
53 |
+SLOT="0" |
54 |
+IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis +lto mongodb mysql nfacct nodejs postgres prometheus +python tor xen" |
55 |
+REQUIRED_USE=" |
56 |
+ mysql? ( python ) |
57 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
58 |
+ tor? ( python )" |
59 |
+ |
60 |
+# most unconditional dependencies are for plugins.d/charts.d.plugin: |
61 |
+RDEPEND=" |
62 |
+ acct-group/netdata |
63 |
+ acct-user/netdata |
64 |
+ app-misc/jq |
65 |
+ >=app-shells/bash-4:0 |
66 |
+ || ( |
67 |
+ net-analyzer/openbsd-netcat |
68 |
+ net-analyzer/netcat |
69 |
+ ) |
70 |
+ net-libs/libwebsockets |
71 |
+ net-misc/curl |
72 |
+ net-misc/wget |
73 |
+ sys-apps/util-linux |
74 |
+ virtual/awk |
75 |
+ caps? ( sys-libs/libcap ) |
76 |
+ cups? ( net-print/cups ) |
77 |
+ dbengine? ( |
78 |
+ app-arch/lz4 |
79 |
+ dev-libs/judy |
80 |
+ dev-libs/openssl:= |
81 |
+ ) |
82 |
+ dev-libs/libuv |
83 |
+ compression? ( sys-libs/zlib ) |
84 |
+ ipmi? ( sys-libs/freeipmi ) |
85 |
+ jsonc? ( dev-libs/json-c:= ) |
86 |
+ kinesis? ( dev-libs/aws-sdk-cpp[kinesis] ) |
87 |
+ mongodb? ( dev-libs/mongo-c-driver ) |
88 |
+ nfacct? ( |
89 |
+ net-firewall/nfacct |
90 |
+ net-libs/libmnl |
91 |
+ ) |
92 |
+ nodejs? ( net-libs/nodejs ) |
93 |
+ prometheus? ( |
94 |
+ dev-libs/protobuf:= |
95 |
+ app-arch/snappy |
96 |
+ ) |
97 |
+ python? ( |
98 |
+ ${PYTHON_DEPS} |
99 |
+ $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_MULTI_USEDEP}]') |
100 |
+ mysql? ( $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}]') ) |
101 |
+ postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}]') ) |
102 |
+ tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_MULTI_USEDEP}]') ) |
103 |
+ ) |
104 |
+ xen? ( |
105 |
+ app-emulation/xen-tools |
106 |
+ dev-libs/yajl |
107 |
+ )" |
108 |
+DEPEND="${RDEPEND} |
109 |
+ virtual/pkgconfig" |
110 |
+ |
111 |
+FILECAPS=( |
112 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
113 |
+) |
114 |
+ |
115 |
+pkg_setup() { |
116 |
+ use python && python-single-r1_pkg_setup |
117 |
+ linux-info_pkg_setup |
118 |
+} |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+ eautoreconf |
123 |
+} |
124 |
+ |
125 |
+src_configure() { |
126 |
+ # --disable-cloud: https://github.com/netdata/netdata/issues/8961 |
127 |
+ econf \ |
128 |
+ --localstatedir="${EPREFIX}"/var \ |
129 |
+ --with-user=netdata \ |
130 |
+ --disable-cloud \ |
131 |
+ $(use_enable jsonc) \ |
132 |
+ $(use_enable cups plugin-cups) \ |
133 |
+ $(use_enable dbengine) \ |
134 |
+ $(use_enable nfacct plugin-nfacct) \ |
135 |
+ $(use_enable ipmi plugin-freeipmi) \ |
136 |
+ $(use_enable kinesis backend-kinesis) \ |
137 |
+ $(use_enable lto lto) \ |
138 |
+ $(use_enable mongodb backend-mongodb) \ |
139 |
+ $(use_enable prometheus backend-prometheus-remote-write) \ |
140 |
+ $(use_enable xen plugin-xenstat) \ |
141 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
142 |
+ $(use_with compression zlib) |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ default |
147 |
+ |
148 |
+ rm -rf "${D}/var/cache" || die |
149 |
+ |
150 |
+ keepdir /var/log/netdata |
151 |
+ fowners -Rc netdata:netdata /var/log/netdata |
152 |
+ keepdir /var/lib/netdata |
153 |
+ keepdir /var/lib/netdata/registry |
154 |
+ fowners -Rc netdata:netdata /var/lib/netdata |
155 |
+ |
156 |
+ fowners -Rc root:netdata /usr/share/${PN} |
157 |
+ |
158 |
+ newinitd system/netdata-openrc ${PN} |
159 |
+ systemd_dounit system/netdata.service |
160 |
+ insinto /etc/netdata |
161 |
+ doins system/netdata.conf |
162 |
+} |
163 |
+ |
164 |
+pkg_postinst() { |
165 |
+ fcaps_pkg_postinst |
166 |
+ |
167 |
+ if use xen ; then |
168 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' |
169 |
+ fi |
170 |
+} |