1 |
commit: 249db3f337d4c0efb3be62564e61a691301b0691 |
2 |
Author: Xiami <i <AT> f2light <DOT> com> |
3 |
AuthorDate: Thu Apr 26 10:15:59 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 10:29:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=249db3f3 |
7 |
|
8 |
www-apps/kibana-bin: version bump to 6.2.4 |
9 |
|
10 |
Starting with this version, systemd support is added. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/653368 |
13 |
Closes: https://bugs.gentoo.org/654104 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/8145 |
15 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
16 |
|
17 |
www-apps/kibana-bin/Manifest | 1 + |
18 |
www-apps/kibana-bin/files/kibana.service | 22 ++++++++++ |
19 |
www-apps/kibana-bin/kibana-bin-6.2.4.ebuild | 68 +++++++++++++++++++++++++++++ |
20 |
www-apps/kibana-bin/metadata.xml | 3 ++ |
21 |
4 files changed, 94 insertions(+) |
22 |
|
23 |
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest |
24 |
index 3012b7eae9f..8abec126f0e 100644 |
25 |
--- a/www-apps/kibana-bin/Manifest |
26 |
+++ b/www-apps/kibana-bin/Manifest |
27 |
@@ -2,3 +2,4 @@ DIST kibana-5.6.8-linux-x86_64.tar.gz 51974963 BLAKE2B d90b3e56e9d19c3846b7fae29 |
28 |
DIST kibana-6.0.1-linux-x86_64.tar.gz 62720465 BLAKE2B 81c3cb130067483cc6138c5274555c01102e365d873bf753a534cbcd96487516af41fbb91878cea4f80ffc02c5d18c82d322b0530cf1d3a55adffeefe60d9574 SHA512 3761f8abff5d949631f365c228af2f205597e1f05137d0140917b35128d2dcb79e32db355873864c1f01bce06121af71f1bfcb1679ae25903e1121bc76f68ecc |
29 |
DIST kibana-6.1.2-linux-x86_64.tar.gz 65093343 BLAKE2B 08254af4fcc261a49f5f6e4e1c734acca799708394d95d3203d6355d1e9dc3fa6bfa3eb85b1cb40e5d52a4558b6ea202d54e87ff6274823767f8332a7b01b9c7 SHA512 eefe3ae73e08c0cd14c5c7d7f962dc78cdfff1096895a1ab539f172b84dfa0d8c197d99573ac7dea6c60adb89b5e3fd5be10dddd749c060c540b30c34426c8a1 |
30 |
DIST kibana-6.2.2-linux-x86_64.tar.gz 83415765 BLAKE2B 86f7511c82b6954a8769673b856eb46f2b633490535a013d4e30138e8abee470776493de43284f2e68b2cac6b74ba2b76245fd35803b8b5834f79ea5f488dd6b SHA512 8d26eb8293028aa0c35942a7b5025401f9b717d5c548d6cdbcf2761c0d8cc1189fdbf12c6f39468d4c809a3975f5f3c817e0f02424b296ce36183e118b0c72c6 |
31 |
+DIST kibana-6.2.4-linux-x86_64.tar.gz 85348919 BLAKE2B ce062a5a7d96c0266143f1091f7dbe5ade6236068a73f6fedbe253957f7ddf2d00b441d985f72e9936aa3bfa7ecd9e7b7672b301b726a7d78c3e2b71d52c3b24 SHA512 125c2002e1a3b197f9f0d6200f2979f2e5974a902bfec2baa4b34a0c8d55babccafdb87b8a7b69c61ca4c02b8ae97e69b9b2743f7d445f0e53e31c69288296d5 |
32 |
|
33 |
diff --git a/www-apps/kibana-bin/files/kibana.service b/www-apps/kibana-bin/files/kibana.service |
34 |
new file mode 100644 |
35 |
index 00000000000..9e2840d3862 |
36 |
--- /dev/null |
37 |
+++ b/www-apps/kibana-bin/files/kibana.service |
38 |
@@ -0,0 +1,22 @@ |
39 |
+[Unit] |
40 |
+Description=Kibana Web Application |
41 |
+After=network.target |
42 |
+ |
43 |
+[Service] |
44 |
+Environment=BABEL_CACHE_PATH=%C/kibana/.babelcache.json |
45 |
+ |
46 |
+WorkingDirectory=/opt/kibana |
47 |
+StateDirectory=kibana |
48 |
+StateDirectoryMode=0750 |
49 |
+CacheDirectory=kibana |
50 |
+CacheDirectoryMode=0750 |
51 |
+ |
52 |
+User=kibana |
53 |
+Group=kibana |
54 |
+ |
55 |
+# DATA_DIR should be set in config (path.data directive) |
56 |
+# But to comply with OpenRC script, preserve this |
57 |
+ExecStart=/opt/kibana/bin/kibana --config /etc/kibana/kibana.yml --path.data=%S/kibana |
58 |
+ |
59 |
+[Install] |
60 |
+WantedBy=multi-user.target |
61 |
|
62 |
diff --git a/www-apps/kibana-bin/kibana-bin-6.2.4.ebuild b/www-apps/kibana-bin/kibana-bin-6.2.4.ebuild |
63 |
new file mode 100644 |
64 |
index 00000000000..481a185aa4b |
65 |
--- /dev/null |
66 |
+++ b/www-apps/kibana-bin/kibana-bin-6.2.4.ebuild |
67 |
@@ -0,0 +1,68 @@ |
68 |
+# Copyright 1999-2018 Gentoo Foundation |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=6 |
72 |
+ |
73 |
+inherit eapi7-ver systemd user |
74 |
+ |
75 |
+MY_PN="${PN%-bin}" |
76 |
+MY_P=${MY_PN}-${PV} |
77 |
+ |
78 |
+DESCRIPTION="Analytics and search dashboard for Elasticsearch" |
79 |
+HOMEPAGE="https://www.elastic.co/products/kibana" |
80 |
+SRC_URI="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz" |
81 |
+ |
82 |
+# source: LICENSE.txt and NOTICE.txt |
83 |
+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" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64" |
86 |
+ |
87 |
+RDEPEND="net-libs/nodejs" |
88 |
+ |
89 |
+S="${WORKDIR}/${MY_P}-linux-x86_64" |
90 |
+ |
91 |
+pkg_setup() { |
92 |
+ enewgroup ${MY_PN} |
93 |
+ enewuser ${MY_PN} -1 -1 /opt/${MY_PN} ${MY_PN} |
94 |
+} |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ # remove bundled nodejs |
100 |
+ rm -r node || die |
101 |
+ |
102 |
+ # remove empty unused directory |
103 |
+ rmdir data || die |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ insinto /etc/${MY_PN} |
108 |
+ doins -r config/. |
109 |
+ rm -r config || die |
110 |
+ |
111 |
+ insinto /etc/logrotate.d |
112 |
+ newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} |
113 |
+ |
114 |
+ newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN} |
115 |
+ newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN} |
116 |
+ systemd_dounit "${FILESDIR}"/${MY_PN}.service |
117 |
+ |
118 |
+ insinto /opt/${MY_PN} |
119 |
+ doins -r . |
120 |
+ |
121 |
+ chmod +x "${ED%/}"/opt/${MY_PN}/bin/* || die |
122 |
+ |
123 |
+ diropts -m 0750 -o ${MY_PN} -g ${MY_PN} |
124 |
+ keepdir /var/log/${MY_PN} |
125 |
+} |
126 |
+ |
127 |
+pkg_postinst() { |
128 |
+ elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2)" |
129 |
+ elog |
130 |
+ elog "To set a customized Elasticsearch instance:" |
131 |
+ elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}" |
132 |
+ elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml" |
133 |
+ elog |
134 |
+ elog "Elasticsearch can run local or remote." |
135 |
+} |
136 |
|
137 |
diff --git a/www-apps/kibana-bin/metadata.xml b/www-apps/kibana-bin/metadata.xml |
138 |
index 1b662aaef98..235a4590e78 100644 |
139 |
--- a/www-apps/kibana-bin/metadata.xml |
140 |
+++ b/www-apps/kibana-bin/metadata.xml |
141 |
@@ -9,4 +9,7 @@ |
142 |
<email>proxy-maint@g.o</email> |
143 |
<name>Proxy Maintainers</name> |
144 |
</maintainer> |
145 |
+ <upstream> |
146 |
+ <remote-id type="github">elastic/kibana</remote-id> |
147 |
+ </upstream> |
148 |
</pkgmetadata> |