1 |
commit: 7a8350b8082b53ef557cc8e0e812f055a1ffe080 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 19:36:38 2022 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 19:36:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a8350b8 |
7 |
|
8 |
net-analyzer/netdata: add 1.37.0 |
9 |
|
10 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/netdata/Manifest | 1 + |
13 |
net-analyzer/netdata/netdata-1.37.0.ebuild | 159 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 160 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
17 |
index a20cda077200..6b863e89dd9b 100644 |
18 |
--- a/net-analyzer/netdata/Manifest |
19 |
+++ b/net-analyzer/netdata/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST netdata-1.35.1.tar.gz 22335562 BLAKE2B a715f26f1318f01ce45266bbc78ada5ec2e3516f7ff2a6fda77829433398986bc564b377362097ea7c2595ac01911a817be124c9f0ba560dd00ae5001a080da7 SHA512 43cbf099841fe2547b7de56610f811e55fdf2e9af3dc18fde818e09de1125a7f8d57f6a16f2dee8ea4b9e6f2683959549810a1ea7f8f7b5007eb7069bfddb477 |
22 |
DIST netdata-1.36.0.tar.gz 24794657 BLAKE2B f3230f5c279a5a203f9245a1d74f254961cafe060d285fcd63f968c5f33cd2c4393288c44262eb12665c6471d757d65a9a2406c7d80997736ada6189ba1c8450 SHA512 1748c5f6ea392b6cfc6b761632bc632422fb6910f53fb26a796003cdc0048f28ab550daa0658a6d5de5fec65b0a5aae8f44f68ec65c19f06b11eda6fd337c8d4 |
23 |
DIST netdata-1.36.1.tar.gz 24795841 BLAKE2B e58ca0a4ffb48169833a412ca234e6d1771f5bc179010bd4ee5f597768e63c147e1d0dfd65f52579901ad42760a98de74be9417d6cf6b3a150683551399927ab SHA512 2ff01c816dbdd975450a7cebd292d9a1c6bf1822aa6efb56b846a90e5a01d1faac898e1a87b155fd6fa20f26d098e1d80042b12c0ff22b05260e14f3f552546d |
24 |
+DIST netdata-1.37.0.tar.gz 25151327 BLAKE2B 7e83df21e50d721d7e8a226fbc4470972393ab086fa575298b36f5699dfa4fffa406ce8a532661b1adfb7b5755e69c227f85f7c36e96f3cc585004082c25eda2 SHA512 7234d8b414df6674e612718085f446b1321833772d2d28e01da13f1d296b772e5dc73bf39495ab9a8db7f3118f3053000c16d6b17fe2a28e8340cef0d208d4bf |
25 |
|
26 |
diff --git a/net-analyzer/netdata/netdata-1.37.0.ebuild b/net-analyzer/netdata/netdata-1.37.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..555475886149 |
29 |
--- /dev/null |
30 |
+++ b/net-analyzer/netdata/netdata-1.37.0.ebuild |
31 |
@@ -0,0 +1,159 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+PYTHON_COMPAT=( python{3_8,3_9,3_10} ) |
37 |
+ |
38 |
+inherit autotools fcaps flag-o-matic linux-info python-single-r1 systemd toolchain-funcs |
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}/releases/download/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ S="${WORKDIR}/${PN}-v${PV}" |
46 |
+ KEYWORDS="~amd64 ~ppc64 ~riscv ~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 cloud +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 |
+ cloud? ( dev-libs/protobuf:= ) |
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 |
+ app-arch/snappy:= |
96 |
+ dev-libs/protobuf:= |
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 |
+ if use ppc64; then |
128 |
+ # bundled dlib does not support vsx on big-endian |
129 |
+ # https://github.com/davisking/dlib/issues/397 |
130 |
+ [[ $(tc-endian) == big ]] && append-flags -mno-vsx |
131 |
+ fi |
132 |
+ |
133 |
+ econf \ |
134 |
+ --localstatedir="${EPREFIX}"/var \ |
135 |
+ --with-user=netdata \ |
136 |
+ --without-bundled-protobuf \ |
137 |
+ $(use_enable cloud) \ |
138 |
+ $(use_enable jsonc) \ |
139 |
+ $(use_enable cups plugin-cups) \ |
140 |
+ $(use_enable dbengine) \ |
141 |
+ $(use_enable nfacct plugin-nfacct) \ |
142 |
+ $(use_enable ipmi plugin-freeipmi) \ |
143 |
+ $(use_enable kinesis exporting-kinesis) \ |
144 |
+ $(use_enable lto lto) \ |
145 |
+ $(use_enable mongodb exporting-mongodb) \ |
146 |
+ $(use_enable prometheus exporting-prometheus-remote-write) \ |
147 |
+ $(use_enable xen plugin-xenstat) \ |
148 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
149 |
+ $(use_with compression zlib) |
150 |
+} |
151 |
+ |
152 |
+src_compile() { |
153 |
+ emake clean |
154 |
+ default |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ default |
159 |
+ |
160 |
+ rm -rf "${D}/var/cache" || die |
161 |
+ |
162 |
+ keepdir /var/log/netdata |
163 |
+ fowners -Rc netdata:netdata /var/log/netdata |
164 |
+ keepdir /var/lib/netdata |
165 |
+ keepdir /var/lib/netdata/registry |
166 |
+ fowners -Rc netdata:netdata /var/lib/netdata |
167 |
+ |
168 |
+ fowners -Rc root:netdata /usr/share/${PN} |
169 |
+ |
170 |
+ newinitd system/netdata-openrc ${PN} |
171 |
+ systemd_dounit system/netdata.service |
172 |
+ insinto /etc/netdata |
173 |
+ doins system/netdata.conf |
174 |
+} |
175 |
+ |
176 |
+pkg_postinst() { |
177 |
+ fcaps_pkg_postinst |
178 |
+ |
179 |
+ if use nfacct ; then |
180 |
+ fcaps 'cap_net_admin' 'usr/libexec/netdata/plugins.d/nfacct.plugin' |
181 |
+ fi |
182 |
+ |
183 |
+ if use xen ; then |
184 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' |
185 |
+ fi |
186 |
+ |
187 |
+ if use ipmi ; then |
188 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/freeipmi.plugin' |
189 |
+ fi |
190 |
+} |