mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 01:45:19 +00:00
Opendistro 1.3.0.0 ebuilds added
This commit is contained in:
parent
47ebcd90ef
commit
9874ed7669
4
app-misc/opendistro-elasticsearch-plugin/Manifest
Normal file
4
app-misc/opendistro-elasticsearch-plugin/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
EBUILD opendistro-elasticsearch-plugin-0.10.0.3-r1.ebuild 2093 BLAKE2B ce24c73755dafd4420f06ccf2c8d54d8b739f3450d12baaf1f69443e47fda739b79f8824340203f2c11a16b66a9b165074232d4de69dcdf4d8b08394571aabbc SHA512 4f2b10a1c5f6ae15a353bf91b4bcd4d84985ce95258193d3741a9a8373cb9e0b1e6be44b69b8d182eb1b5e2aa4cf9f7a6d2c989c9af5ab70f0fb6759a7ce203a
|
||||
EBUILD opendistro-elasticsearch-plugin-1.2.0.0-r1.ebuild 1935 BLAKE2B ba93acd5b3cf095240586460fc8dfd616e1b82102d23d317f27ed3ec1d1af2d8926497ce16d551bce98464e1e14ebf53dbab6edce63ac1ff070d479d68a4f0a6 SHA512 19a15ae1304bd692e524dafd8f7e1100beb18d990d78533f452506b48100b23b99cf95b57ebf45cb4db5accb8faef67d84f9ea5c3aad1aeb033ec47cf7018685
|
||||
EBUILD opendistro-elasticsearch-plugin-1.3.0.0.ebuild 1967 BLAKE2B 1f919947c93e790b8df76cd2d3500cf8607e7da9738409c6e907dc806dda757f48c4448223c644d141fcf732ba8d43d2e60c58423f299121bfce2ed9ed190022 SHA512 59ec14b80caa58c8f7c0dca324bfbc9c7b9d209f4eb87cd0c214e201b097e51e2c1e78c9bb1d700afe5d3bff221ca7ad99fb77480748e7b5d6537a6af81cd977
|
||||
MISC metadata.xml 256 BLAKE2B 228c8bf9d12e1f10d43580d89beb30ab17adf7980ab4fac014cc524cd12865b35dfa97b9f1339c32f6d888d31418e0a6ec30bdcfc5a8afd9acc80a31e481ccd7 SHA512 c20794e11ecedf0385f619a54039522707a3cb65e2d78360509066b8aa9c11022c30de8a496549f3c32659ad02ad2821105d4d483675c563882d22eb02f76d72
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit git-r3
|
||||
DESCRIPTION="Open Distro for Elasticsearch Security"
|
||||
HOMEPAGE="https://github.com/opendistro-for-elasticsearch/"
|
||||
|
||||
declare -A my_dep_repo=(
|
||||
[security]="https://github.com/opendistro-for-elasticsearch/security"
|
||||
[security_parent]="https://github.com/opendistro-for-elasticsearch/security-parent"
|
||||
[security_advanced]="https://github.com/opendistro-for-elasticsearch/security-advanced-modules"
|
||||
)
|
||||
declare -A my_dep_ref=(
|
||||
[security]="refs/tags/v${PV}"
|
||||
[security_parent]="refs/tags/v1.2.1.0"
|
||||
[security_advanced]="refs/tags/v1.2.1.0"
|
||||
)
|
||||
S="${WORKDIR}/security"
|
||||
PLUGIN_NAME="opendistro_security-${PV}"
|
||||
INSTALL_PATH="/usr/share/elasticsearch/plugins/${PLUGIN_NAME}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="network-sandbox"
|
||||
|
||||
COMMON_DEPS="dev-libs/openssl:0
|
||||
virtual/jdk:11"
|
||||
RDEPEND="${COMMON_DEPS}
|
||||
~app-misc/elasticsearch-7.3.2"
|
||||
DEPEND="${COMMON_DEPS}
|
||||
dev-java/maven-bin
|
||||
app-arch/unzip"
|
||||
|
||||
my_fetch_dep() {
|
||||
local name="${1}"
|
||||
local repo="${my_dep_repo[${name}]}" ref="${my_dep_ref[${name}]}"
|
||||
git-r3_fetch "${repo}" "${ref}"
|
||||
git-r3_checkout "${repo}" "${WORKDIR}/${name}"
|
||||
}
|
||||
my_compile_dep() {
|
||||
local name="${1}"
|
||||
einfo "Compiling ${name}"
|
||||
cd "${WORKDIR}/${name}" || die
|
||||
mvn install -Dmaven.repo.local="${WORKDIR}"/.m2/repository -DskipTests=true || die
|
||||
cd "${S}" || die
|
||||
}
|
||||
src_unpack() {
|
||||
for name in security security_parent security_advanced; do
|
||||
my_fetch_dep "${name}"
|
||||
done
|
||||
}
|
||||
src_prepare() {
|
||||
mkdir -p "${WORKDIR}"/.m2/repository
|
||||
eapply_user
|
||||
}
|
||||
src_compile() {
|
||||
for name in security_parent security security_advanced; do
|
||||
my_compile_dep "${name}"
|
||||
done
|
||||
# Package security and security-advanced as plugin
|
||||
mvn install -Dmaven.repo.local="${WORKDIR}"/.m2/repository -DskipTests=true -P advanced || die
|
||||
}
|
||||
src_install() {
|
||||
dodir "${INSTALL_PATH}"
|
||||
unzip "target/releases/${PLUGIN_NAME}.zip" -d "${D}${INSTALL_PATH}" || die
|
||||
}
|
4
app-misc/opendistro-security-kibana-plugin/Manifest
Normal file
4
app-misc/opendistro-security-kibana-plugin/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
EBUILD opendistro-security-kibana-plugin-0.10.0.3-r2.ebuild 1913 BLAKE2B e5fa2a0167503876d4ab2ac6975129929c2ef9b321a4db36682958dd139f9635c5bd94ff72237273968d8fc855c3006929a0cac8f0a73420f9c98b87054a9e0d SHA512 9459943dabb7468c0bf05106a8e88fc091c0fb8d2b0c440bd9afa1253419719a72ff8f5d0d3d3f256ba142be63c1cda901cc87838bf17e1aa76f8c81e610a914
|
||||
EBUILD opendistro-security-kibana-plugin-1.2.0.1.ebuild 1805 BLAKE2B 5c646125e13c137a5739e426f35c0f9dda5f8072990e2bf5ea75ba193363c8c009c27d3ff1831ee211b6ed01d55763aef78af5e0b5ed62725df7952e4616e0c2 SHA512 d3f2d727702e40f6ccadcfe428f82f653e4be233ac90051d472ca8804952fa78e9560ec4c9f0b5ff79f44f9c75d1def8159d9901db3a2f5016274b9f363e887d
|
||||
EBUILD opendistro-security-kibana-plugin-1.3.0.0.ebuild 1901 BLAKE2B 0515a8eed6fdd11d23af6738874242dc6fb5c8aa9107c16240b625a9a620b387d221a8db05e7251cb1c83086e159ceec75b3caad410e5f55ded863e88b707c38 SHA512 0d47a44d0cb21c97617b94d3709378fc3a12a0a24892b4d3f03594a11153efc01cd269769da868e094ca8fde7d79347eec323661b3ea3e6867aa94f4664f8f19
|
||||
MISC metadata.xml 256 BLAKE2B 228c8bf9d12e1f10d43580d89beb30ab17adf7980ab4fac014cc524cd12865b35dfa97b9f1339c32f6d888d31418e0a6ec30bdcfc5a8afd9acc80a31e481ccd7 SHA512 c20794e11ecedf0385f619a54039522707a3cb65e2d78360509066b8aa9c11022c30de8a496549f3c32659ad02ad2821105d4d483675c563882d22eb02f76d72
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit git-r3
|
||||
DESCRIPTION="Open Distro security Kibana plugin"
|
||||
HOMEPAGE="https://github.com/opendistro-for-elasticsearch/"
|
||||
|
||||
declare -A my_dep_repo=(
|
||||
[security_kibana_plugin]="https://github.com/opendistro-for-elasticsearch/security-kibana-plugin"
|
||||
[security_parent]="https://github.com/opendistro-for-elasticsearch/security-parent"
|
||||
)
|
||||
declare -A my_dep_ref=(
|
||||
[security_kibana_plugin]="refs/tags/v${PV}"
|
||||
[security_parent]="refs/tags/v1.2.1.0"
|
||||
)
|
||||
S="${WORKDIR}/security_kibana_plugin"
|
||||
PLUGIN_NAME="opendistro_security_kibana_plugin-${PV}"
|
||||
INSTALL_PATH="/opt/kibana/plugins/${PLUGIN_NAME}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="network-sandbox"
|
||||
RDEPEND=""
|
||||
DEPEND="virtual/jdk:11
|
||||
>=net-libs/nodejs-10.16
|
||||
dev-java/maven-bin
|
||||
app-arch/unzip"
|
||||
|
||||
my_fetch_dep() {
|
||||
local name="${1}"
|
||||
local repo="${my_dep_repo[${name}]}" ref="${my_dep_ref[${name}]}"
|
||||
git-r3_fetch "${repo}" "${ref}"
|
||||
git-r3_checkout "${repo}" "${WORKDIR}/${name}"
|
||||
}
|
||||
my_compile_dep() {
|
||||
local name="${1}"
|
||||
einfo "Compiling ${name}"
|
||||
cd "${WORKDIR}/${name}" || die
|
||||
mvn install -Dmaven.repo.local="${WORKDIR}"/.m2/repository -DskipTests=true || die
|
||||
cd "${S}" || die
|
||||
}
|
||||
src_unpack() {
|
||||
for name in security_kibana_plugin security_parent; do
|
||||
my_fetch_dep "${name}"
|
||||
done
|
||||
}
|
||||
src_prepare() {
|
||||
mkdir -p "${WORKDIR}"/.m2/repository
|
||||
eapply_user
|
||||
}
|
||||
src_compile() {
|
||||
my_compile_dep security_parent
|
||||
npm install || die
|
||||
local PLUGIN_DEST="build/kibana/${PLUGIN_NAME}"
|
||||
mkdir -p "${PLUGIN_DEST}" || die
|
||||
cp -a "index.js" "package.json" "node_modules" "lib" "public" \
|
||||
"${PLUGIN_DEST}" || die
|
||||
my_compile_dep security_kibana_plugin
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir temp || die
|
||||
unzip "target/releases/${PLUGIN_NAME}.zip" -d temp || die
|
||||
dodir "${INSTALL_PATH}"
|
||||
mv "temp/kibana/${PLUGIN_NAME}/"* "${D}${INSTALL_PATH}/" || die
|
||||
}
|
Loading…
Reference in New Issue
Block a user