Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/kibana-bin/
Date: Fri, 28 Jan 2022 08:36:55
Message-Id: 1643358984.b99cef1a2a037cfa00af093831ad30d3fae38e6c.sam@gentoo
1 commit: b99cef1a2a037cfa00af093831ad30d3fae38e6c
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 28 07:59:26 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 08:36:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99cef1a
7
8 www-apps/kibana-bin: bump to 6.8.23/7.16.3
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 www-apps/kibana-bin/Manifest | 3 +
14 www-apps/kibana-bin/kibana-bin-6.8.23.ebuild | 89 +++++++++++++++++++++++++++
15 www-apps/kibana-bin/kibana-bin-7.16.3.ebuild | 91 ++++++++++++++++++++++++++++
16 3 files changed, 183 insertions(+)
17
18 diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest
19 index 78c460cdc98b..dc1f346c8514 100644
20 --- a/www-apps/kibana-bin/Manifest
21 +++ b/www-apps/kibana-bin/Manifest
22 @@ -1,3 +1,6 @@
23 DIST kibana-6.8.22-linux-x86_64.tar.gz 186925815 BLAKE2B c3a5ed661991f7646f9f59a709bb4c3d940b13e7d32beb9f4862b5c1d6ad63b6af0730713463e54e427cb7f488acc3446f4eec28b23cc7ef07f9b7da385161ee SHA512 4a7b74ba93255bbef9255e30f373addb6bb231c364cf367281120c564d00923ab87356e936d4a49165bab8dc50d34ee38728099f40bea26fe76d464a05c7968c
24 +DIST kibana-6.8.23-linux-x86_64.tar.gz 186911401 BLAKE2B 4d0894b88c855bc64ed648489d8c7293965a6edee0ebb841f22c5779592a282dc6af800f39bcd4fd710242aa63365165616bd7a2cf17e8ca0a6560c7bc604256 SHA512 15226207e3606637fe5004bf7b994fa8d09a0b2860881f7539a70872e5480c6614a6181fbb1ec0effa24380bd7721a8bdd87dea152e628c6577684c1b13ee0a2
25 DIST kibana-7.16.2-linux-x86_64.tar.gz 280893546 BLAKE2B c2057e45823e373c7ac842e0f4d7782aad398cc662aca801eb6cd2a792a5826b5e212c836f14d07bf451fd2d6b8f87bec481b03c2fb9afa8c26ce5054e6d54d9 SHA512 4c82f338b7e818db6e9e03c522d354286bc654e4dbe97529a3308ae27e510c5b4fcfa120371428867c49ed76dee06bf1386c47c8ceb7118bbddf09eed6e131ba
26 +DIST kibana-7.16.3-linux-x86_64.tar.gz 281044755 BLAKE2B f308f60615f66a7139ae4e39172900c571c6000879aa2c47f6ba906098e12cb1e0f244af2289b870c6d35bf10ce59d6bd9395678243bd77365aea0b650cc27f5 SHA512 a08198dac16d62a0167a37ed58d73004535eec0fe21e0be8bb4926a2bfb1a69e8d8a679e1a7537dcad72d7a5f25c35c8a233da7dd130df01d2fa47b848d18ca3
27 DIST kibana-oss-6.8.22-linux-x86_64.tar.gz 67436490 BLAKE2B 1de996ea4ab2a7e0b77bf5b5c4c16bb235c9dd35814144f5cec77b662b2b81f05e8c47db7dd5b65c9d58c46ce56232710f3e5f892ad91c6ca0bda9ba37dd1bc4 SHA512 30a19e8ff87f590aefa607db3f55d53acc41077768e0239933c2cbaedd1abffa05c6df96b575f22b3b1151ef6f1a5ed860fc0e53f87ecaa1239c5564e7a7c4bf
28 +DIST kibana-oss-6.8.23-linux-x86_64.tar.gz 67419004 BLAKE2B e7d7be6947cdb3d19efae9ca4113d22a70d3354632c57df266f0dff0b367caa01e3e0ee797ed6330f59cf4d4de63c7985c3504b0914445fb18ab696cbbaf98c1 SHA512 f6ffd8e8f957e08a6783b3decbab0f85654eb1386d7135e76c25799c76524957aa250f8bae43b220c0f14616071a63f5132ca73145d5a44ac8a52d106403a530
29
30 diff --git a/www-apps/kibana-bin/kibana-bin-6.8.23.ebuild b/www-apps/kibana-bin/kibana-bin-6.8.23.ebuild
31 new file mode 100644
32 index 000000000000..0c16c09d3126
33 --- /dev/null
34 +++ b/www-apps/kibana-bin/kibana-bin-6.8.23.ebuild
35 @@ -0,0 +1,89 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit systemd
42 +
43 +MY_PN="${PN%-bin}"
44 +MY_P=${MY_PN}-${PV}
45 +
46 +DESCRIPTION="Analytics and search dashboard for Elasticsearch"
47 +HOMEPAGE="https://www.elastic.co/products/kibana"
48 +SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
49 + !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
50 +
51 +# source: LICENSE.txt and NOTICE.txt
52 +LICENSE="Apache-2.0 Artistic-2 BSD BSD-2 CC-BY-3.0 CC-BY-4.0 icu ISC MIT MPL-2.0 OFL-1.1 openssl public-domain Unlicense WTFPL-2 ZLIB x-pack? ( Elastic )"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE="x-pack"
56 +
57 +RDEPEND="
58 + acct-group/kibana
59 + acct-user/kibana
60 + >=net-libs/nodejs-10.15.2
61 + <net-libs/nodejs-14
62 + x-pack? (
63 + dev-libs/expat
64 + dev-libs/nss
65 + )"
66 +
67 +S="${WORKDIR}/${MY_P}-linux-x86_64"
68 +
69 +src_prepare() {
70 + default
71 +
72 + # remove empty unused directory
73 + rmdir data || die
74 +
75 + # remove bundled nodejs
76 + rm -r node || die
77 +
78 + # move optimize/plugins to /var/lib/kibana
79 + rm -r optimize plugins || die
80 +
81 + # handle node.js version with RDEPEND
82 + sed -i /node_version_validator/d src/setup_node_env/index.js || die
83 +}
84 +
85 +src_install() {
86 + insinto /etc/${MY_PN}
87 + doins -r config/.
88 + rm -r config || die
89 +
90 + insinto /etc/logrotate.d
91 + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
92 +
93 + newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
94 + newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN}
95 + systemd_dounit "${FILESDIR}"/${MY_PN}.service
96 +
97 + insinto /opt/${MY_PN}
98 + doins -r .
99 +
100 + fperms -R +x /opt/${MY_PN}/bin
101 +
102 + diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
103 + keepdir /var/lib/${MY_PN}/optimize
104 + keepdir /var/lib/${MY_PN}/plugins
105 + keepdir /var/log/${MY_PN}
106 +
107 + dosym ../../var/lib/kibana/optimize /opt/kibana/optimize # Bug 667214
108 + dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
109 +}
110 +
111 +pkg_postinst() {
112 + ewarn "Kibana optimize/plugins directories were moved to /var/lib/kibana."
113 + ewarn "In case of startup failures (FATAL Error: Cannot find module...),"
114 + ewarn "please remove the optimize directory content:"
115 + ewarn "rm -r /var/lib/kibana/optimize/*"
116 + elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
117 + elog "Node.js 10. Some plugins may fail with other versions of Node.js (Bug #656008)."
118 + elog
119 + elog "To set a customized Elasticsearch instance:"
120 + elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
121 + elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
122 + elog
123 + elog "Elasticsearch can run local or remote."
124 +}
125
126 diff --git a/www-apps/kibana-bin/kibana-bin-7.16.3.ebuild b/www-apps/kibana-bin/kibana-bin-7.16.3.ebuild
127 new file mode 100644
128 index 000000000000..d13809c0d99b
129 --- /dev/null
130 +++ b/www-apps/kibana-bin/kibana-bin-7.16.3.ebuild
131 @@ -0,0 +1,91 @@
132 +# Copyright 1999-2022 Gentoo Authors
133 +# Distributed under the terms of the GNU General Public License v2
134 +
135 +EAPI=8
136 +
137 +inherit systemd
138 +
139 +MY_PN="${PN%-bin}"
140 +MY_P=${MY_PN}-${PV}
141 +
142 +DESCRIPTION="Analytics and search dashboard for Elasticsearch"
143 +HOMEPAGE="https://www.elastic.co/products/kibana"
144 +SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz"
145 +
146 +# source: LICENSE.txt and NOTICE.txt
147 +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"
148 +SLOT="0"
149 +KEYWORDS="~amd64"
150 +
151 +RDEPEND="
152 + acct-group/kibana
153 + acct-user/kibana
154 + dev-libs/expat
155 + dev-libs/nss
156 + >=net-libs/nodejs-16.13.0
157 +"
158 +
159 +# Do not complain about CFLAGS etc since we don't use them
160 +QA_FLAGS_IGNORED='.*'
161 +QA_PRESTRIPPED="
162 + opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/headless_shell
163 + opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libEGL.so
164 + opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libGLESv2.so
165 + opt/kibana/node_modules/re2/build/Release/re2.node
166 +"
167 +
168 +S="${WORKDIR}/${MY_P}-linux-x86_64"
169 +
170 +src_prepare() {
171 + default
172 +
173 + # remove unused directory
174 + rm -r data || die
175 +
176 + # remove bundled nodejs
177 + rm -r node || die
178 + sed -i 's@\(^NODE="\).*@\1/usr/bin/node"@g' \
179 + bin/kibana || die
180 +
181 + # move plugins to /var/lib/kibana
182 + rm -r plugins || die
183 +
184 + # handle node.js version with RDEPEND
185 + sed -i /node_version_validator/d \
186 + src/setup_node_env/no_transpilation_dist.js || die
187 +}
188 +
189 +src_install() {
190 + insinto /etc/${MY_PN}
191 + doins -r config/.
192 + rm -r config || die
193 +
194 + insinto /etc/logrotate.d
195 + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
196 +
197 + newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
198 + newinitd "${FILESDIR}"/${MY_PN}.initd-r1 ${MY_PN}
199 + systemd_dounit "${FILESDIR}"/${MY_PN}.service
200 +
201 + insinto /opt/${MY_PN}
202 + doins -r .
203 +
204 + fperms -R +x /opt/${MY_PN}/bin
205 +
206 + diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
207 + keepdir /var/lib/${MY_PN}/plugins
208 + keepdir /var/log/${MY_PN}
209 +
210 + dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
211 +}
212 +
213 +pkg_postinst() {
214 + elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
215 + elog "Node.js 16. Some plugins may fail with other versions of Node.js (Bug #656008)."
216 + elog
217 + elog "To set a customized Elasticsearch instance:"
218 + elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
219 + elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
220 + elog
221 + elog "Elasticsearch can run local or remote."
222 +}