summaryrefslogtreecommitdiff
path: root/www-apps/kibana-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/kibana-bin
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/kibana-bin')
-rw-r--r--www-apps/kibana-bin/Manifest12
-rw-r--r--www-apps/kibana-bin/files/kibana.confd2
-rw-r--r--www-apps/kibana-bin/files/kibana.initd23
-rw-r--r--www-apps/kibana-bin/files/kibana.logrotate9
-rw-r--r--www-apps/kibana-bin/kibana-bin-5.5.2.ebuild66
-rw-r--r--www-apps/kibana-bin/kibana-bin-5.6.2.ebuild66
-rw-r--r--www-apps/kibana-bin/metadata.xml12
7 files changed, 190 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/Manifest b/www-apps/kibana-bin/Manifest
new file mode 100644
index 000000000000..191345c96a2c
--- /dev/null
+++ b/www-apps/kibana-bin/Manifest
@@ -0,0 +1,12 @@
+AUX kibana.confd 72 SHA256 6cd3750a37a9d7f4f74efa0f2b6dd8f807878123c664b87fb40087e142791dc2 SHA512 7dfb5c2e99e48227a95ac405fdf9f1ffdf20f7173c5a211a1aedf73b2e2ac37b7f428e5e3c7b713b78433cc9ea7bbfac723477c4497a6cb18ed787d42d8faddd WHIRLPOOL 445c0c36a2e8188332795780223b6d6b8f33a6901721a764b58cb1f1e5bbf1b9fea228e3f27153d2a0ae5562297d4a2cbc2454e50828ef1fdcc1f823ed9cbdb4
+AUX kibana.initd 1015 SHA256 aae0dd43a2b46a1248627c5766746c8d5ea6105a765bf250dbd93c2b05546442 SHA512 cd89c1fc7846d4c553bf2abc7e3df851561a574ef70ba3c6709ee8e3016d0348093563c70e5800bf6ff2e977976835dc7bed30e5b191d60e5f3c5f17fb3adc7e WHIRLPOOL 297a698bf314f6a927727451afb3c85d8342ba3e31193ff0aead6192d1ffe6a3431a5647bba703c43cc63c783c1fff9de8bf2a58625a95c35a9b364f713f22b6
+AUX kibana.logrotate 186 SHA256 ec0244a71f8504044b3aaf17980737dab86b9d4131981a646a5807ec39ca99ed SHA512 1e0a51a83798e30b3807f496245b5733bc60a7bd1a529d2548a187ff8d3fa56d60bc23abf516d239ef76a8e9b66358ed84c687040a7b04c7818ea63417d33a1e WHIRLPOOL 212169f48df9828af8feb63085f9bf3632cf39d16fd8ab086c1ddde98f81fc2cbd9b866e4055a68ad975d938232e978c4de6ca561449fe19cc2f8e43c7043500
+DIST kibana-5.5.2-linux-x86.tar.gz 50521894 SHA256 f74e16d73da0b31e8c04276b13f755c49f95e59209079adbefff40cd56e5a62a SHA512 30b2c75661b8d4632f5e063dc79261d01ed96c03ded64d9b05671489d9497339934284ea57ef079dfaab11031f59be8c38ae8338e6dd69b50ff36f0ba37b2315 WHIRLPOOL 65f788bcf26e3247c2604f0195c7dd5b5f2a5ea45bfa87f0ca0f46209080f4afbe2dbd61e8926550d2c299f1342dc32cc4e6fc0ba34390a9e5e9236b6b57d01b
+DIST kibana-5.5.2-linux-x86_64.tar.gz 51073441 SHA256 4b879a36899d886c1264c6c2e0c662d56ebefee703fa4c62bca793124d3ebd5a SHA512 eab223176ea2a92234cf074a245024f1612e66361811a481f2ae9199afd92b4d01e10048adf1cb5ca3a60ef4d671705b70dc39c76e90d5c1ab5d07851d0b0096 WHIRLPOOL 05d12811a929507b01ac1a48c3aa038cab0b944e85d2b95272a4ddacec5325da697033e4f063648f39debfc2a0fffb7e15c6bdc141e5cf7641ce9df66572b2dc
+DIST kibana-5.6.2-linux-x86.tar.gz 50262246 SHA256 de69314c6616ca9e467b67c9b3800ca1c1cc843a8709a4cb435ba017a3affcc8 SHA512 0d637a52c50edb1fdd4418802c1dd145806a36ce21fb34182485d046d1352156e6f8e4a26ef0b8c92bc09266fe95618c58ad1cd022bba4acf07c528ae5429a43 WHIRLPOOL bcacc1b2b312949626d0792d39382d7af1110089e569fcbf52330119ee67ae62cfadc7a87fd8bd6006ab2423f2067e406bbbf62f5988ad1950fd09ad5240515c
+DIST kibana-5.6.2-linux-x86_64.tar.gz 50813652 SHA256 d4fb6a736c367d8df563f405bdc3c6d6541e1a8fe0b22d29c8070c032ca97cd8 SHA512 e9ef4f8dee16b1274d4b0399c0df938a5c99d450f8b8f8b1e56b3410661696b67a100187aa719c270359bd22b000dc5002c664d33eb178fd657dc80ae8237830 WHIRLPOOL ce9f9eccf63573395bfd91afd922775acee616ef281d94ca279a0e5f0c4e2d85a88945489ad1fb67240d0339a9d8e30a9c2189883dfb973ac25adb656a08441e
+EBUILD kibana-bin-5.5.2.ebuild 1591 SHA256 e0135ab998be33e28df6bf275ecbe59d83ab9c4709b165d7a56678120bfdc0cf SHA512 48a553470b9763adc152894f17cd69a54a5948df78008c2cb45675d40b1e15eec484716f8f7ae2e3ba56618da2d292310045c4287294e6c07fb54ed9638df7e8 WHIRLPOOL 8b252b53f912b3814f395c3f81446e014b17aa7af5fb8169db7a659a8fa9cfa4d731bfa5528b232b18c260a7711d0c8176f530daae074ea00edf397c201e50ae
+EBUILD kibana-bin-5.6.2.ebuild 1591 SHA256 9fa1497d6699b97490575dd33ee030e00d73ff44bd9c607c9e0966a46560879a SHA512 92601e0a91427b6706a2c16ecc39d94d43645fdbdd3f01cb915ec0e3ebf5d8d3c773ee7e7efd52b9b3e17882117b78d0dd97392fc24d341582634fcb4e9f965c WHIRLPOOL 8ed8a142be2216b8d04d759ac86f37948484c93a4b48ece20f29e5a6e8630d0a4c36bf2c89822b03ea057c5cfa2c50cb6ab50435a5e5bac7e7ca864472723a0a
+MISC ChangeLog 8813 SHA256 281047623a0610e1e42c56609994a288d23c7af363bf89a7aa6250f0c283ff66 SHA512 029c4fe58c1cac21557b17a64adacb260cdea094e81043037149f41fa3ea6012f11e25a239ea79b97d46fc01dc68c1750ad0d3e1258cbf94261d4459ad976034 WHIRLPOOL 837c48c17218a45acb850020538d498efa94e81f362c285dbaf67d1ed20e797bcb3956eae0cadb721880f36fa39671dc522a43f7e0283347007025d1dfe1183f
+MISC ChangeLog-2015 944 SHA256 a590d67e562eacb4f2dfefbfc4b11f1d2c79ea90f00bf940072512e0cca51c3b SHA512 00745e148089d904304510d1f9e64208585e81562c7812ed8fe9ca80fa80e8207dc855e3cf818b9e86d5bc10a780836e052d80c766ee19fd1435ad3c38b874ff WHIRLPOOL 037f9bbc5aa54c7f73c22f6d598c5c5c16dd18b4e5f47255e1f8ba0ce04b7e56e282bd16b05a384a16f39c8e9d397ccd2d83f73e8af28c54b5cdfdabb5720c39
+MISC metadata.xml 379 SHA256 076db70c66a956ac9333a448963cc5580406731f1d4bebe29c26bb880fcc8649 SHA512 f39a4765eca2676d25bd98ad9f17c85e528a31ccc1b06e6327203ddfca981363a5eac870fd4f856f4d11926f689dd5b2ea45297055625e2f7089a7b9aec3f975 WHIRLPOOL 1553f54462bcdedf8a2fe08fbab2c9d0df6d766c6be0b1aa3d93056b13d7124d1f591b7fac6d2d407a0a777cf12a2255873d5ba2b72357b500f9b3b32e99b69f
diff --git a/www-apps/kibana-bin/files/kibana.confd b/www-apps/kibana-bin/files/kibana.confd
new file mode 100644
index 000000000000..59877f3b656c
--- /dev/null
+++ b/www-apps/kibana-bin/files/kibana.confd
@@ -0,0 +1,2 @@
+#elasticsearch instance to connect to
+ES_INSTANCE=http://localhost:9200
diff --git a/www-apps/kibana-bin/files/kibana.initd b/www-apps/kibana-bin/files/kibana.initd
new file mode 100644
index 000000000000..84f38e9aeefa
--- /dev/null
+++ b/www-apps/kibana-bin/files/kibana.initd
@@ -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/files/kibana.logrotate b/www-apps/kibana-bin/files/kibana.logrotate
new file mode 100644
index 000000000000..378d65668b59
--- /dev/null
+++ b/www-apps/kibana-bin/files/kibana.logrotate
@@ -0,0 +1,9 @@
+/var/log/kibana/kibana.log /var/log/kibana/kibana.err {
+ daily
+ rotate 7
+ copytruncate
+ compress
+ delaycompress
+ missingok
+ notifempty
+}
diff --git a/www-apps/kibana-bin/kibana-bin-5.5.2.ebuild b/www-apps/kibana-bin/kibana-bin-5.5.2.ebuild
new file mode 100644
index 000000000000..c6e280e46581
--- /dev/null
+++ b/www-apps/kibana-bin/kibana-bin-5.5.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 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="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 )"
+
+# 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"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="net-libs/nodejs"
+
+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
+
+ # remove bundled nodejs
+ rm -rv "${S}"/node || die
+}
+
+src_install() {
+ keepdir /opt/${MY_PN}
+ keepdir /var/log/${MY_PN}
+ keepdir /etc/${MY_PN}
+
+ insinto /etc/${MY_PN}
+ doins config/*
+ rm -rv 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}
+
+ mv * "${ED%/}"/opt/${MY_PN} || die
+}
+
+pkg_postinst() {
+ elog "This version of Kibana is compatible with Elasticsearch 5.5"
+ 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."
+}
diff --git a/www-apps/kibana-bin/kibana-bin-5.6.2.ebuild b/www-apps/kibana-bin/kibana-bin-5.6.2.ebuild
new file mode 100644
index 000000000000..73a56f0ceb4d
--- /dev/null
+++ b/www-apps/kibana-bin/kibana-bin-5.6.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 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="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 )"
+
+# 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"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="net-libs/nodejs"
+
+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
+
+ # remove bundled nodejs
+ rm -rv "${S}"/node || die
+}
+
+src_install() {
+ keepdir /opt/${MY_PN}
+ keepdir /var/log/${MY_PN}
+ keepdir /etc/${MY_PN}
+
+ insinto /etc/${MY_PN}
+ doins config/*
+ rm -rv 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}
+
+ mv * "${ED%/}"/opt/${MY_PN} || die
+}
+
+pkg_postinst() {
+ elog "This version of Kibana is compatible with Elasticsearch 5.6"
+ 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."
+}
diff --git a/www-apps/kibana-bin/metadata.xml b/www-apps/kibana-bin/metadata.xml
new file mode 100644
index 000000000000..1b662aaef98c
--- /dev/null
+++ b/www-apps/kibana-bin/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hydrapolic@gmail.com</email>
+ <name>Tomáš Mózes</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>