app-admin/logstash-bin: add 7.17.24

Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Tomáš Mózes
2024-12-04 20:10:37 +02:00
committed by Joonas Niilola
parent 4e60b94094
commit ba265f69ed
2 changed files with 90 additions and 0 deletions
+2
View File
@@ -1,2 +1,4 @@
DIST logstash-7.17.16-linux-x86_64.tar.gz 364241317 BLAKE2B 1abb5d3cb4c47596b2df44ca177d9352f53c3b1497e2218f8c483c5298646754c1bf934fc262796eb72fbfc79adde8ba6fadd2b7cc46ff7b11d72f1f52a2bd62 SHA512 cded2127150708de766cec54b39ba90e3eb8b48139f0fd814e8c3691a0a8e87ade46217dadf4d3ccd90daff842984804fbfa056e0484b8e40bcfee86dfbdd10d
DIST logstash-7.17.24-linux-x86_64.tar.gz 368374974 BLAKE2B 9c5c4df09e24da6ffbf9f4bbe4b6dfdb1ce7ab9494dddb9d179f88922b16dd9d2127cbb03b242bce43fac4a868e97f14d8c0ca9495d0823d9f63ad80f7395b7d SHA512 a9cb4aa383bd2841cdbb687a61100a726ce32458423cfda63352cd160b6270c49b46d2a9b2655688b3561d19390f5a9a5e50eba1058a17dbdbd0bcae686c6031
DIST logstash-oss-7.17.16-linux-x86_64.tar.gz 364037570 BLAKE2B 112d8138213c366704676c29ffaeb7af3090953fd42d3652751ef5b5d94d79338fafd119741d913a0eb6308714f896392385938d0595ea08cf681630213ece3b SHA512 382f60c7bea4f9131d8ea70392b24235b3d84906a67b275d6983315080747e85710a6a3a52f6dd7306465d12cf3e7f798a7f2b60e0a3bcfa01926ba9890c3dc5
DIST logstash-oss-7.17.24-linux-x86_64.tar.gz 368169355 BLAKE2B 9431bde9ed61abbcea8fd5b2fc0724e7fe52af0ace8bd325b30ffbe31515c4cc3dfe4c9016c841ba0fd0445d9aa27b883892dd45c8fa8fab9b83a1adf71ce30a SHA512 672da69c59ba34ed50396831367f479d2749150149f14ce8ba326dd900fb26b60483ba8667707f8a64231e9b8aa8942713af89fb3a6971a69ced98b3b11c285e
@@ -0,0 +1,88 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2
MY_PN="${PN%-bin}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Tool for managing events and logs"
HOMEPAGE="https://www.elastic.co/products/logstash"
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 MIT x-pack? ( Elastic )"
SLOT="0"
KEYWORDS="~amd64"
IUSE="x-pack"
RESTRICT="strip"
QA_PREBUILT="opt/logstash/vendor/jruby/lib/jni/*/libjffi*.so"
RDEPEND="acct-group/logstash
acct-user/logstash
virtual/jre"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
local d
for d in aarch64-FreeBSD aarch64-Linux arm-Linux Darwin i386-Linux i386-SunOS \
i386-Windows mips64el-Linux ppc64-AIX ppc64le-Linux ppc64-Linux \
ppc-AIX s390x-Linux sparcv9-Linux sparcv9-SunOS x86_64-DragonFlyBSD \
x86_64-FreeBSD x86_64-OpenBSD x86_64-SunOS x86_64-Windows; do
rm -r vendor/jruby/lib/jni/$d || die
done
# remove bundled java
rm -r jdk || die
}
src_install() {
keepdir /etc/"${MY_PN}"/{conf.d,patterns,plugins}
keepdir "/var/log/${MY_PN}"
insinto "/usr/share/${MY_PN}"
newins "${FILESDIR}/agent.conf.sample" agent.conf
rm -v config/{pipelines.yml,startup.options} || die
insinto /etc/${MY_PN}
doins -r config/.
doins "${FILESDIR}/pipelines.yml"
rm -rv config data || die
insinto "/opt/${MY_PN}"
doins -r .
fperms 0755 "/opt/${MY_PN}/bin/${MY_PN}" "/opt/${MY_PN}/vendor/jruby/bin/jruby" "/opt/${MY_PN}/bin/logstash-plugin"
newconfd "${FILESDIR}/${MY_PN}.confd-r2" "${MY_PN}"
newinitd "${FILESDIR}/${MY_PN}.initd-r2" "${MY_PN}"
insinto /usr/share/eselect/modules
doins "${FILESDIR}"/logstash-plugin.eselect
}
pkg_postinst() {
ewarn "Self installed plugins are removed during Logstash upgrades (Bug #622602)"
ewarn "Install the plugins via eselect module that will automatically re-install"
ewarn "all self installed plugins after Logstash upgrades."
elog
elog "Installing plugins:"
elog "eselect logstash-plugin install logstash-output-gelf"
elog
elog "Reinstalling self installed plugins (installed via eselect module):"
eselect logstash-plugin reinstall
elog
elog "Sample configuration:"
elog "${EROOT}/usr/share/${MY_PN}"
elog
elog "The default pipeline configuration expects the configuration(s) to be found in:"
elog "${EROOT}/etc/logstash/conf.d/*.conf"
}