summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Mózes <hydrapolic@gmail.com>2023-08-18 13:40:13 +0000
committerJoonas Niilola <juippis@gentoo.org>2023-09-16 10:57:15 +0300
commit704f3fc4e858d5453e2c7dc28571de34f8388e49 (patch)
tree39879e25caa61f29ef6a8f7ca1311549e7021958 /app-admin/logstash-bin
parentapp-misc/elasticsearch: add 7.17.12 (diff)
downloadgentoo-704f3fc4e858d5453e2c7dc28571de34f8388e49.tar.gz
gentoo-704f3fc4e858d5453e2c7dc28571de34f8388e49.tar.bz2
gentoo-704f3fc4e858d5453e2c7dc28571de34f8388e49.zip
app-admin/logstash-bin: add 7.17.12
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-admin/logstash-bin')
-rw-r--r--app-admin/logstash-bin/Manifest2
-rw-r--r--app-admin/logstash-bin/logstash-bin-7.17.12.ebuild88
2 files changed, 90 insertions, 0 deletions
diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest
index 91ef2439e2fc..cc79a48dee4a 100644
--- a/app-admin/logstash-bin/Manifest
+++ b/app-admin/logstash-bin/Manifest
@@ -1,4 +1,6 @@
DIST logstash-7.17.10-linux-x86_64.tar.gz 364617045 BLAKE2B da08d74aa970525d232221f78695817d479a2b3ad1422f46f3a4e54473991aa6ff63d5e7cbd4aaf885c3d187abfd096ddfac8d2fd8a4c692d29eb1c1cb516d1a SHA512 5391bfef09c403a365518a3a8e8f075bb7974b137095b3c7fd2a0173cfa6dbd4a7451170a3657afef3e6a468e90a38d6e7a5b669799878f9389fa44ff8fee026
+DIST logstash-7.17.12-linux-x86_64.tar.gz 363841975 BLAKE2B eff842a58d4d970bf8eae286c581d9ee0e331db9789e7c3f41ddba9cc639772f3e894924612cdb66eb7042248fc1dfeb3ddd5738cb85c1da9478a578bf291c83 SHA512 4395a9a2c577456bab9269f0e7b451c329cfb6f6f3e69c85315f670665ba16b4ef174f7d788c262511077c29e92c26dc06a86550b233764794ffc6ca1a058118
DIST logstash-7.17.9-linux-x86_64.tar.gz 364476389 BLAKE2B b02e52e0a9e9a8b7d6b7487333417a95363316dab8530c180b8a42e63f35a20628d9830cd596a6a960d6cb67603dd1f1bfc293ba2705a4683824aafafd8acbc6 SHA512 a43d592e70f023a594f31a3fba365a9cca6611599bd61f998cb1fc38ddd177d459bce23eaf54f811fe0a87a47cdd4bf4b4d4c8008dab1ac03173371f63b91b6c
DIST logstash-oss-7.17.10-linux-x86_64.tar.gz 364424431 BLAKE2B 24553974cd0762424dce27ae1cefc44173e7786d32ce2973f07ec3acf8fd5632e36e36f3f0170f2b1ff8df0f716b9de835df55af800ef639afdba29f47b988bb SHA512 ba22c4c414f47515387bb28cc47612bea58aff97c407f2571863e83174a2bef273627f65dd531ed833e40668c79144a501d49c3ec691c1b1c4d8fb0cb124b052
+DIST logstash-oss-7.17.12-linux-x86_64.tar.gz 363645002 BLAKE2B 2ee159118a07685499bff7cad10aeba39991d65797ce45e75ed733e3aafa45913b0504ec97d28d2353643150606fae36e5e9c380eefd06eb0357e90beb716e33 SHA512 da20df2765a15eef81976dc3778a7561660fad04156b4ebc197581f94234934b3f4b20aec2e39eab3af9c8694b1a3e36a429170852c238451e0dbb24ea9dfd2a
DIST logstash-oss-7.17.9-linux-x86_64.tar.gz 364275206 BLAKE2B 06befbe70974ebe740caad79527b92d78d034de37461bf1883862463fe6b063d7a3759729a6191277c2c5724faaccec315c77c77ac384858f34a9594d400abfa SHA512 7c3f9867853582e5d06b9f895b4740abf56a9b6ce34dfbfb624cf9a4b956f489145cd13f3194a7fb16efc52410f55e797c269dc2957a35bdebf9e1aaa3547eaa
diff --git a/app-admin/logstash-bin/logstash-bin-7.17.12.ebuild b/app-admin/logstash-bin/logstash-bin-7.17.12.ebuild
new file mode 100644
index 000000000000..684ea639d771
--- /dev/null
+++ b/app-admin/logstash-bin/logstash-bin-7.17.12.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 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"
+}