1 |
commit: 76a80a3953dcb014877e3390fcd9923de9c23469 |
2 |
Author: Craig Andrews <candrews <AT> integralblue <DOT> com> |
3 |
AuthorDate: Fri Jun 24 16:40:15 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 21:11:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76a80a39 |
7 |
|
8 |
net-analyzer/netdata: add ebuilds for versions 1.2.0 and 9999 |
9 |
|
10 |
Note that these ebuilds are based on the ones currently in upstream's git repository: |
11 |
https://github.com/firehol/netdata/blob/cd2deef34b42b8f1326493c2c40f71d2ebeaec24/netdata-9999.ebuild |
12 |
Except that the KSM messaging has been removed as it doesn't seem appropriate. |
13 |
|
14 |
Gentoo-bug: 586970 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/1736 |
16 |
|
17 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
18 |
|
19 |
net-analyzer/netdata/Manifest | 1 + |
20 |
net-analyzer/netdata/metadata.xml | 21 +++++++++ |
21 |
net-analyzer/netdata/netdata-1.2.0.ebuild | 77 +++++++++++++++++++++++++++++++ |
22 |
net-analyzer/netdata/netdata-9999.ebuild | 77 +++++++++++++++++++++++++++++++ |
23 |
4 files changed, 176 insertions(+) |
24 |
|
25 |
diff --git a/net-analyzer/netdata/Manifest b/net-analyzer/netdata/Manifest |
26 |
new file mode 100644 |
27 |
index 0000000..d69d88a |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/netdata/Manifest |
30 |
@@ -0,0 +1 @@ |
31 |
+DIST netdata-1.2.0.tar.xz 1254000 SHA256 5c1ff3fe0501b654cd92dbba3fe4c0fc125736b58d604340f138df80fb1de1ce SHA512 0c43e89c7cb52a5dde2aec13b06496ffb70fcb1952cf74156bd4400f3520b4136a94b5390077a4e5e3278a8e175dcc14505a456efafec5fdf0759af4846e03f4 WHIRLPOOL 211fabbecfd4b0ffe8f6fb5dbdc28cf08a743c4544e29dd500187547107500c1b42a95677d8de746cce367d4a59c17ff29328c47b0de65208004e6de65d63277 |
32 |
|
33 |
diff --git a/net-analyzer/netdata/metadata.xml b/net-analyzer/netdata/metadata.xml |
34 |
new file mode 100644 |
35 |
index 0000000..ca4b03c |
36 |
--- /dev/null |
37 |
+++ b/net-analyzer/netdata/metadata.xml |
38 |
@@ -0,0 +1,21 @@ |
39 |
+<?xml version="1.0" encoding="UTF-8"?> |
40 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
41 |
+<pkgmetadata> |
42 |
+ <maintainer type="person"> |
43 |
+ <email>candrews@××××××××××××.com</email> |
44 |
+ <name>Craig Andrews</name> |
45 |
+ <description>Proxied maintainer; set to assignee in all bugs</description> |
46 |
+ </maintainer> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>proxy-maint@g.o</email> |
49 |
+ <name>Proxy Maintainers</name> |
50 |
+ </maintainer> |
51 |
+ <use> |
52 |
+ <flag name="compression">Enable compression via zlib</flag> |
53 |
+ <flag name="nfacct">Enable the nfacct plugin</flag> |
54 |
+ <flag name="nodejs">Enable use of nodejs (which some plugins use)</flag> |
55 |
+ </use> |
56 |
+ <longdescription lang="en"> |
57 |
+ Linux real time system monitoring web interface |
58 |
+ </longdescription> |
59 |
+</pkgmetadata> |
60 |
|
61 |
diff --git a/net-analyzer/netdata/netdata-1.2.0.ebuild b/net-analyzer/netdata/netdata-1.2.0.ebuild |
62 |
new file mode 100644 |
63 |
index 0000000..93b70ba |
64 |
--- /dev/null |
65 |
+++ b/net-analyzer/netdata/netdata-1.2.0.ebuild |
66 |
@@ -0,0 +1,77 @@ |
67 |
+# Copyright 1999-2016 Gentoo Foundation |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+# $Id$ |
70 |
+ |
71 |
+EAPI=6 |
72 |
+ |
73 |
+inherit linux-info systemd user |
74 |
+ |
75 |
+if [[ ${PV} == "9999" ]] ; then |
76 |
+ EGIT_REPO_URI="git://github.com/firehol/${PN}.git" |
77 |
+ inherit git-r3 autotools |
78 |
+ SRC_URI="" |
79 |
+ KEYWORDS="" |
80 |
+else |
81 |
+ SRC_URI="https://firehol.org/download/${PN}/releases/v${PV}/${P}.tar.xz" |
82 |
+ KEYWORDS="~amd64 ~x86" |
83 |
+fi |
84 |
+ |
85 |
+DESCRIPTION="Linux real time system monitoring, done right!" |
86 |
+HOMEPAGE="https://github.com/firehol/netdata https://my-netdata.io/" |
87 |
+ |
88 |
+LICENSE="GPL-3+ MIT BSD" |
89 |
+SLOT="0" |
90 |
+IUSE="+compression nfacct nodejs" |
91 |
+ |
92 |
+# most unconditional dependencies are for plugins.d/charts.d.plugin: |
93 |
+RDEPEND=" |
94 |
+ >=app-shells/bash-4:0 |
95 |
+ net-misc/curl |
96 |
+ net-misc/wget |
97 |
+ virtual/awk |
98 |
+ compression? ( sys-libs/zlib ) |
99 |
+ nfacct? ( |
100 |
+ net-firewall/nfacct |
101 |
+ net-libs/libmnl |
102 |
+ ) |
103 |
+ nodejs? ( |
104 |
+ net-libs/nodejs |
105 |
+ )" |
106 |
+ |
107 |
+DEPEND="${RDEPEND} |
108 |
+ virtual/pkgconfig" |
109 |
+ |
110 |
+: ${NETDATA_USER:=netdata} |
111 |
+: ${NETDATA_GROUP:=netdata} |
112 |
+ |
113 |
+pkg_setup() { |
114 |
+ linux-info_pkg_setup |
115 |
+ |
116 |
+ enewgroup ${PN} |
117 |
+ enewuser ${PN} -1 -1 / ${PN} |
118 |
+} |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+ [[ ${PV} == "9999" ]] && eautoreconf |
123 |
+} |
124 |
+ |
125 |
+src_configure() { |
126 |
+ econf \ |
127 |
+ --localstatedir=/var \ |
128 |
+ --with-user=${NETDATA_USER} \ |
129 |
+ $(use_enable nfacct plugin-nfacct) \ |
130 |
+ $(use_with compression zlib) |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ default |
135 |
+ |
136 |
+ fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
137 |
+ fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/cache/netdata |
138 |
+ |
139 |
+ chown -Rc ${NETDATA_USER}:${NETDATA_GROUP} "${ED}"/usr/share/${PN} || die |
140 |
+ |
141 |
+ newinitd system/netdata-openrc ${PN} |
142 |
+ systemd_dounit system/netdata.service |
143 |
+} |
144 |
|
145 |
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild |
146 |
new file mode 100644 |
147 |
index 0000000..93b70ba |
148 |
--- /dev/null |
149 |
+++ b/net-analyzer/netdata/netdata-9999.ebuild |
150 |
@@ -0,0 +1,77 @@ |
151 |
+# Copyright 1999-2016 Gentoo Foundation |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+# $Id$ |
154 |
+ |
155 |
+EAPI=6 |
156 |
+ |
157 |
+inherit linux-info systemd user |
158 |
+ |
159 |
+if [[ ${PV} == "9999" ]] ; then |
160 |
+ EGIT_REPO_URI="git://github.com/firehol/${PN}.git" |
161 |
+ inherit git-r3 autotools |
162 |
+ SRC_URI="" |
163 |
+ KEYWORDS="" |
164 |
+else |
165 |
+ SRC_URI="https://firehol.org/download/${PN}/releases/v${PV}/${P}.tar.xz" |
166 |
+ KEYWORDS="~amd64 ~x86" |
167 |
+fi |
168 |
+ |
169 |
+DESCRIPTION="Linux real time system monitoring, done right!" |
170 |
+HOMEPAGE="https://github.com/firehol/netdata https://my-netdata.io/" |
171 |
+ |
172 |
+LICENSE="GPL-3+ MIT BSD" |
173 |
+SLOT="0" |
174 |
+IUSE="+compression nfacct nodejs" |
175 |
+ |
176 |
+# most unconditional dependencies are for plugins.d/charts.d.plugin: |
177 |
+RDEPEND=" |
178 |
+ >=app-shells/bash-4:0 |
179 |
+ net-misc/curl |
180 |
+ net-misc/wget |
181 |
+ virtual/awk |
182 |
+ compression? ( sys-libs/zlib ) |
183 |
+ nfacct? ( |
184 |
+ net-firewall/nfacct |
185 |
+ net-libs/libmnl |
186 |
+ ) |
187 |
+ nodejs? ( |
188 |
+ net-libs/nodejs |
189 |
+ )" |
190 |
+ |
191 |
+DEPEND="${RDEPEND} |
192 |
+ virtual/pkgconfig" |
193 |
+ |
194 |
+: ${NETDATA_USER:=netdata} |
195 |
+: ${NETDATA_GROUP:=netdata} |
196 |
+ |
197 |
+pkg_setup() { |
198 |
+ linux-info_pkg_setup |
199 |
+ |
200 |
+ enewgroup ${PN} |
201 |
+ enewuser ${PN} -1 -1 / ${PN} |
202 |
+} |
203 |
+ |
204 |
+src_prepare() { |
205 |
+ default |
206 |
+ [[ ${PV} == "9999" ]] && eautoreconf |
207 |
+} |
208 |
+ |
209 |
+src_configure() { |
210 |
+ econf \ |
211 |
+ --localstatedir=/var \ |
212 |
+ --with-user=${NETDATA_USER} \ |
213 |
+ $(use_enable nfacct plugin-nfacct) \ |
214 |
+ $(use_with compression zlib) |
215 |
+} |
216 |
+ |
217 |
+src_install() { |
218 |
+ default |
219 |
+ |
220 |
+ fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
221 |
+ fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/cache/netdata |
222 |
+ |
223 |
+ chown -Rc ${NETDATA_USER}:${NETDATA_GROUP} "${ED}"/usr/share/${PN} || die |
224 |
+ |
225 |
+ newinitd system/netdata-openrc ${PN} |
226 |
+ systemd_dounit system/netdata.service |
227 |
+} |