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