mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 01:45:19 +00:00
Added es7-related ebuild to rbkmoney repo (#115)
* Added es7-related ebuild to rbkmoney repo * fperms added, metadata updated
This commit is contained in:
parent
672b718c5b
commit
2ce0755c86
@ -1,2 +1,7 @@
|
||||
DIST elasticsearch-6.8.1.tar.gz 148584086 SHA256 ad33d463884acde2d8682cb46927f03603ea66133b84c12f53dc9edbc02447e3 SHA512 1d484287e9b67b16c28f1a4d2267e7ceb5a4438a18b26b3a46d4a176bb3f2f6fcadcbda617a7a91418293880d38c027266cb81a4e8893a28adee9fa693b2318b WHIRLPOOL 7d6db245c5fda248795ec46585d1da875ca949aeca45cf55e4c08da663988da9fe74de949f72778788a7eb9d66978ee57b9976c658509ec8fd4a7be1a7f0a307
|
||||
DIST elasticsearch-6.8.15.tar.gz 149102328 SHA256 14fa8a88049ef8314619fa028c9a19301acc8660b0caadb6a90372f4d142e156 SHA512 c62c4d9d1bb83e10d3e1079f56b834f2f89b1f712c29d9ce7e81786199c71d287ecbf6df158eca56a7af711eafe13dfb276e12b34e1a0a6cf6719e1fbb44a142 WHIRLPOOL 88475724c54c321ad86a7da4a8a5c4c011b155d6a67ed32fdf465fae9c605b0d281c13fe24af3cdf837a0ebf34cf1e08d9844b970e9781288578a60fd890b27f
|
||||
DIST elasticsearch-7.10.2-no-jdk-linux-x86_64.tar.gz 164380146 SHA256 afcd3dcebd5aa4fe99c4d2f705360371f7f0b52b3c21100e10bfcbf97a1186c6 SHA512 bd3def00af04670ad04556c911ef8c68b639e1c3b621f36a8973d9700f95873d10bc706a4e3a98f892ac59c1b761d56035a236068d6958af772874e428940dc4 WHIRLPOOL d6edc610a19eea563fb1c3c4ad1de970ae6c528dad2c96bf233e8fc04cab3397833523c5dcc29af91d94ff3a8b153a7c2e8486737df4f4502d8871ec4fb78dad
|
||||
DIST elasticsearch-7.12.0-no-jdk-linux-x86_64.tar.gz 173069694 SHA256 ee78cc766cdc67279e47803545c54ff8858c1ec07aeec4706bfc427e94cb1be9 SHA512 205aa2a2fa2ab7eb7b54087420e0123aa97e5456e2e1f31cad9ea7b84be3f9823a2a7c47d4cf1697833e5f795359477d3a3b0ea4955a8f92583cf2228071827e WHIRLPOOL 51af2aad0b516f798a7022dff2d1eb1b7a06ee52412d7e5b71d49baea86a492f8aeca39a3b27218968cd388d97d0ebbcfe341c6cd28b77e628854e1b24c5aa94
|
||||
DIST elasticsearch-oss-6.8.1.tar.gz 68419519 SHA256 cdfea10998e0b870b1326d9acabce4df9b1a229cbd9d2e1ab5dc33c56f22b4c2 SHA512 cbcc81b8dd3a7a63c6e6574405417821c5dcd1a0b5df813818d39353fa29ea28e443db64b1a1938a1ffb23aa17d706e3edb6a46fdb24992b92f918d8d4f0c08a WHIRLPOOL 2a0a3b0ff19b563d89855982c189e2901b5428e67f3d83863433db86bf051bde3a140f5d82b16c3a0d552f6a5c6824afb3822977c98abd90de7dc12d7dc5359b
|
||||
DIST elasticsearch-oss-6.8.15.tar.gz 68240776 SHA256 682db8de777870fae85ec5b476a196875a75a32c183b0b457f21a11c7e4d4c8c SHA512 7e6a819339ac6043af218f9d97d5d68c50ac46900e4293e7fa18992f7a50b10b0ab2434e26ff0dc1546204ae7526de8ac6ef6545fc0db9c862ceeaa0d96c56f5 WHIRLPOOL 367680e10735c59d0babe871c61f071e61acfe7daf0865627626216aaddadda4f0ec5b94a427462a0011079562ed981b10465d2374a31ff9f6e19720a8a3af28
|
||||
DIST elasticsearch-oss-7.10.2-no-jdk-linux-x86_64.tar.gz 76383466 SHA256 1322deef00579cacfe820c0e4709411859026ce275f1879c4f30b19a458642cc SHA512 7b63237996569ccdc7c9d9e7cc097fcb23865396eddac30e5f02543484220d2fc70a7285b430877e5e76a5d8716d9682de9fc40d5e57a08f331e82011fc59756 WHIRLPOOL 97919b3fa460db023076b25dc2bc8b46a75bc8c84aa5050e91f398f70f4f1da1d750953370e210f643c93d3dc5335c79da30731d925be7012cb2ff5a1e8b13e9
|
88
app-misc/elasticsearch/elasticsearch-6.8.15.ebuild
Normal file
88
app-misc/elasticsearch/elasticsearch-6.8.15.ebuild
Normal file
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
|
||||
HOMEPAGE="https://www.elastic.co/products/elasticsearch"
|
||||
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}.tar.gz )
|
||||
!x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}.tar.gz )"
|
||||
LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="x-pack"
|
||||
|
||||
RDEPEND="acct-group/elasticsearch
|
||||
acct-user/elasticsearch
|
||||
virtual/jre:1.8"
|
||||
|
||||
QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm bin/*.{bat,exe} LICENSE.txt NOTICE.txt || die
|
||||
rmdir logs || die
|
||||
|
||||
if use x-pack; then
|
||||
rm bin/x-pack/*.bat || die
|
||||
rm -r modules/x-pack-ml/platform/{darwin,windows}-x86_64 || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/${PN}
|
||||
keepdir /etc/${PN}/scripts
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r config/.
|
||||
rm -r config || die
|
||||
|
||||
fowners root:${PN} /etc/${PN}
|
||||
fperms 2750 /etc/${PN}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r .
|
||||
|
||||
exeinto /usr/share/${PN}/bin
|
||||
doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
|
||||
|
||||
fperms +x /usr/share/${PN}/bin/* || die
|
||||
|
||||
if use x-pack; then
|
||||
fperms +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin/* || die
|
||||
fi
|
||||
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
fowners ${PN}:${PN} /var/{lib,log}/${PN}
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
dodir /usr/share/${PN}/plugins
|
||||
|
||||
insinto /etc/sysctl.d
|
||||
newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.init.6" ${PN}
|
||||
|
||||
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
|
||||
newtmpfiles "${FILESDIR}/${PN}.tmpfiles.d" ${PN}.conf
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "You may create multiple instances of ${PN} by"
|
||||
elog "symlinking the init script:"
|
||||
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||
elog
|
||||
elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
|
||||
elog "from /etc/${PN} into the configuration directory of the instance:"
|
||||
elog "/etc/${PN}/instance"
|
||||
elog
|
||||
ewarn "Please make sure you have proper permissions on /etc/${PN}"
|
||||
ewarn "prior to keystore generation or you may experience startup fails."
|
||||
ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
|
||||
ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
|
||||
}
|
86
app-misc/elasticsearch/elasticsearch-7.10.2.ebuild
Normal file
86
app-misc/elasticsearch/elasticsearch-7.10.2.ebuild
Normal file
@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
|
||||
HOMEPAGE="https://www.elastic.co/products/elasticsearch"
|
||||
SRC_URI="x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz )
|
||||
!x-pack? ( https://artifacts.elastic.co/downloads/${PN}/${PN}-oss-${PV}-no-jdk-linux-x86_64.tar.gz )"
|
||||
LICENSE="Apache-2.0 BSD-2 LGPL-3 MIT public-domain x-pack? ( Elastic )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="x-pack"
|
||||
|
||||
RDEPEND="acct-group/elasticsearch
|
||||
acct-user/elasticsearch
|
||||
virtual/jre"
|
||||
|
||||
QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm LICENSE.txt NOTICE.txt || die
|
||||
rmdir logs || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/${PN}
|
||||
keepdir /etc/${PN}/scripts
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r config/.
|
||||
rm -r config || die
|
||||
|
||||
fowners root:${PN} /etc/${PN}
|
||||
fperms 2750 /etc/${PN}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r .
|
||||
|
||||
exeinto /usr/share/${PN}/bin
|
||||
doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
|
||||
|
||||
fperms -R +x /usr/share/${PN}/bin
|
||||
|
||||
if use x-pack; then
|
||||
fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
|
||||
fi
|
||||
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
fowners ${PN}:${PN} /var/{lib,log}/${PN}
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
dodir /usr/share/${PN}/plugins
|
||||
|
||||
insinto /etc/sysctl.d
|
||||
newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.conf.3" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.init.7" ${PN}
|
||||
|
||||
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
|
||||
|
||||
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
|
||||
|
||||
elog
|
||||
elog "You may create multiple instances of ${PN} by"
|
||||
elog "symlinking the init script:"
|
||||
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||
elog
|
||||
elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
|
||||
elog "from /etc/${PN} into the configuration directory of the instance:"
|
||||
elog "/etc/${PN}/instance"
|
||||
elog
|
||||
ewarn "Please make sure you have proper permissions on /etc/${PN}"
|
||||
ewarn "prior to keystore generation or you may experience startup fails."
|
||||
ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
|
||||
ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
|
||||
}
|
81
app-misc/elasticsearch/elasticsearch-7.12.0.ebuild
Normal file
81
app-misc/elasticsearch/elasticsearch-7.12.0.ebuild
Normal file
@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
|
||||
HOMEPAGE="https://www.elastic.co/elasticsearch/"
|
||||
SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-no-jdk-linux-x86_64.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="acct-group/elasticsearch
|
||||
acct-user/elasticsearch
|
||||
virtual/jre"
|
||||
|
||||
QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm LICENSE.txt NOTICE.txt || die
|
||||
rmdir logs || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/${PN}
|
||||
keepdir /etc/${PN}/scripts
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r config/.
|
||||
rm -r config || die
|
||||
|
||||
fowners root:${PN} /etc/${PN}
|
||||
fperms 2750 /etc/${PN}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r .
|
||||
|
||||
exeinto /usr/share/${PN}/bin
|
||||
doexe "${FILESDIR}/elasticsearch-systemd-pre-exec"
|
||||
|
||||
fperms -R +x /usr/share/${PN}/bin
|
||||
fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
|
||||
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
fowners ${PN}:${PN} /var/{lib,log}/${PN}
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
dodir /usr/share/${PN}/plugins
|
||||
|
||||
insinto /etc/sysctl.d
|
||||
newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.init.8" ${PN}
|
||||
|
||||
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
|
||||
|
||||
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
|
||||
|
||||
elog
|
||||
elog "You may create multiple instances of ${PN} by"
|
||||
elog "symlinking the init script:"
|
||||
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||
elog
|
||||
elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
|
||||
elog "from /etc/${PN} into the configuration directory of the instance:"
|
||||
elog "/etc/${PN}/instance"
|
||||
elog
|
||||
ewarn "Please make sure you have proper permissions on /etc/${PN}"
|
||||
ewarn "prior to keystore generation or you may experience startup fails."
|
||||
ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
|
||||
ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
|
||||
}
|
62
app-misc/elasticsearch/files/elasticsearch.conf.4
Normal file
62
app-misc/elasticsearch/files/elasticsearch.conf.4
Normal file
@ -0,0 +1,62 @@
|
||||
################################
|
||||
# Elasticsearch
|
||||
################################
|
||||
|
||||
# Elasticsearch home directory
|
||||
#ES_HOME=/usr/share/elasticsearch
|
||||
|
||||
# Elasticsearch Java path
|
||||
#ES_JAVA_HOME=
|
||||
|
||||
# Elasticsearch configuration directory
|
||||
#CONF_DIR=/etc/elasticsearch
|
||||
|
||||
# Elasticsearch data directory
|
||||
#DATA_DIR=/var/lib/elasticsearch
|
||||
|
||||
# Elasticsearch logs directory
|
||||
#LOG_DIR=/var/log/elasticsearch
|
||||
|
||||
# Additional Java OPTS
|
||||
#ES_JAVA_OPTS=
|
||||
|
||||
################################
|
||||
# Elasticsearch service
|
||||
################################
|
||||
|
||||
# When executing the init script, this user will be used to run the elasticsearch service.
|
||||
# The default value is 'elasticsearch' and is declared in the init.d file.
|
||||
# Note that this setting is only used by the init script. If changed, make sure that
|
||||
# the configured user can read and write into the data, work, plugins and log directories.
|
||||
# For systemd service, the user is usually configured in file /usr/lib/systemd/system/elasticsearch.service
|
||||
#ES_USER=elasticsearch
|
||||
#ES_GROUP=elasticsearch
|
||||
|
||||
# The number of seconds to wait before checking if Elasticsearch started successfully as a daemon process
|
||||
#ES_STARTUP_SLEEP_TIME=5
|
||||
|
||||
################################
|
||||
# System properties
|
||||
################################
|
||||
|
||||
# Specifies the maximum file descriptor number that can be opened by this process
|
||||
# When using Systemd, this setting is ignored and the LimitNOFILE defined in
|
||||
# /usr/lib/systemd/system/elasticsearch.service takes precedence
|
||||
MAX_OPEN_FILES=65536
|
||||
|
||||
# The maximum number of bytes of memory that may be locked into RAM
|
||||
# Set to "unlimited" if you use the 'bootstrap.memory_lock: true' option
|
||||
# in elasticsearch.yml.
|
||||
# When using Systemd, the LimitMEMLOCK property must be set
|
||||
# in /usr/lib/systemd/system/elasticsearch.service
|
||||
MAX_LOCKED_MEMORY=unlimited
|
||||
|
||||
# Maximum number of VMA (Virtual Memory Areas) a process can own
|
||||
# When using Systemd, this setting is ignored and the 'vm.max_map_count'
|
||||
# property is set at boot time in /usr/lib/sysctl.d/elasticsearch.conf
|
||||
#MAX_MAP_COUNT=262144
|
||||
|
||||
# https://www.elastic.co/guide/en/elasticsearch/reference/master/max-number-of-threads.html
|
||||
MAX_THREADS=4096
|
||||
|
||||
rc_ulimit="-l $MAX_LOCKED_MEMORY -n $MAX_OPEN_FILES -u $MAX_THREADS"
|
70
app-misc/elasticsearch/files/elasticsearch.init.8
Normal file
70
app-misc/elasticsearch/files/elasticsearch.init.8
Normal file
@ -0,0 +1,70 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="Elasticsearch"
|
||||
description="Elasticsearch Server"
|
||||
|
||||
ES_INSTANCE=${RC_SVCNAME#*.}
|
||||
|
||||
if [ -n "${ES_INSTANCE}" ] && [ ${RC_SVCNAME} != "elasticsearch" ]; then
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
|
||||
CONF_DIR="/etc/elasticsearch/${ES_INSTANCE}"
|
||||
DEFAULT_LOG_DIR="/var/log/elasticsearch/${ES_INSTANCE}"
|
||||
else
|
||||
ES_BASE_PATH="/var/lib/elasticsearch/_default"
|
||||
CONF_DIR="/etc/elasticsearch"
|
||||
DEFAULT_LOG_DIR="/var/log/elasticsearch/_default"
|
||||
fi
|
||||
|
||||
ES_HOME=${ES_HOME:="/usr/share/elasticsearch"}
|
||||
ES_USER=${ES_USER:="elasticsearch"}
|
||||
ES_GROUP=${ES_GROUP:="elasticsearch"}
|
||||
ES_STARTUP_SLEEP_TIME=${ES_STARTUP_TIME:=5}
|
||||
ES_JAVA_HOME=${ES_JAVA_HOME:=$(java-config -g JAVA_HOME)}
|
||||
MAX_OPEN_FILES=${MAX_OPEN_FILES:=65536}
|
||||
MAX_MAP_COUNT=${MAX_MAP_COUNT:=262144}
|
||||
|
||||
DATA_DIR=${DATA_DIR:="${ES_BASE_PATH}/data"}
|
||||
LOG_DIR=${LOG_DIR:="${DEFAULT_LOG_DIR}"}
|
||||
|
||||
if [ -f "${CONF_DIR}/elasticsearch.in.sh" ]; then
|
||||
ES_INCLUDE="${CONF_DIR}/elasticsearch.in.sh"
|
||||
fi
|
||||
|
||||
export ES_INCLUDE
|
||||
export ES_JAVA_HOME
|
||||
export ES_JAVA_OPTS
|
||||
export ES_JVM_OPTIONS
|
||||
export ES_STARTUP_SLEEP_TIME
|
||||
export ES_PATH_CONF="${CONF_DIR}"
|
||||
|
||||
pidfile="/run/elasticsearch/${RC_SVCNAME}.pid"
|
||||
|
||||
command="/usr/share/elasticsearch/bin/elasticsearch"
|
||||
command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}"
|
||||
command_args_background="--daemonize --pidfile=${pidfile}"
|
||||
command_user="${ES_USER}:${ES_GROUP}"
|
||||
required_files="${CONF_DIR}/elasticsearch.yml"
|
||||
retry="TERM/30/KILL/30"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
if [ -n "${MAX_MAP_COUNT}" -a -f /proc/sys/vm/max_map_count ]; then
|
||||
sysctl -q -w vm.max_map_count=${MAX_MAP_COUNT}
|
||||
fi
|
||||
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/run/elasticsearch"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${ES_BASE_PATH}"
|
||||
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "${LOG_DIR}"
|
||||
|
||||
# fails to start without keystore
|
||||
if [ ! -f "${CONF_DIR}/elasticsearch.keystore" ]; then
|
||||
"${ES_HOME}/bin/elasticsearch-keystore" create
|
||||
else
|
||||
"${ES_HOME}/bin/elasticsearch-keystore" upgrade
|
||||
fi
|
||||
}
|
23
app-misc/elasticsearch/metadata.xml
Normal file
23
app-misc/elasticsearch/metadata.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Ivan Panteleev</name>
|
||||
<email>i.panteleev@rbkmoney.com</email>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>hydrapolic@gmail.com</email>
|
||||
<name>Tomáš Mózes</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>erkiferenc@gmail.com</email>
|
||||
<name>Ferenc Erki</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="x-pack">Enable additional features (may need a license)</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -5,4 +5,8 @@
|
||||
<name>Alexey Pronin</name>
|
||||
<email>a.pronin@rbkmoney.com</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<name>Ivan Panteleev</name>
|
||||
<email>i.panteleev@rbkmoney.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Opendistro-security plugin for Elasticsearch"
|
||||
|
||||
PLUGIN_NAME="opendistro-elasticsearch-plugin-${PV}"
|
||||
INSTALL_PATH="/usr/share/elasticsearch/plugins/${PLUGIN_NAME}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}"
|
||||
|
||||
RESTRICT="network-sandbox"
|
||||
|
||||
COMMON_DEPS="dev-libs/openssl:0
|
||||
virtual/jdk:11"
|
||||
RDEPEND="${COMMON_DEPS}
|
||||
~app-misc/elasticsearch-7.10.2"
|
||||
DEPEND="${COMMON_DEPS}
|
||||
app-arch/unzip"
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_PATH}"
|
||||
unzip "${FILESDIR}/${PLUGIN_NAME}.zip" -d "${D}${INSTALL_PATH}" || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Opendistro-security plugin for Kibana"
|
||||
|
||||
PLUGIN_NAME="opendistro-security-kibana-plugin-${PV}"
|
||||
INSTALL_PATH="/opt/kibana/plugins/${PLUGIN_NAME}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}"
|
||||
|
||||
RESTRICT="network-sandbox"
|
||||
|
||||
COMMON_DEPS="dev-libs/openssl:0
|
||||
virtual/jdk:11"
|
||||
RDEPEND="${COMMON_DEPS}
|
||||
>=net-libs/nodejs-10.16
|
||||
~www-apps/kibana-bin-7.10.2"
|
||||
DEPEND="${COMMON_DEPS}
|
||||
app-arch/unzip"
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_PATH}"
|
||||
unzip "${FILESDIR}/${PLUGIN_NAME}.zip" -d "${D}${INSTALL_PATH}" || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Repository-s3 plugin for Elasticsearch"
|
||||
|
||||
PLUGIN_NAME="repository-s3-${PV}"
|
||||
INSTALL_PATH="/usr/share/elasticsearch/plugins/${PLUGIN_NAME}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}"
|
||||
|
||||
RESTRICT="network-sandbox"
|
||||
|
||||
COMMON_DEPS="dev-libs/openssl:0
|
||||
virtual/jdk:11"
|
||||
RDEPEND="${COMMON_DEPS}
|
||||
~app-misc/elasticsearch-7.10.2"
|
||||
DEPEND="${COMMON_DEPS}
|
||||
app-arch/unzip"
|
||||
|
||||
src_install() {
|
||||
dodir "${INSTALL_PATH}"
|
||||
unzip "${FILESDIR}/${PLUGIN_NAME}.zip" -d "${D}${INSTALL_PATH}" || die
|
||||
}
|
@ -1,2 +1,7 @@
|
||||
DIST kibana-6.8.1-linux-x86_64.tar.gz 186486884 SHA256 45cc8c47286f218abbdab04ec502b5de99c86e3da2e8debadaeb99ac79391e02 SHA512 31f3224bc4b571b24275dab21d3eb09fc592e7989887073985e17ccb718867d71e686f0299d28d0fb9f64388f1dfb98c82dbfaa6e7adc2d07685deffac2fed53 WHIRLPOOL 032a774beaef84704036f125a83ab72913c7e925d900a7014bffce9cee916d5d2c5f277f2a470b4906f7fc316c73831d5239ab1e71acdf01e32c5829c6bcee67
|
||||
DIST kibana-6.8.15-linux-x86_64.tar.gz 188083650 SHA256 7263acdb1c5b94a3cdfd2fc95e721c4545fde050fa98c801a43ac07af8b54ee3 SHA512 7afbcd42f332b281106fc58397d7229aa3e3ac38aa9ffcd5d7e3edf32b084f6bf812eac002166099b4e270019651a0d6cb3a9ea06f93f5927c4b4329eb36a14e WHIRLPOOL 1bdcde48bc76ae9574e746687896547dfa4b85b3da149d8a5788e0823378a49e144ccfb033b2f5f9fc963fe54068cf13487b5759b41fb5b286c9fff644545f1e
|
||||
DIST kibana-7.10.2-linux-x86_64.tar.gz 249171053 SHA256 9533c1a692a6e75ce029242d49d3b43e067f6a89af692b70ab061818d3d8e01a SHA512 aa68f850cc09cf5dcb7c0b48bb8df788ca58eaad38d96141b8e59917fd38b42c728c0968f7cb2c8132c5aaeb595525cdde0859554346c496f53c569e03abe412 WHIRLPOOL 8fdedc34d78ab54bc08530a04987796dd3e1cc51d689b72375fbbca720837ee5d20d13538622e9ef764911a70ffcf74453e1eb3a3cfae645d6c6dd4a7cc88272
|
||||
DIST kibana-7.12.0-linux-x86_64.tar.gz 281022115 SHA256 dbc1cb0ff6d0ddda687bde4ecb69b5e7da80e5a207398929b9bbe4e87e962d81 SHA512 0b6a9596698c64a65d82cc146dad8e24118eb8991b9ed36e13f309d2e3d7af408c35358a8b39899bf2daf260ddd8d50678d437a3dba32923fe026da99a526006 WHIRLPOOL 8bde3c45a3f0bb1f5d6018d54e4da6ea740dab02a053abc2c87972e84ff42e328eda649db3bcfaac6800e86ee0fb43b095bf369384e5e3b55cdf75666f02c752
|
||||
DIST kibana-oss-6.8.1-linux-x86_64.tar.gz 62862417 SHA256 74e6a6571aba5444f17f75e53e04649ad02859dde9e03e6bf809cfc515f9e9e4 SHA512 853d920253e1c55ad284d713065174696d228634a90bfef20d7ada1f76a8db94b1d61b62c5e715356381780dcb28f87ae71c2d509282e97c524a8cb313a79e66 WHIRLPOOL cadf167fb666650042c4e800686eeebdf5b8e8ee5730c822ca5170ae7f6cd3cda21c544c0a0227e1b3ab179ba14bff174a5f0a0567975049ead81ce0e9347e03
|
||||
DIST kibana-oss-6.8.15-linux-x86_64.tar.gz 70468224 SHA256 061cafc352871b25353bb54362118df3d3fce7bc2dcd8ba5eb69cb4d74c6d3d2 SHA512 ef67258e2f3d3f447a53ec23d519f13ea50a65f3fde7215352178a6efad9b20c9ce5ade14c4a185c2005b9ec29c997e40e435a0129dd4d03adeaaa21868c9a22 WHIRLPOOL 304811f983f066facb5279762ae8f03e121363b35660a0d52b52954857eddfd54947b6f87b0dce36265658de72125b157cc5e6eb36abeda93ef9ef9d5d5c1c1f
|
||||
DIST kibana-oss-7.10.2-linux-x86_64.tar.gz 111701314 SHA256 fa990aa625c1a4b1ecef628a36d3096ea8a9c3a7aee570b5c6efe22c50871914 SHA512 77ebb247d5326f3f9ab97d57ecc00c7f70deae0e1857d8b5d8f9a5d05d6713e27514cca342df666be79ab85a580e9dc5c7fa9676d67e95db64a0d69546d8d699 WHIRLPOOL 70d599456876b97f6b41373cd816cb612fbbab2409586a106ebd0cc0c759f20e8ae4d37fdddec822eb78a1dbae7efdf4ad865bcf4bf435f207bf949b0effca11
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
KIBANA_USER="${KIBANA_USER:-kibana}"
|
||||
|
89
www-apps/kibana-bin/kibana-bin-6.8.15.ebuild
Normal file
89
www-apps/kibana-bin/kibana-bin-6.8.15.ebuild
Normal file
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2021 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
|
||||
<net-libs/nodejs-14
|
||||
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."
|
||||
}
|
90
www-apps/kibana-bin/kibana-bin-7.10.2.ebuild
Normal file
90
www-apps/kibana-bin/kibana-bin-7.10.2.ebuild
Normal file
@ -0,0 +1,90 @@
|
||||
# Copyright 1999-2020 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.23.1
|
||||
<net-libs/nodejs-14
|
||||
x-pack? (
|
||||
dev-libs/expat
|
||||
dev-libs/nss
|
||||
)"
|
||||
|
||||
# Do not complain about CFLAGS etc since we don't use them
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
S="${WORKDIR}/${MY_P}-linux-x86_64"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove unused directory
|
||||
rm -r data || die
|
||||
|
||||
# remove bundled nodejs
|
||||
rm -r node || die
|
||||
sed -i 's@\(^NODE="\).*@\1/usr/bin/node"@g' \
|
||||
bin/kibana || die
|
||||
|
||||
# move plugins to /var/lib/kibana
|
||||
rm -r plugins || die
|
||||
|
||||
# handle node.js version with RDEPEND
|
||||
sed -i /node_version_validator/d \
|
||||
src/setup_node_env/index.js \
|
||||
src/setup_node_env/no_transpilation.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}/plugins
|
||||
keepdir /var/log/${MY_PN}
|
||||
|
||||
dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
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."
|
||||
}
|
93
www-apps/kibana-bin/kibana-bin-7.12.0.ebuild
Normal file
93
www-apps/kibana-bin/kibana-bin-7.12.0.ebuild
Normal file
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2021 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="https://artifacts.elastic.co/downloads/${MY_PN}/${MY_P}-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 Elastic-2.0 icu ISC MIT MPL-2.0 OFL-1.1 openssl public-domain Unlicense WTFPL-2 ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/kibana
|
||||
acct-user/kibana
|
||||
dev-libs/expat
|
||||
dev-libs/nss
|
||||
>=net-libs/nodejs-14.16.0
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS etc since we don't use them
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
#QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
QA_PRESTRIPPED="
|
||||
opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/headless_shell
|
||||
opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libEGL.so
|
||||
opt/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/swiftshader/libGLESv2.so
|
||||
opt/kibana/node_modules/re2/build/Release/re2.node
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-linux-x86_64"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove unused directory
|
||||
rm -r data || die
|
||||
|
||||
# remove bundled nodejs
|
||||
rm -r node || die
|
||||
sed -i 's@\(^NODE="\).*@\1/usr/bin/node"@g' \
|
||||
bin/kibana || die
|
||||
|
||||
# move plugins to /var/lib/kibana
|
||||
rm -r plugins || die
|
||||
|
||||
# handle node.js version with RDEPEND
|
||||
sed -i /node_version_validator/d \
|
||||
src/setup_node_env/index.js \
|
||||
src/setup_node_env/no_transpilation.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}/plugins
|
||||
keepdir /var/log/${MY_PN}
|
||||
|
||||
dosym ../../var/lib/kibana/plugins /opt/kibana/plugins
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This version of Kibana is compatible with Elasticsearch $(ver_cut 1-2) and"
|
||||
elog "Node.js 14. 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."
|
||||
}
|
26
www-apps/kibana-bin/metadata.xml
Normal file
26
www-apps/kibana-bin/metadata.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Ivan Panteleev</name>
|
||||
<email>i.panteleev@rbkmoney.com</email>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>hydrapolic@gmail.com</email>
|
||||
<name>Tomáš Mózes</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>erkiferenc@gmail.com</email>
|
||||
<name>Ferenc Erki</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">elastic/kibana</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="x-pack">Enable additional features (may need a license)</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user