From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8DF81581D8 for ; Wed, 4 Dec 2024 18:10:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E076E086A; Wed, 4 Dec 2024 18:10:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3919CE086A for ; Wed, 4 Dec 2024 18:10:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1873B340C43 for ; Wed, 4 Dec 2024 18:10:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 597F41F45 for ; Wed, 4 Dec 2024 18:10:42 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1733335837.ba265f69edca16df2b5867173fda8f1aecdf72c4.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logstash-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/logstash-bin/Manifest app-admin/logstash-bin/logstash-bin-7.17.24.ebuild X-VCS-Directories: app-admin/logstash-bin/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: ba265f69edca16df2b5867173fda8f1aecdf72c4 X-VCS-Branch: master Date: Wed, 4 Dec 2024 18:10:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8d4b400f-2a18-4ebc-9c2c-6ef84fc5339f X-Archives-Hash: fb500dbeedede9f1d558c628906d519d commit: ba265f69edca16df2b5867173fda8f1aecdf72c4 Author: Tomáš Mózes gmail com> AuthorDate: Mon Oct 28 14:59:04 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Wed Dec 4 18:10:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba265f69 app-admin/logstash-bin: add 7.17.24 Signed-off-by: Tomáš Mózes gmail.com> Signed-off-by: Joonas Niilola gentoo.org> app-admin/logstash-bin/Manifest | 2 + app-admin/logstash-bin/logstash-bin-7.17.24.ebuild | 88 ++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest index 833df9cd200c..a4662f5739db 100644 --- a/app-admin/logstash-bin/Manifest +++ b/app-admin/logstash-bin/Manifest @@ -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 diff --git a/app-admin/logstash-bin/logstash-bin-7.17.24.ebuild b/app-admin/logstash-bin/logstash-bin-7.17.24.ebuild new file mode 100644 index 000000000000..3fd750a91df6 --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-7.17.24.ebuild @@ -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" +}