summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2019-10-25 16:34:39 +0000
committerJoonas Niilola <juippis@gentoo.org>2019-10-29 08:53:25 +0200
commit3b29985ebdd804d6f1e2b5378b594944f3d00a6d (patch)
treec20fdb0e58ae9ad4c55bd3b0b0eb94a679f930a7 /www-apps
parentwww-apps/kibana-bin: bump to 7.4.1 (diff)
downloadgentoo-3b29985ebdd804d6f1e2b5378b594944f3d00a6d.tar.gz
gentoo-3b29985ebdd804d6f1e2b5378b594944f3d00a6d.tar.bz2
gentoo-3b29985ebdd804d6f1e2b5378b594944f3d00a6d.zip
www-apps/kibana-bin: drop old
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/kibana-bin/Manifest8
-rw-r--r--www-apps/kibana-bin/kibana-bin-6.6.1.ebuild74
-rw-r--r--www-apps/kibana-bin/kibana-bin-6.8.1.ebuild86
-rw-r--r--www-apps/kibana-bin/kibana-bin-6.8.3.ebuild88
-rw-r--r--www-apps/kibana-bin/kibana-bin-7.0.0.ebuild88
5 files changed, 0 insertions, 344 deletions
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest
index 03e3dd62e2c..eecfc481dee 100644
--- a/www-apps/kibana-bin/Manifest
+++ b/www-apps/kibana-bin/Manifest
@@ -1,19 +1,11 @@
DIST kibana-5.6.16-linux-x86_64.tar.gz 53468981 BLAKE2B dda2aacad7043e4ed259c194de95da143cfc8f4fef624ff783eb8323f9053afe3a9857e358df7aa0b1fa26e9b452ff5afe7480b7befb5504af95d730c1deea53 SHA512 e3b8cd5911444be3c8f39d2060216d968456cae123a3ac47805bbf1e3d5ca581ecfd061988655926a5c6243df0ea2e127e5cf6fe35d336df570cd5b82cfd338f
-DIST kibana-6.6.1-linux-x86_64.tar.gz 180675854 BLAKE2B 7c911f6715f1bb526e09a47de55b10b197dd78bcd5c9a6e710890cd333d23c8556d8efb12d34b0c0cdf1e989bb456da8f79e54b1798c02ea57658d90fbb80f83 SHA512 df4547a0056b46d6351948e7f67439b5a7fe46c27f20c9cb7783046abea04d28aa85ba74751f54c7a1524dbca55ee9c9bfaec50be903f964dedc1ceeb5d823b0
DIST kibana-6.7.1-linux-x86_64.tar.gz 186430753 BLAKE2B 10d3b4d7996ee88ea3fc7062585dd0b00618650779e779c2fc18dcb9e0c62d964abb2806997f0712c495fb54ad2399a8b55745c67b6ff77ec1fa8e6041e7a075 SHA512 5ad5af43c18f12312d8bf5b50e8550ed8a008fb36efddb1756498c6a44cbb40cfa3ae7d307f5cb88daee0690dfd3aacfbb7bd526f098c140886a821af4b28e9d
-DIST kibana-6.8.1-linux-x86_64.tar.gz 186486884 BLAKE2B 6fc640637a2bca675726f485aef7931f475c91f92682101b987972ec9f39b57f5a7e3029dd9de102971356d17a6ce9fef197d8cd7a720e9a2511a4bb73a256b5 SHA512 31f3224bc4b571b24275dab21d3eb09fc592e7989887073985e17ccb718867d71e686f0299d28d0fb9f64388f1dfb98c82dbfaa6e7adc2d07685deffac2fed53
-DIST kibana-6.8.3-linux-x86_64.tar.gz 186404046 BLAKE2B aa4220fe060dce823c22a1b366dbe941e5f0930cde290b7272fade5e330a8f4f4dbe8fb4215d55b88edef3c8e65418e8f3659b7658355197f38b20316e0c3dff SHA512 54c3b9ad197bb8f100905c8b933b94a2dccd38ae3c4482d9b798fc3bd86e53a1e8d60d30554223da537012da47f9aefdbd0d41b9fc01bf01f7bcb45ffe60ebbc
DIST kibana-6.8.4-linux-x86_64.tar.gz 188306376 BLAKE2B 6b94b5c3c3c557d7e23a2a4e87d85ca34d2a3b277ee6562a7f12a798a29942737403349e7f9fab83de52c04adf0d8a72ec4e3f29e85cf45953b3541e75b6edc8 SHA512 75793b5c8b0eedd3a2fd0a24928e75da6f9099875ef74ae0927eb3efa6c45985ea71ebe2fc0696bf6bd960a65ca5ba450134e13302bd07fbb275ab731f713809
-DIST kibana-7.0.0-linux-x86_64.tar.gz 167679944 BLAKE2B 55e1e36134861a063e6a2e844e717fc1e90130403d1f08be87c27582b822e866d8703b7a16a9cf1371ec65e0ff1a314bf6e838ce4b1b5905911325a1a4850b5a SHA512 647dd3900d70dfcf7c8f97d8a020f204b4e2f11c2fc23b4733618ad931f7876b37bfd885809632bbd05fdac75fbc0e233d48367ddb34801e1450b452af8e3f4a
DIST kibana-7.2.0-linux-x86_64.tar.gz 213198521 BLAKE2B 64ce95baa14107c3789d4aff748310cacd41cdabe227cb3fedab4bdd5d65d86d4bc8883dd7f8fbced3fda2ed25ed294ce49a8f28311fcbcfcae3c7bdc960c4ac SHA512 78368be3c55ef09cfed6903cc6556edb1a77f9e548614535b261d13c3190052ee9571cbb686470662f5563c564f1256e3a31ca233a26e8b734f3df44ab5a97f0
DIST kibana-7.3.2-linux-x86_64.tar.gz 236654252 BLAKE2B 0e851e372e628d72670f161569ac6dea09ee34dfe07dcb0c383709534f1495bb35c1853c1e3610c92aa320d62e784537597af7d8dba210f9e9eaf153de6568bc SHA512 23a496cf55cebeebdc67577c966f9f19de36fd7fe2d05597687047b0e7f6b52a41395a0e750e245b04f9881ea99381ff3104fd18bc19593a2db520100874bf0e
DIST kibana-7.4.1-linux-x86_64.tar.gz 252517864 BLAKE2B 18337665a86d54cedda2f3a6e03294d69a8fe25a445ec07b2df838872fd66cc96d095d0b1d496426c7e4ae3c6dec8ff2b4f78ec98225c64192aeac779d9e907c SHA512 9fbb5b754cd94599ab50c794df7b8337c8fa9f11ba810e3edf1cd12c60de40f91dbf4dbbc7178b35495b67a588a9fbec4333ab73df41deaab8bc1d907565ac14
-DIST kibana-oss-6.6.1-linux-x86_64.tar.gz 59466869 BLAKE2B 593563976b4d1c89b6042dbd1a945c6fc7ae2a8c3ea18d142d9e7e5f8307d72e7b358059316130880c64c6879e5df41d80005a1dad82d8a5ae223bf292bdf392 SHA512 1131ce7cab882166478be89426a8885fb53e2b1154100b6fa5dd0a431b1d9aa20df73c687159c18e1b9703e42f953fb10b3ab7fbfe634ed253331238249bf574
DIST kibana-oss-6.7.1-linux-x86_64.tar.gz 62807564 BLAKE2B 8fec550769f4a2a88a4fab72b0ecb49d81d25d2f13d365cfefce2f70ed5c088a72f750a0b5807d729621a78c7fe393a5f9875012b6559aa82bb049083eaff5bf SHA512 309c25a16d535b1c5f0853ea89b7b69b61e3472afdabdd6f60a86fabba4c76c034b620cbe3d7f988cc78d21e5ed058b4f97e4995d868876a55fcc30769822882
-DIST kibana-oss-6.8.1-linux-x86_64.tar.gz 62862417 BLAKE2B ac421af54dff10dec2cd414f3a2101df6fa7691092865d53a35a80cd015679d3d749ef8b37bd67bf6a709741f310fc1ebfeb54ee705f2e81c044ae714e90c932 SHA512 853d920253e1c55ad284d713065174696d228634a90bfef20d7ada1f76a8db94b1d61b62c5e715356381780dcb28f87ae71c2d509282e97c524a8cb313a79e66
-DIST kibana-oss-6.8.3-linux-x86_64.tar.gz 62872100 BLAKE2B e47755708b7fa1a7a2b8d74b4fde352b554b350f31541eb98467f66e599ba1075c5833e1926e1f2cf6ec7accfc302bfd271dbba2ef6a9526683950d67442be0f SHA512 baa8ad7bb9388d6f969509ff1c8fe6273d8ec0b377aa15942a41a8f3934a670bf84fd84b96b76dbfb8fc4c053084b38dc26a6d2ce02efcb2ddf7b4530dfdeae4
DIST kibana-oss-6.8.4-linux-x86_64.tar.gz 65407401 BLAKE2B a58bb44227a861c83342168b189cb133be93976a8f89ad7d29b0684d47621d6b4fe561a503abb896fb4d9325cbdf1a05bdc7da7063c4cadb62859563a4ff1398 SHA512 7d751eef44d669b8a989079a15e987535d6185f04ec8929c63cd2374aba9bd86a4f2301f13ee26308c769096b78f409b99b925f6125cef8f598dd7ffd587eedc
-DIST kibana-oss-7.0.0-linux-x86_64.tar.gz 70548795 BLAKE2B b41f6073548f1cf09fd1e49504775f4802a1e86ed561870b60507054583f73bc0c531fadb831c7145d5234832eabf94a1b7e23ba78c88481be154d4b24ee07c4 SHA512 091ab4fbf0aec782307b7313dec82e6437be4cb76efac49eed6434c393e9adda3f925d6a75be4b78c9768c943168881dc38aa7b1b23462af80d5d158b3806136
DIST kibana-oss-7.2.0-linux-x86_64.tar.gz 82672623 BLAKE2B 770e35f8025fb65513e51cb6a582dfe456e348efc7493c3710f2fa8ee49207392494aa437d7fe2d7115e5f607926e185264b6f92dacdc202331aab3d8ab10254 SHA512 ea735ecd18fc4441f29adcd7fd5a08a61e8bf1e82170219f598edf4a7726a11166e16b36f125edbfecafb6ed2c7cf003880d428960765861868e22cf55542e6b
DIST kibana-oss-7.3.2-linux-x86_64.tar.gz 87456219 BLAKE2B acfc04f9b4afc582d7959ba394487747b0e82f9e12c3b783add91b36155fe74620c067cad1a85898e74ba22b0ba7d66c124f1f8a1e29ae7291de74c048a8d8ef SHA512 a54d0ad3dafd69661762ee8d59021d955253389fb0d228f61f58b522d0644684f57ff96a4bda84d51cf39ecded4ade6c21923bc8e20d6ec9e61305fb6c0b2e32
DIST kibana-oss-7.4.1-linux-x86_64.tar.gz 84250969 BLAKE2B 3975a3a4f3ccdbf360316e225d86a08cd90736660ffd7b149d16da59080e6c54ad9aadfb77ff5d6695b5133e865318df69575ce9f8a0a39cf8d98c83da83f9b5 SHA512 fd439967b50fd43cd0bb065b8d9eaf1591baa158317c06e200b50511a92cfaf4ccbadb708b5585b8f7ce14fd1982e4d20cf49546829d67880435a5e694e8dc9e
diff --git a/www-apps/kibana-bin/kibana-bin-6.6.1.ebuild b/www-apps/kibana-bin/kibana-bin-6.6.1.ebuild
deleted file mode 100644
index c48b1dd037d..00000000000
--- a/www-apps/kibana-bin/kibana-bin-6.6.1.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-MY_PN="${PN%-bin}"
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Analytics and search dashboard for Elasticsearch"
-HOMEPAGE="https://www.elastic.co/products/kibana"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
-
-# source: LICENSE.txt and NOTICE.txt
-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 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND=">=net-libs/nodejs-8.15.1"
-
-S="${WORKDIR}/${MY_P}-linux-x86_64"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 -1 /opt/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- default
-
- # remove bundled nodejs
- rm -r node || die
-
- # remove empty unused directory
- rmdir data || die
-
- # handle node.js version with RDEPEND
- sed -i /node_version_validator/d src/setup_node_env/index.js || die
-}
-
-src_install() {
- insinto /etc/${MY_PN}
- doins -r config/.
- rm -r config || die
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
-
- newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
- newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN}
- systemd_dounit "${FILESDIR}"/${MY_PN}.service
-
- insinto /opt/${MY_PN}
- doins -r .
-
- fperms -R +x /opt/${MY_PN}/bin
-
- diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
- keepdir /var/log/${MY_PN}
-}
-
-pkg_postinst() {
- elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
- elog "Node.js 8. Some plugins may fail with other versions of Node.js (Bug #656008)."
- elog
- elog "To set a customized Elasticsearch instance:"
- elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
- elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
- elog
- elog "Elasticsearch can run local or remote."
-}
diff --git a/www-apps/kibana-bin/kibana-bin-6.8.1.ebuild b/www-apps/kibana-bin/kibana-bin-6.8.1.ebuild
deleted file mode 100644
index 5d00a180e54..00000000000
--- a/www-apps/kibana-bin/kibana-bin-6.8.1.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-MY_PN="${PN%-bin}"
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Analytics and search dashboard for Elasticsearch"
-HOMEPAGE="https://www.elastic.co/products/kibana"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
-
-# source: LICENSE.txt and NOTICE.txt
-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 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND=">=net-libs/nodejs-10.15.2"
-
-S="${WORKDIR}/${MY_P}-linux-x86_64"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 -1 /opt/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- default
-
- # remove empty unused directory
- rmdir data || die
-
- # remove bundled nodejs
- rm -r node || die
-
- # move optimize/plugins to /var/lib/kibana
- rm -r optimize plugins || die
-
- # handle node.js version with RDEPEND
- sed -i /node_version_validator/d src/setup_node_env/index.js || die
-}
-
-src_install() {
- insinto /etc/${MY_PN}
- doins -r config/.
- rm -r config || die
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
-
- newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
- newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN}
- systemd_dounit "${FILESDIR}"/${MY_PN}.service
-
- insinto /opt/${MY_PN}
- doins -r .
-
- fperms -R +x /opt/${MY_PN}/bin
-
- diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
- keepdir /var/lib/${MY_PN}/optimize
- keepdir /var/lib/${MY_PN}/plugins
- keepdir /var/log/${MY_PN}
-
- dosym ../../var/lib/kibana/optimize /opt/kibana/optimize # Bug 667214
- dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
-}
-
-pkg_postinst() {
- ewarn "Kibana optimize/plugins directories were moved to /var/lib/kibana."
- ewarn "In case of startup failures (FATAL Error: Cannot find module...),"
- ewarn "please remove the optimize directory content:"
- ewarn "rm -r /var/lib/kibana/optimize/*"
- elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
- elog "Node.js 10. Some plugins may fail with other versions of Node.js (Bug #656008)."
- elog
- elog "To set a customized Elasticsearch instance:"
- elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
- elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
- elog
- elog "Elasticsearch can run local or remote."
-}
diff --git a/www-apps/kibana-bin/kibana-bin-6.8.3.ebuild b/www-apps/kibana-bin/kibana-bin-6.8.3.ebuild
deleted file mode 100644
index 2cc05a87027..00000000000
--- a/www-apps/kibana-bin/kibana-bin-6.8.3.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd
-
-MY_PN="${PN%-bin}"
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Analytics and search dashboard for Elasticsearch"
-HOMEPAGE="https://www.elastic.co/products/kibana"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
-
-# source: LICENSE.txt and NOTICE.txt
-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 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND="
- acct-group/kibana
- acct-user/kibana
- >=net-libs/nodejs-10.15.2
- x-pack? (
- dev-libs/expat
- dev-libs/nss
- )"
-
-S="${WORKDIR}/${MY_P}-linux-x86_64"
-
-src_prepare() {
- default
-
- # remove empty unused directory
- rmdir data || die
-
- # remove bundled nodejs
- rm -r node || die
-
- # move optimize/plugins to /var/lib/kibana
- rm -r optimize plugins || die
-
- # handle node.js version with RDEPEND
- sed -i /node_version_validator/d src/setup_node_env/index.js || die
-}
-
-src_install() {
- insinto /etc/${MY_PN}
- doins -r config/.
- rm -r config || die
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
-
- newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
- newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN}
- systemd_dounit "${FILESDIR}"/${MY_PN}.service
-
- insinto /opt/${MY_PN}
- doins -r .
-
- fperms -R +x /opt/${MY_PN}/bin
-
- diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
- keepdir /var/lib/${MY_PN}/optimize
- keepdir /var/lib/${MY_PN}/plugins
- keepdir /var/log/${MY_PN}
-
- dosym ../../var/lib/kibana/optimize /opt/kibana/optimize # Bug 667214
- dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
-}
-
-pkg_postinst() {
- ewarn "Kibana optimize/plugins directories were moved to /var/lib/kibana."
- ewarn "In case of startup failures (FATAL Error: Cannot find module...),"
- ewarn "please remove the optimize directory content:"
- ewarn "rm -r /var/lib/kibana/optimize/*"
- elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
- elog "Node.js 10. Some plugins may fail with other versions of Node.js (Bug #656008)."
- elog
- elog "To set a customized Elasticsearch instance:"
- elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
- elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
- elog
- elog "Elasticsearch can run local or remote."
-}
diff --git a/www-apps/kibana-bin/kibana-bin-7.0.0.ebuild b/www-apps/kibana-bin/kibana-bin-7.0.0.ebuild
deleted file mode 100644
index 1e24c466ef1..00000000000
--- a/www-apps/kibana-bin/kibana-bin-7.0.0.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-MY_PN="${PN%-bin}"
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Analytics and search dashboard for Elasticsearch"
-HOMEPAGE="https://www.elastic.co/products/kibana"
-SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz )
- !x-pack? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_PN}-oss-${PV}-linux-x86_64.tar.gz )"
-
-# source: LICENSE.txt and NOTICE.txt
-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 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="x-pack"
-
-RDEPEND=">=net-libs/nodejs-10.15.2"
-
-S="${WORKDIR}/${MY_P}-linux-x86_64"
-
-pkg_setup() {
- enewgroup ${MY_PN}
- enewuser ${MY_PN} -1 -1 /opt/${MY_PN} ${MY_PN}
-}
-
-src_prepare() {
- default
-
- # remove empty unused directory
- rmdir data || die
-
- # remove bundled nodejs
- rm -r node || die
- sed -i 's@\(^NODE="\).*@\1/usr/bin/node"@g' \
- bin/kibana || die
-
- # move optimize/plugins to /var/lib/kibana
- rm -r optimize plugins || die
-
- # handle node.js version with RDEPEND
- sed -i /node_version_validator/d src/setup_node_env/index.js || die
-}
-
-src_install() {
- insinto /etc/${MY_PN}
- doins -r config/.
- rm -r config || die
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
-
- newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
- newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN}
- systemd_dounit "${FILESDIR}"/${MY_PN}.service
-
- insinto /opt/${MY_PN}
- doins -r .
-
- fperms -R +x /opt/${MY_PN}/bin
-
- diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
- keepdir /var/lib/${MY_PN}/optimize
- keepdir /var/lib/${MY_PN}/plugins
- keepdir /var/log/${MY_PN}
-
- dosym ../../var/lib/kibana/optimize /opt/kibana/optimize # Bug 667214
- dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
-}
-
-pkg_postinst() {
- ewarn "Kibana optimize/plugins directories were moved to /var/lib/kibana."
- ewarn "In case of startup failures (FATAL Error: Cannot find module...),"
- ewarn "please remove the optimize directory content:"
- ewarn "rm -r /var/lib/kibana/optimize/*"
- elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
- elog "Node.js 10. Some plugins may fail with other versions of Node.js (Bug #656008)."
- elog
- elog "To set a customized Elasticsearch instance:"
- elog " OpenRC: set ES_INSTANCE in /etc/conf.d/${MY_PN}"
- elog " systemd: set elasticsearch.url in /etc/${MY_PN}/kibana.yml"
- elog
- elog "Elasticsearch can run local or remote."
-}