summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2015-12-22 15:58:24 +0100
committerIan Delaney <idella4@gentoo.org>2015-12-22 23:12:15 +0800
commit7ca4f146a8eb2c657624a2946dce15fded62a6da (patch)
tree4b44a037b7481fa1a154c0a82627e1b26495d751 /www-apps
parentwww-apps/kibana-bin: bump to 4.1.4, fixes bug #567934 (diff)
downloadgentoo-7ca4f146a8eb2c657624a2946dce15fded62a6da.tar.gz
gentoo-7ca4f146a8eb2c657624a2946dce15fded62a6da.tar.bz2
gentoo-7ca4f146a8eb2c657624a2946dce15fded62a6da.zip
www-apps/kibana-bin: bump to 4.3.1, fixes bug #564606
Package-Manager: portage-2.2.26
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/kibana-bin/Manifest2
-rw-r--r--www-apps/kibana-bin/files/kibana.initd-r318
-rw-r--r--www-apps/kibana-bin/kibana-bin-4.3.1.ebuild67
3 files changed, 87 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest
index b3c77f26ac8..e9c5e763618 100644
--- a/www-apps/kibana-bin/Manifest
+++ b/www-apps/kibana-bin/Manifest
@@ -1,2 +1,4 @@
DIST kibana-4.1.4-linux-x64.tar.gz 11805519 SHA256 2d11c63268f49b95726bfa0f3c09cf898ea67b65da3599989d17a27095987b0d SHA512 a89290502d887002a65405e7e10de9ddefb176d262584f35ec58352a7ee9b5a88d0db2949d00eefee3752d1bccd4964f7d4f5935d5fb32c50a46e8b2e1f03a6c WHIRLPOOL 33eeda21ab98a04400d3b26bd10c9f9bbc813a8bf934897fc5dc0d354d25dd223caa60fa09613e3a0db74246d1482708620d23b18c6e740480973f77f769b99f
DIST kibana-4.1.4-linux-x86.tar.gz 11595160 SHA256 e197ad2936488764b7167a9ea9989c26600fe3797d22c0e522244eef7eb6b809 SHA512 1651a31ee98315dea0cac83f0e80c45deabf0720e0c4b6b4e337512a1f23b8bd31e853f0b59e08cb53189c76369892ebc88dee5d796118aa659dbaa177698e13 WHIRLPOOL 4cd79f2b4bdf96d72626ad4ac992de9127095f3a96a09735a784e678fefc250f0cdbbb1776876afd9596fbe69e884133e2236f4ffe099e89fc159910048a06f4
+DIST kibana-4.3.1-linux-x64.tar.gz 30408272 SHA256 c6a91921a0055714fd24fb94a70b7057f43492da6bd8c4f2f1acbf0964bf09b9 SHA512 ddaa5110c0bcf3686f0e8fed0ae839f9d8b217d2271611a9a231aa12653bad9ab119630191b732b1d9f416db4211376610201a37208d7bd686ea8c50dd4caa75 WHIRLPOOL 92dc99e0e75ab86e01e4db798ecb02672f95d76eed1da8cbfb073591b250972331d8bcf42bc68130a898c28cff043fbd24d18cb87da46d369e932ca11096ec30
+DIST kibana-4.3.1-linux-x86.tar.gz 29968948 SHA256 fffc2325f1936f9bcedbc0812e2480f085f210229a6d2b5fbc40a3e8379ac8d3 SHA512 7ec80920b7c6e6b03812d94aed3daf4a696b6ca5a31cdefac756a8344284c3e4e5b841514a0d6a5b238d0fc03e8d98cebf866aa03e57cb4c215a0cef286b38be WHIRLPOOL 26727a253f0285c1bfa09d5dd4a33746fb8699dbe48feb1c12d6aef2d36381e654a31dbac0abec9be923a06e5ed53aa04e1593b3117ec7f79f8c28facf8d9917
diff --git a/www-apps/kibana-bin/files/kibana.initd-r3 b/www-apps/kibana-bin/files/kibana.initd-r3
new file mode 100644
index 00000000000..3eceb5f007e
--- /dev/null
+++ b/www-apps/kibana-bin/files/kibana.initd-r3
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 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}
+
+command="/opt/kibana/bin/kibana"
+command_args="--elasticsearch ${ES_INSTANCE} --config ${KIBANA_CONFIG}"
+
+pidfile="/run/kibana.pid"
+command_background="true"
+start_stop_daemon_args="--user=\"${KIBANA_USER}\" --stdout /var/log/kibana/kibana.log --stderr /var/log/kibana/kibana.err"
+
+start_pre() {
+ checkpath -d -o "${KIBANA_USER}" -m750 "/var/log/kibana"
+ checkpath -f -o "${KIBANA_USER}" -m644 "/opt/kibana/optimize/.babelcache.json"
+}
diff --git a/www-apps/kibana-bin/kibana-bin-4.3.1.ebuild b/www-apps/kibana-bin/kibana-bin-4.3.1.ebuild
new file mode 100644
index 00000000000..4407d367cf8
--- /dev/null
+++ b/www-apps/kibana-bin/kibana-bin-4.3.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit pax-utils user
+
+MY_PN="kibana"
+MY_P=${MY_PN}-${PV/_rc/-rc}
+
+DESCRIPTION="Explore and visualize data"
+HOMEPAGE="https://www.elastic.co/products/kibana"
+SRC_URI="amd64? ( https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_P}-linux-x64.tar.gz )
+ x86? ( https://download.elastic.co/${MY_PN}/${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-x64"
+ 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
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN}
+
+ newconfd "${FILESDIR}"/${MY_PN}.confd ${MY_PN}
+ newinitd "${FILESDIR}"/${MY_PN}.initd-r3 ${MY_PN}
+
+ mv * "${D}"/opt/${MY_PN}
+
+ # bug 567934
+ pax-mark m "${ED}/opt/${MY_PN}/node/bin/node"
+}
+
+pkg_postinst() {
+ elog "This version of Kibana is compatible with Elasticsearch 2.1+"
+ 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."
+}