1 |
commit: a1512c363ef027c58a61168a853f8a5eb9755a9e |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 3 01:23:29 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 3 01:28:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1512c36 |
7 |
|
8 |
net-analyzer/netdata: 1.17.0 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/netdata/Manifest | 1 + |
14 |
net-analyzer/netdata/netdata-1.17.0.ebuild | 132 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 133 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 19a178e2eab..d38ef564807 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST netdata-1.14.0.tar.gz 3116199 BLAKE2B 366fdd7fc94799f170a2957e26fadfacd0cc7 |
22 |
DIST netdata-1.15.0.tar.gz 3175237 BLAKE2B 75f4c6f0dba53e6ff01fb98767e266ede8a8b8b965c484a03d5f72a55b39d55b150ada7784a971897a365ff9ebeb9bb66cadc72d4ce33dbc1465a758321d4104 SHA512 34b783d3b550c8ac5dc22e08f30fe87de65a5cd97008e271d9328d09b59620a6807ca3daa81a2e49d7ddf1c015f868b21f4118700b2630dcb78c4f9feda3fe4d |
23 |
DIST netdata-1.16.0.tar.gz 3233403 BLAKE2B 5e51722f9f11171a38231afd918a319c18fb7c95d5605a3fe73616af955b50036d2db7729494e8cc08d95a0bd11fb0259abb50d5f4da979f977b734778b16678 SHA512 132e8c0c57798d69ca8c3f360c2d55f1b8a46deaeacbb59979bc5bb5c52c9eaf02db7f7a166848787aae5807122d86f48fa86c0b9211ed0fdfd92889d1d8e2e4 |
24 |
DIST netdata-1.16.1.tar.gz 3286225 BLAKE2B 4411baa2da9282173abef872dce02bc0a3f1b1e46a449648a0e09f35db27f2864bc63caf155f84e550ea8cff60c0c0d887a9e7043ac138a45a8170805059fed5 SHA512 f16dad4395b3cd2c437e03f98a2e0945fabd1cabd8b0f294d83e2fbd429955fe1cbe92668f9d3160d1c56ea744acc3908c8df91d0b3bb0623854361878317520 |
25 |
+DIST netdata-1.17.0.tar.gz 3313545 BLAKE2B 4225ed7e53d9d79d4e0e5e6c4c5408a78bcb1ce05a5d20925c231d55131e13ef3426586962c85f814073fad389495ac010b6843288865a44d8a0f22e55eab065 SHA512 fb1a2295868df3a161cc777dddece3bd8c6a2338a75ba72d6eaa7ca6914a1661cb056680229ad67d3059081309130f60eeff98d8e60ab3a03622f5c1947d1b08 |
26 |
|
27 |
diff --git a/net-analyzer/netdata/netdata-1.17.0.ebuild b/net-analyzer/netdata/netdata-1.17.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..b12cc034edf |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/netdata/netdata-1.17.0.ebuild |
32 |
@@ -0,0 +1,132 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
38 |
+ |
39 |
+inherit autotools fcaps linux-info python-r1 systemd user |
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 mysql nfacct nodejs postgres +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 |
+ app-misc/jq |
63 |
+ >=app-shells/bash-4:0 |
64 |
+ || ( |
65 |
+ net-analyzer/openbsd-netcat |
66 |
+ net-analyzer/netcat |
67 |
+ ) |
68 |
+ net-analyzer/tcpdump |
69 |
+ net-analyzer/traceroute |
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 |
+ dev-libs/libuv |
78 |
+ app-arch/lz4 |
79 |
+ dev-libs/judy |
80 |
+ dev-libs/openssl:= |
81 |
+ ) |
82 |
+ compression? ( sys-libs/zlib ) |
83 |
+ ipmi? ( sys-libs/freeipmi ) |
84 |
+ nfacct? ( |
85 |
+ net-firewall/nfacct |
86 |
+ net-libs/libmnl |
87 |
+ ) |
88 |
+ nodejs? ( net-libs/nodejs ) |
89 |
+ python? ( |
90 |
+ ${PYTHON_DEPS} |
91 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
92 |
+ mysql? ( |
93 |
+ || ( |
94 |
+ dev-python/mysqlclient[${PYTHON_USEDEP}] |
95 |
+ dev-python/mysql-python[${PYTHON_USEDEP}] |
96 |
+ ) |
97 |
+ ) |
98 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
99 |
+ tor? ( net-libs/stem[${PYTHON_USEDEP}] ) |
100 |
+ ) |
101 |
+ xen? ( |
102 |
+ app-emulation/xen-tools |
103 |
+ dev-libs/yajl |
104 |
+ )" |
105 |
+DEPEND="${RDEPEND} |
106 |
+ virtual/pkgconfig" |
107 |
+ |
108 |
+: ${NETDATA_USER:=netdata} |
109 |
+: ${NETDATA_GROUP:=netdata} |
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 |
+ linux-info_pkg_setup |
117 |
+ |
118 |
+ enewgroup ${PN} |
119 |
+ enewuser ${PN} -1 -1 / ${PN} |
120 |
+} |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ default |
124 |
+ eautoreconf |
125 |
+} |
126 |
+ |
127 |
+src_configure() { |
128 |
+ econf \ |
129 |
+ --localstatedir="${EPREFIX}"/var \ |
130 |
+ --with-user=${NETDATA_USER} \ |
131 |
+ --disable-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 xen plugin-xenstat) \ |
137 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
138 |
+ $(use_with compression zlib) |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ default |
143 |
+ |
144 |
+ rm -rf "${D}/var/cache" || die |
145 |
+ |
146 |
+ # Remove unneeded .keep files |
147 |
+ find "${ED}" -name ".keep" -delete || die |
148 |
+ |
149 |
+ fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
150 |
+ keepdir /var/log/netdata |
151 |
+ fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata |
152 |
+ keepdir /var/lib/netdata |
153 |
+ keepdir /var/lib/netdata/registry |
154 |
+ |
155 |
+ fowners -Rc root:${NETDATA_GROUP} /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 |
+ echo "CONFIG_PROTECT=\"${EPREFIX}/usr/$(get_libdir)/netdata/conf.d\"" > 99netdata |
163 |
+ doenvd 99netdata |
164 |
+} |