1 |
commit: 998a49321f0eef08740861c5ac870a13370b980d |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 21 14:00:04 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 21 14:03:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=998a4932 |
7 |
|
8 |
net-analyzer/netdata: 1.20.0 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/netdata/Manifest | 1 + |
14 |
net-analyzer/netdata/netdata-1.20.0.ebuild | 139 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 140 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 8b9a9b8b17c..c2993cb9644 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST netdata-1.19.0.tar.gz 3443251 BLAKE2B 8e18a661367850e712a75c1c11b661a977bf77b48369e0e36763a74f96b3726c523093a82eb6f94257c02e754d900cb675d501fda824ceb94eef31dfa30e5712 SHA512 026ae159d8ed52a30e406c110c2732e54e50f070865ba3e430df73e4df40387105053e750ca6029cfbc7f40a2c05b7fb6ba4e3e4a7070822c7eec4c1a4712aea |
23 |
+DIST netdata-1.20.0.tar.gz 3598521 BLAKE2B 3837ef2beb1b275af89e5927362ab0b83f13cc1227d156f742f4c29ecc9f79de212987c13d6707ac785abac7ae5ce979333a50d5c521b0f019f8cbdf88f831a1 SHA512 ada398cdccf1b1b4dbac5b24d4539f86aafb964458aa4f3bdfac336362504aab6d74b7f2f12bad18b62a44bb62d1a2a8ddd0c2ed80a7c16bc388854d4210bcb6 |
24 |
|
25 |
diff --git a/net-analyzer/netdata/netdata-1.20.0.ebuild b/net-analyzer/netdata/netdata-1.20.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b363a712ee4 |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/netdata/netdata-1.20.0.ebuild |
30 |
@@ -0,0 +1,139 @@ |
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} ) |
36 |
+ |
37 |
+inherit autotools fcaps linux-info python-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 |
+ dev-libs/libuv |
76 |
+ app-arch/lz4 |
77 |
+ dev-libs/judy |
78 |
+ dev-libs/openssl:= |
79 |
+ ) |
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 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
97 |
+ mysql? ( |
98 |
+ || ( |
99 |
+ dev-python/mysqlclient[${PYTHON_USEDEP}] |
100 |
+ dev-python/mysql-python[${PYTHON_USEDEP}] |
101 |
+ ) |
102 |
+ ) |
103 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
104 |
+ tor? ( net-libs/stem[${PYTHON_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 |
+ 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 |
+ --enable-ebpf \ |
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 mongodb backend-mongodb) \ |
138 |
+ $(use_enable prometheus backend-prometheus-remote-write) \ |
139 |
+ $(use_enable xen plugin-xenstat) \ |
140 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
141 |
+ $(use_with compression zlib) |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ default |
146 |
+ |
147 |
+ rm -rf "${D}/var/cache" || die |
148 |
+ |
149 |
+ keepdir /var/log/netdata |
150 |
+ fowners -Rc netdata:netdata /var/log/netdata |
151 |
+ keepdir /var/lib/netdata |
152 |
+ fowners -Rc netdata:netdata /var/lib/netdata |
153 |
+ keepdir /var/lib/netdata/registry |
154 |
+ |
155 |
+ fowners -Rc root:netdata /usr/share/${PN} |
156 |
+ |
157 |
+ newinitd system/netdata-openrc ${PN} |
158 |
+ systemd_dounit system/netdata.service |
159 |
+ insinto /etc/netdata |
160 |
+ doins system/netdata.conf |
161 |
+} |
162 |
+ |
163 |
+pkg_postinst() { |
164 |
+ fcaps_pkg_postinst |
165 |
+ |
166 |
+ if use xen ; then |
167 |
+ fcaps 'cap_dac_override' 'usr/libexec/netdata/plugins.d/xenstat.plugin' |
168 |
+ fi |
169 |
+} |