diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2017-04-28 11:22:38 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-07 13:24:33 +0200 |
commit | 777af3f9e13d400dace299f64ccbf51ae5d54ee6 (patch) | |
tree | 01d5fc645f647bd8a7b30adcab23bdbfc6a0d43b /www-apps/kibana-bin | |
parent | profiles: mask app-cdr/backlite for removal (diff) | |
download | gentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.tar.gz gentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.tar.bz2 gentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.zip |
www-apps/kibana-bin: bump to 5.3.2
Closes: https://github.com/gentoo/gentoo/pull/4515
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'www-apps/kibana-bin')
-rw-r--r-- | www-apps/kibana-bin/Manifest | 2 | ||||
-rw-r--r-- | www-apps/kibana-bin/files/kibana.initd-r5 | 23 | ||||
-rw-r--r-- | www-apps/kibana-bin/kibana-bin-5.3.2.ebuild | 66 |
3 files changed, 91 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest index 425c55968627..7934a6b6d6c5 100644 --- a/www-apps/kibana-bin/Manifest +++ b/www-apps/kibana-bin/Manifest @@ -4,3 +4,5 @@ DIST kibana-5.1.2-linux-x86.tar.gz 38506277 SHA256 e612e0669de687d20ac9896c4cb7a DIST kibana-5.1.2-linux-x86_64.tar.gz 39069457 SHA256 c2e30b9581e7222e8f2536d4b08087dc282a6b31a24ec0e43b905507fe2f2b04 SHA512 d1bebb18d1b3af49b7306f6192ba46bf2485b2eb9a6ddbe9028b5dec921104fbd22ab44d028a9d8ca16730d8f8f7533abb79561b420620859a32edda07369b01 WHIRLPOOL cecadd767316d1404bf60afd57dcb52da289197d173bffd5e320daa4a31c43624ff3ca4f75569916ec960beb2e5a4626159c5eaa26846060331e2bff879b3439 DIST kibana-5.2.2-linux-x86.tar.gz 38297223 SHA256 de0421728aca00e9d4114b45ad5519b843b700006eb0795fcc2df4371d6baa1d SHA512 189def5722ac05e58cec27902a9e72ddb9bcbf65183ce7cd488e30000cabbfa934e10765a68cc2efaca190cfc148adb0b85d0edd6d15dc557a1fae6bed3c9f2e WHIRLPOOL 2d1257ae2f641ac2b83decc8aec191fd0351ab6a821cda906ea176d1a37ac2bd7476046cac15e43e3ea18bbd230dc6cf2d62c03c541232a1aa153c1b41c6bbc1 DIST kibana-5.2.2-linux-x86_64.tar.gz 38853061 SHA256 9c7c526ce286da7f63aed9fb9f9d752ec182ff16bf374c55e55e5a0536a33563 SHA512 15e3c7919e24f0161b734e80513747655d7dad9996c26c07f96a4b4fe8408cae310f01b518d0555d8bbfc883604b3c95a0e4323fdb0c675d5e0ea384c2e7755c WHIRLPOOL d7e3e1cbf037eba0ff76b088eafd377a54d2f0962b416f6f85790bf781c9206026c5bb34dbe80ac8601bce7ed8274eec02667f95458057dcb8fda1de685405ed +DIST kibana-5.3.2-linux-x86.tar.gz 38184703 SHA256 312aec766105a5638459bf2e6a2c3abc841dc7fc7cf0f18308e67dc15bde8fc2 SHA512 d9c81e9cea11eb5417fc9af19a1de8c7add4684dc904f670df509ebbbabbe82d0d7aa9790dd20017020707d32cbd7324a098bd9c2b492f850e4b382557298590 WHIRLPOOL 218f70607e7ac2c524a658b2b37fb3cfab11ca42414fd065eb4ee9f45a13453e5f3d272ecf5cb7370b6b886f60dc1c602d7682b299b388b5f77d5fe916fffed9 +DIST kibana-5.3.2-linux-x86_64.tar.gz 38743345 SHA256 3c0a548dd38bc1a6ba700b161ce059e0144d27f4000856bd5d577a3bd3200518 SHA512 db22a1cb2f42fb9751f08c5acb26b6af7b317e3ecd6832f2191d536d316d621a4b8efa63b1dd82372cccf52c67d0adf7a85bf1afe232317dae3a3878d11334bb WHIRLPOOL 1c4d047720a4edc30a22c5619091cd470e4ab6cbb1b914b321062f57f59bb875e44ad345dbff11ada29824fb901a6678fddd7b144fa8193dc67e9d4028a758a6 diff --git a/www-apps/kibana-bin/files/kibana.initd-r5 b/www-apps/kibana-bin/files/kibana.initd-r5 new file mode 100644 index 000000000000..84f38e9aeefa --- /dev/null +++ b/www-apps/kibana-bin/files/kibana.initd-r5 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +KIBANA_USER="${KIBANA_USER:-kibana}" +KIBANA_CONFIG="${KIBANA_CONFIG:-/etc/kibana/kibana.yml}" +KIBANA_CACHE_DIR="${KIBANA_CACHE_DIR:-/var/cache/kibana}" +KIBANA_BABEL_CACHE_PATH="${KIBANA_CACHE_DIR}/.babelcache.json" +KIBANA_DATA_DIR="${KIBANA_DATA_DIR:-/var/lib/kibana}" +KIBANA_LOG_DIR="${KIBANA_LOG_DIR:-/var/log/kibana}" + +command="/opt/kibana/bin/kibana" +command_args="--elasticsearch ${ES_INSTANCE} --config ${KIBANA_CONFIG} --path.data=${KIBANA_DATA_DIR}" + +pidfile="/run/kibana.pid" +command_background="true" +start_stop_daemon_args="--user=\"${KIBANA_USER}\" --stdout ${KIBANA_LOG_DIR}/kibana.log --stderr ${KIBANA_LOG_DIR}/kibana.err --env BABEL_CACHE_PATH=${KIBANA_BABEL_CACHE_PATH}" + +start_pre() { + checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_CACHE_DIR}" + checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_DATA_DIR}" + checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_LOG_DIR}" +} diff --git a/www-apps/kibana-bin/kibana-bin-5.3.2.ebuild b/www-apps/kibana-bin/kibana-bin-5.3.2.ebuild new file mode 100644 index 000000000000..24fff7fe327f --- /dev/null +++ b/www-apps/kibana-bin/kibana-bin-5.3.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pax-utils user + +MY_PN="${PN%-bin}" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Explore and visualize data" +HOMEPAGE="https://www.elastic.co/products/kibana" +SRC_URI="amd64? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86_64.tar.gz ) + x86? ( https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-linux-x86.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RESTRICT="strip" +QA_PREBUILT="opt/kibana/node/bin/node" + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 -1 /opt/${MY_PN} ${MY_PN} +} + +src_unpack() { + if use amd64; then + S="${WORKDIR}/${MY_P}-linux-x86_64" + elif use x86; then + S="${WORKDIR}/${MY_P}-linux-x86" + fi + + default +} + +src_install() { + keepdir /opt/${MY_PN} + keepdir /var/log/${MY_PN} + keepdir /etc/${MY_PN} + + insinto /etc/${MY_PN} + doins config/* + rm -rf 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-r5 ${MY_PN} + + mv * "${ED%/}"/opt/${MY_PN} || die + + # bug 567934 + pax-mark m "${ED%/}/opt/${MY_PN}/node/bin/node" +} + +pkg_postinst() { + elog "This version of Kibana is compatible with Elasticsearch 5.3" + elog + elog "Be sure to point ES_INSTANCE to your Elasticsearch instance" + elog "in /etc/conf.d/${MY_PN}." + elog + elog "Elasticsearch can run local or remote." +} |