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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38E9715838C for ; Sat, 20 Jan 2024 13:33:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DEBDE29FA; Sat, 20 Jan 2024 13:33:54 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 42A7FE29F5 for ; Sat, 20 Jan 2024 13:33:54 +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 0AF943432D2 for ; Sat, 20 Jan 2024 13:33:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 539F014CA for ; Sat, 20 Jan 2024 13:33:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1705757406.987287bcedc164e51a80277231d2a0393a559f45.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/filebeat/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/filebeat/Manifest app-admin/filebeat/filebeat-7.17.16.ebuild X-VCS-Directories: app-admin/filebeat/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 987287bcedc164e51a80277231d2a0393a559f45 X-VCS-Branch: master Date: Sat, 20 Jan 2024 13:33:50 +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: 08516b89-6c56-4477-b856-48dd767ce7fd X-Archives-Hash: 62ea6ae76919519e079ee0a1504b806a commit: 987287bcedc164e51a80277231d2a0393a559f45 Author: Tomáš Mózes gmail com> AuthorDate: Thu Jan 11 14:44:07 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 20 13:30:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987287bc app-admin/filebeat: add 7.17.16 Bug: https://bugs.gentoo.org/905879 Signed-off-by: Tomáš Mózes gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33433 Signed-off-by: Sam James gentoo.org> app-admin/filebeat/Manifest | 2 ++ app-admin/filebeat/filebeat-7.17.16.ebuild | 58 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/app-admin/filebeat/Manifest b/app-admin/filebeat/Manifest index d4ef01ffa60f..65bd09b8e02a 100644 --- a/app-admin/filebeat/Manifest +++ b/app-admin/filebeat/Manifest @@ -1,2 +1,4 @@ +DIST filebeat-7.17.16-deps.tar.xz 633004812 BLAKE2B c10790fc07e6fcc583f88944a4d114cb712f8c27e27006d11bdbea5dfe2e36b504f767034c0b033af4363b44e3c38c92f6a490b4a65303d5aee49ebfe76c9f29 SHA512 91ed7b7e55d6659b52ce89756e49364595322e8486c3b9f13199f98871909d88c4fd0515e3867af43173b1b966965c992cc48c71de026a7e2a401a515092809f +DIST filebeat-7.17.16.tar.gz 101629004 BLAKE2B c67eed28574948022673737dba4d39409c23f5b4b94f3a9935090acd7a1c34d9302b35b42f6ab6e58cdf25a2dd948adbefc145f1075cd574e8196af000cf129c SHA512 db52d802f0f253e714a6e26436bbec82bfcf74f38d8f2a8f862a9318375b020676d3980a4b20f468ced0215de1eb0a009915a33a61652fe11de8098cd8542bfe DIST filebeat-7.17.5-deps.tar.xz 548163248 BLAKE2B 720a91b3e5a2fe16394ef3502f133837bd64d326bda6fadc066ae6517d9682a82614c6c699f9edacbe6d987ef326542bbf875a4063e2a4513ea296259f9b2445 SHA512 3b3cc39bdd966998a5b7867e60d390a539e1dd80ec7b8d68e3b0b9c1aab9eecca3810d1e989c74f15c20385a7c9a41e820129e28d33c2e47c2ba90d5e236a077 DIST filebeat-7.17.5.tar.gz 101518610 BLAKE2B 4736a097e82741981841b78b18947b47fef32a50d6f6b498b4377f2e9ffedc79196b9ea0d70398a9830864f36520538ee868fcdf6081ea5b157e69aabe316ab9 SHA512 c82bc5c85492b6fe85b172d52d3faf4a6a2e8d8ec3f1964549beea6eda5a5e76ad0c55e084ad42ce429d0caac18fc7f0da769b9242c7959558800e0e3de7e14b diff --git a/app-admin/filebeat/filebeat-7.17.16.ebuild b/app-admin/filebeat/filebeat-7.17.16.ebuild new file mode 100644 index 000000000000..26d8f23ed3de --- /dev/null +++ b/app-admin/filebeat/filebeat-7.17.16.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch" +HOMEPAGE="https://www.elastic.co/products/beats" +SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/hydrapolic/gentoo-dist-filebeat/releases/download/${PV}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +S="${WORKDIR}/beats-${PV}" + +src_prepare() { + default + + # avoid Elastic license + rm -r x-pack || die + + # use ${PV} instead of git commit id + sed -i "s/\(COMMIT_ID=\).*/\1${PV}/g" "${S}/libbeat/scripts/Makefile" || die +} + +src_compile() { + emake -C "${S}/filebeat" +} + +src_install() { + keepdir /etc/${PN} + keepdir /var/{lib,log}/${PN} + + fperms 0750 /var/{lib,log}/${PN} + + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd.1" ${PN} + + docinto examples + dodoc ${PN}/{filebeat.yml,filebeat.reference.yml} + + dobin filebeat/filebeat +} + +pkg_postinst() { + if [[ -n "${REPLACING_VERSIONS}" ]]; then + elog "Please read the migration guide at:" + elog "https://www.elastic.co/guide/en/beats/libbeat/$(ver_cut 1-2)/upgrading.html" + elog "" + fi + + elog "Example configurations:" + elog "${EROOT}/usr/share/doc/${PF}/examples" +}