1 |
commit: e481c46404057271a8ba0c2c708aaa7f984af9f1 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 11 14:23:51 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 11 14:26:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e481c464 |
7 |
|
8 |
net-analyzer/netdata: 1.22.0 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/netdata/Manifest | 1 + |
14 |
net-analyzer/netdata/netdata-1.22.0.ebuild | 140 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 141 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 04dde0573f1..cdb7f3a05f4 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST netdata-1.21.1.tar.gz 3748090 BLAKE2B 5cc8dd47b768838eecc7c8af35a82548dc5bb16acb0a88c17ee1254f86ca9b63a5108bce9205c000283b817478749d963b69c65e3bdc8e2fadecc9a1826a7f2e SHA512 66d2e0cb977275250fd7b51e5156957a4506ddba586de5fe796459ea241cbbed7013fd4cf9d7acf6666407352fb34e3b962a2d01565a9cb982c89c76b7cd79b9 |
23 |
+DIST netdata-1.22.0.tar.gz 3786121 BLAKE2B ad34bcdb94cf44f8de154bf53b2e4ecbecee43c6cef2e5337c0fa6bd08b0feb41c25ee96e51fc6c54d72909559e5ac822b44153daa71255487bb0713ce6eca1d SHA512 3bf239c3e950195ef7b8b43f1c17f2cc94f9257a4f21665629f7b518cc6fcef3b0837743254efd03323408b39e2afa9533487147fa30c8f015705c391aa543f3 |
24 |
|
25 |
diff --git a/net-analyzer/netdata/netdata-1.22.0.ebuild b/net-analyzer/netdata/netdata-1.22.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2682b937ff4 |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/netdata/netdata-1.22.0.ebuild |
30 |
@@ -0,0 +1,140 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=( python{3_6,3_7,3_8} ) |
36 |
+ |
37 |
+inherit autotools fcaps linux-info python-single-r1 systemd |
38 |
+ |
39 |
+if [[ ${PV} == *9999 ]] ; then |
40 |
+ EGIT_REPO_URI="https://github.com/netdata/${PN}.git" |
41 |
+ inherit git-r3 |
42 |
+else |
43 |
+ SRC_URI="https://github.com/netdata/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ KEYWORDS="~amd64 ~x86" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="Linux real time system monitoring, done right!" |
48 |
+HOMEPAGE="https://github.com/netdata/netdata https://my-netdata.io/" |
49 |
+ |
50 |
+LICENSE="GPL-3+ MIT BSD" |
51 |
+SLOT="0" |
52 |
+IUSE="caps +compression cpu_flags_x86_sse2 cups +dbengine ipmi +jsonc kinesis mongodb mysql nfacct nodejs postgres prometheus +python tor xen" |
53 |
+REQUIRED_USE=" |
54 |
+ mysql? ( python ) |
55 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
56 |
+ tor? ( python )" |
57 |
+ |
58 |
+# most unconditional dependencies are for plugins.d/charts.d.plugin: |
59 |
+RDEPEND=" |
60 |
+ acct-group/netdata |
61 |
+ acct-user/netdata |
62 |
+ app-misc/jq |
63 |
+ >=app-shells/bash-4:0 |
64 |
+ || ( |
65 |
+ net-analyzer/openbsd-netcat |
66 |
+ net-analyzer/netcat |
67 |
+ ) |
68 |
+ net-misc/curl |
69 |
+ net-misc/wget |
70 |
+ sys-apps/util-linux |
71 |
+ virtual/awk |
72 |
+ caps? ( sys-libs/libcap ) |
73 |
+ cups? ( net-print/cups ) |
74 |
+ dbengine? ( |
75 |
+ app-arch/lz4 |
76 |
+ dev-libs/judy |
77 |
+ dev-libs/openssl:= |
78 |
+ ) |
79 |
+ dev-libs/libuv |
80 |
+ compression? ( sys-libs/zlib ) |
81 |
+ ipmi? ( sys-libs/freeipmi ) |
82 |
+ jsonc? ( dev-libs/json-c ) |
83 |
+ kinesis? ( dev-libs/aws-sdk-cpp[kinesis] ) |
84 |
+ mongodb? ( dev-libs/mongo-c-driver ) |
85 |
+ nfacct? ( |
86 |
+ net-firewall/nfacct |
87 |
+ net-libs/libmnl |
88 |
+ ) |
89 |
+ nodejs? ( net-libs/nodejs ) |
90 |
+ prometheus? ( |
91 |
+ dev-libs/protobuf:= |
92 |
+ app-arch/snappy |
93 |
+ ) |
94 |
+ python? ( |
95 |
+ ${PYTHON_DEPS} |
96 |
+ $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_MULTI_USEDEP}]') |
97 |
+ mysql? ( |
98 |
+ || ( |
99 |
+ $(python_gen_cond_dep 'dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}]') |
100 |
+ $(python_gen_cond_dep 'dev-python/mysql-python[${PYTHON_MULTI_USEDEP}]') |
101 |
+ ) |
102 |
+ ) |
103 |
+ postgres? ( $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}]') ) |
104 |
+ tor? ( $(python_gen_cond_dep 'net-libs/stem[${PYTHON_MULTI_USEDEP}]') ) |
105 |
+ ) |
106 |
+ xen? ( |
107 |
+ app-emulation/xen-tools |
108 |
+ dev-libs/yajl |
109 |
+ )" |
110 |
+DEPEND="${RDEPEND} |
111 |
+ virtual/pkgconfig" |
112 |
+ |
113 |
+FILECAPS=( |
114 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
115 |
+) |
116 |
+ |
117 |
+pkg_setup() { |
118 |
+ use python && python-single-r1_pkg_setup |
119 |
+ linux-info_pkg_setup |
120 |
+} |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ default |
124 |
+ eautoreconf |
125 |
+} |
126 |
+ |
127 |
+src_configure() { |
128 |
+ econf \ |
129 |
+ --localstatedir="${EPREFIX}"/var \ |
130 |
+ --with-user=netdata \ |
131 |
+ --disable-cloud \ # https://github.com/netdata/netdata/issues/8961 |
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 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 |
+} |