1 |
commit: 9ae37339478a50c8e5604912a8e4c818d59acb08 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 1 14:28:36 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 1 14:31:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae37339 |
7 |
|
8 |
net-analyzer/netdata: 1.12.2 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/netdata/Manifest | 1 + |
14 |
net-analyzer/netdata/netdata-1.12.2.ebuild | 114 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 115 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
18 |
index 6dc3484b932..ad4d47f885e 100644 |
19 |
--- a/net-analyzer/netdata/Manifest |
20 |
+++ b/net-analyzer/netdata/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST netdata-1.11.0.tar.gz 2845399 BLAKE2B e80faa3eb584ec4d617d223463a65f680e199 |
22 |
DIST netdata-1.11.1.tar.gz 3050309 BLAKE2B 9fc5498362f30ff34744c3d5ecd882abbd234240b718524aae2a61224f2facdf448017cb6e6db57acd2b008021ddf020ce47efb97409f6b9580d9d2cfbdff531 SHA512 92c0b848ada9edbb3d0c2d432a2f9cfb8b47c496827fc80496c18de8b53698bb5fe8bdcb1909d0931cb9cb2b313ca1e4dec7538f03a4bc0da634cb4d495abf88 |
23 |
DIST netdata-1.12.0.tar.gz 3062129 BLAKE2B 3e4f555ba26b355edea234ea5a6a9a5cd387631b4be839e86a598bc21ea83ce9ad608e8987944dfb32fcc82026f12481bdd8ab00ec4a633c9430bbe9e573ac0d SHA512 b3ab65fced2e97167112e537e0753263480d121b7f8bfcc2138dcc7ea6aef64a3060c047d15d5acae5f465894307bbe42d744ca00889f9762fc509fb18eaf2da |
24 |
DIST netdata-1.12.1.tar.gz 3076284 BLAKE2B 0bb8bd5f71d90b157f7ab46398f2b8106c908948b5ce8ce95b7f9ddb4f774c4c163353ec2644a578472a0245abe735603c4faa73de52d893e71f3ab9dd3169ec SHA512 0cef2ac2648390c2ab2a92befac628cc68bbc98c5c3b28c48cbeac668283128b37156f898bc379ccf7b66e5b036ed917bd6678aaeeb37e4e72cfe6ae84506ab4 |
25 |
+DIST netdata-1.12.2.tar.gz 3085210 BLAKE2B ce4edbdb1edc2346daed0813b8705b385a877eaa73b34fecf229d1ed618ec58d66e96654af3d568cddcbbbf2e6bb11169afd28789bdfd3e5bc1bb00d63865b26 SHA512 d7105712689d9e5813f7fd10180ede894a8a0374280411ba5e571e332744a82081b4cf0f36f16e48a9527afea781e8bd279dda5cc552fbbee647392695fd08e4 |
26 |
|
27 |
diff --git a/net-analyzer/netdata/netdata-1.12.2.ebuild b/net-analyzer/netdata/netdata-1.12.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..aed65af7396 |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/netdata/netdata-1.12.2.ebuild |
32 |
@@ -0,0 +1,114 @@ |
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_4,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 ipmi mysql nfacct nodejs postgres +python tor" |
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-shells/bash-4:0 |
63 |
+ || ( |
64 |
+ net-analyzer/openbsd-netcat |
65 |
+ net-analyzer/netcat6 |
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 |
+ compression? ( sys-libs/zlib ) |
76 |
+ ipmi? ( sys-libs/freeipmi ) |
77 |
+ nfacct? ( |
78 |
+ net-firewall/nfacct |
79 |
+ net-libs/libmnl |
80 |
+ ) |
81 |
+ nodejs? ( net-libs/nodejs ) |
82 |
+ python? ( |
83 |
+ ${PYTHON_DEPS} |
84 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
85 |
+ mysql? ( |
86 |
+ || ( |
87 |
+ dev-python/mysqlclient[${PYTHON_USEDEP}] |
88 |
+ dev-python/mysql-python[${PYTHON_USEDEP}] |
89 |
+ ) |
90 |
+ ) |
91 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
92 |
+ tor? ( net-libs/stem[${PYTHON_USEDEP}] ) |
93 |
+ )" |
94 |
+DEPEND="${RDEPEND} |
95 |
+ virtual/pkgconfig" |
96 |
+ |
97 |
+: ${NETDATA_USER:=netdata} |
98 |
+: ${NETDATA_GROUP:=netdata} |
99 |
+ |
100 |
+FILECAPS=( |
101 |
+ 'cap_dac_read_search,cap_sys_ptrace+ep' 'usr/libexec/netdata/plugins.d/apps.plugin' |
102 |
+) |
103 |
+ |
104 |
+pkg_setup() { |
105 |
+ linux-info_pkg_setup |
106 |
+ |
107 |
+ enewgroup ${PN} |
108 |
+ enewuser ${PN} -1 -1 / ${PN} |
109 |
+} |
110 |
+ |
111 |
+src_prepare() { |
112 |
+ default |
113 |
+ eautoreconf |
114 |
+} |
115 |
+ |
116 |
+src_configure() { |
117 |
+ econf \ |
118 |
+ --localstatedir="${EPREFIX}"/var \ |
119 |
+ --with-user=${NETDATA_USER} \ |
120 |
+ $(use_enable nfacct plugin-nfacct) \ |
121 |
+ $(use_enable ipmi plugin-freeipmi) \ |
122 |
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \ |
123 |
+ $(use_with compression zlib) |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ default |
128 |
+ |
129 |
+ rm -rf "${D}/var/cache" || die |
130 |
+ |
131 |
+ # Remove unneeded .keep files |
132 |
+ find "${ED}" -name ".keep" -delete || die |
133 |
+ |
134 |
+ fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
135 |
+ keepdir /var/log/netdata |
136 |
+ fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata |
137 |
+ keepdir /var/lib/netdata |
138 |
+ keepdir /var/lib/netdata/registry |
139 |
+ |
140 |
+ fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN} |
141 |
+ |
142 |
+ newinitd system/netdata-openrc ${PN} |
143 |
+ systemd_dounit system/netdata.service |
144 |
+ insinto /etc/netdata |
145 |
+ doins system/netdata.conf |
146 |
+} |