1 |
commit: da9651ba272ea7f9606604929ad8bd9d45a8f68c |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 25 15:08:14 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 30 07:25:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da9651ba |
7 |
|
8 |
www-apps/kibana-bin: bump to 7.12.0 |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
www-apps/kibana-bin/Manifest | 1 + |
14 |
www-apps/kibana-bin/kibana-bin-7.12.0.ebuild | 93 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest |
18 |
index a8c6fc4d2c9..a5fcfb8150a 100644 |
19 |
--- a/www-apps/kibana-bin/Manifest |
20 |
+++ b/www-apps/kibana-bin/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST kibana-6.8.13-linux-x86_64.tar.gz 188072148 BLAKE2B 452a09bc7d876b57b36a50feb38731ded18b959f48861da259d75234614dbf072ff9cfd817fe4c21a2c83515934f42f5ddc7e7e634dfc9e2b327ee9d4b2ac730 SHA512 14144900eac8985de0982eda88e44474ebbd828bf9efa0b6f02ae0627c711e145e28cfbc931f63d7bb5dc5b3ad1056cdc972990cddc36f7050a29a34d9472508 |
23 |
DIST kibana-7.10.2-linux-x86_64.tar.gz 249171053 BLAKE2B 279b1f67a9aaaf6d4bd0a8ba6028794ce8a9a996c9e9daad0815f9dfe9c696748d4210a7496907ee4be8fac111a2f08cc6d84d8fdac0b959b4ce6ee48f712d1a SHA512 aa68f850cc09cf5dcb7c0b48bb8df788ca58eaad38d96141b8e59917fd38b42c728c0968f7cb2c8132c5aaeb595525cdde0859554346c496f53c569e03abe412 |
24 |
+DIST kibana-7.12.0-linux-x86_64.tar.gz 281022115 BLAKE2B 6400dc95f0d2eb357cce46679ab3eb1043f873dcc5904cb1d1169d44fefdc8ca5bcde8c8d3990f951754c2448c12514ac4d0a355f817e5b9b5ce7bf52fb41d00 SHA512 0b6a9596698c64a65d82cc146dad8e24118eb8991b9ed36e13f309d2e3d7af408c35358a8b39899bf2daf260ddd8d50678d437a3dba32923fe026da99a526006 |
25 |
DIST kibana-7.8.1-linux-x86_64.tar.gz 337517217 BLAKE2B 208933ef5efccea3e718ff5ef1bfa28a08c75ba3a1a91b1eb00020d33ec1df2c17e299d423be4d2f3c2c5bfcb6189a80ebade26753379148aa72d9f7901a2e8d SHA512 92f3717b2f9ea915570ee8587f1ad0c2a428c266e1cd7dcda485b8b81191c5c1b3155872299c56dbba8de93807b2cc67a0d197ecb2e8df44e09060d4fac1d759 |
26 |
DIST kibana-7.9.2-linux-x86_64.tar.gz 295714192 BLAKE2B 74ddb493013a097b1501a27f3ddb06e2081a3ebeaa06c5340d2229bcad936e8ae2249530f487ed1b42e697f2fd04ed6cea5c784f35d68e06b0ea3036f9f25cad SHA512 79d7b836a93b496fa9dc58d3d2286ca6f6ad4d5c66558047a24841085b41c8beeae2a4f68a8883013b93e3036e029f76ebcb6e30080fc0b1979377b1f6d2b19a |
27 |
DIST kibana-7.9.3-linux-x86_64.tar.gz 295755102 BLAKE2B e803d92c396684ce56b8b1a82eabfb6c1a88344d07b46d8770ab93ced14cc02fc22fdefec9fa3dbf1e893d02078dd27f7f2fbf1a2445d9d4942dfb1caba92a8e SHA512 c82b0dc91f2e6e585c6187b357ad8da6078a9b17974f6574628161a54981ea64b2f0b6c2e85bb052d20d5d5f64210fae7fbc3f78d7f30722d6f1e5d095b0a2f7 |
28 |
|
29 |
diff --git a/www-apps/kibana-bin/kibana-bin-7.12.0.ebuild b/www-apps/kibana-bin/kibana-bin-7.12.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..644c1aef334 |
32 |
--- /dev/null |
33 |
+++ b/www-apps/kibana-bin/kibana-bin-7.12.0.ebuild |
34 |
@@ -0,0 +1,93 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit systemd |
41 |
+ |
42 |
+MY_PN="${PN%-bin}" |
43 |
+MY_P=${MY_PN}-${PV} |
44 |
+ |
45 |
+DESCRIPTION="Analytics and search dashboard for Elasticsearch" |
46 |
+HOMEPAGE="https://www.elastic.co/products/kibana" |
47 |
+SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz" |
48 |
+ |
49 |
+# source: LICENSE.txt and NOTICE.txt |
50 |
+LICENSE="Apache-2.0 Artistic-2 BSD BSD-2 CC-BY-3.0 CC-BY-4.0 Elastic-2.0 icu ISC MIT MPL-2.0 OFL-1.1 openssl public-domain Unlicense WTFPL-2 ZLIB" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ acct-group/kibana |
56 |
+ acct-user/kibana |
57 |
+ dev-libs/expat |
58 |
+ dev-libs/nss |
59 |
+ >=net-libs/nodejs-14.16.0 |
60 |
+" |
61 |
+ |
62 |
+# Do not complain about CFLAGS etc since we don't use them |
63 |
+QA_FLAGS_IGNORED='.*' |
64 |
+#QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*" |
65 |
+QA_PRESTRIPPED=" |
66 |
+ opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/headless_shell |
67 |
+ opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libEGL.so |
68 |
+ opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libGLESv2.so |
69 |
+ opt/kibana/node_modules/re2/build/Release/re2.node |
70 |
+" |
71 |
+ |
72 |
+S="${WORKDIR}/${MY_P}-linux-x86_64" |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ # remove unused directory |
78 |
+ rm -r data || die |
79 |
+ |
80 |
+ # remove bundled nodejs |
81 |
+ rm -r node || die |
82 |
+ sed -i 's@\(^NODE="\).*@\1/usr/bin/node"@g' \ |
83 |
+ bin/kibana || die |
84 |
+ |
85 |
+ # move plugins to /var/lib/kibana |
86 |
+ rm -r plugins || die |
87 |
+ |
88 |
+ # handle node.js version with RDEPEND |
89 |
+ sed -i /node_version_validator/d \ |
90 |
+ src/setup_node_env/index.js \ |
91 |
+ src/setup_node_env/no_transpilation.js || die |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ insinto /etc/${MY_PN} |
96 |
+ doins -r config/. |
97 |
+ rm -r config || die |
98 |
+ |
99 |
+ insinto /etc/logrotate.d |
100 |
+ newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} |
101 |
+ |
102 |
+ newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN} |
103 |
+ newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN} |
104 |
+ systemd_dounit "${FILESDIR}"/${MY_PN}.service |
105 |
+ |
106 |
+ insinto /opt/${MY_PN} |
107 |
+ doins -r . |
108 |
+ |
109 |
+ fperms -R +x /opt/${MY_PN}/bin |
110 |
+ |
111 |
+ diropts -m 0750 -o ${MY_PN} -g ${MY_PN} |
112 |
+ keepdir /var/lib/${MY_PN}/plugins |
113 |
+ keepdir /var/log/${MY_PN} |
114 |
+ |
115 |
+ dosym ../../var/lib/kibana/plugins /opt/kibana/plugins |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and" |
120 |
+ elog "Node.js 14. Some plugins may fail with other versions of Node.js (Bug #656008)." |
121 |
+ elog |
122 |
+ elog "To set a customized Elasticsearch instance:" |
123 |
+ elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}" |
124 |
+ elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml" |
125 |
+ elog |
126 |
+ elog "Elasticsearch can run local or remote." |
127 |
+} |