From a6764d56b1c85c8272783500983011c143c72d80 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 5 Dec 2024 02:07:17 +0000 Subject: gentoo auto-resync : 05:12:2024 - 02:07:17 --- app-admin/Manifest.gz | Bin 32333 -> 32336 bytes app-admin/awscli/Manifest | 2 + app-admin/awscli/awscli-1.36.15.ebuild | 95 +++++++++++++++++++++ app-admin/filebeat/Manifest | 3 + app-admin/filebeat/filebeat-7.17.25.ebuild | 58 +++++++++++++ app-admin/logstash-bin/Manifest | 6 +- app-admin/logstash-bin/logstash-bin-7.17.16.ebuild | 88 ------------------- app-admin/logstash-bin/logstash-bin-7.17.25.ebuild | 88 +++++++++++++++++++ 8 files changed, 249 insertions(+), 91 deletions(-) create mode 100644 app-admin/awscli/awscli-1.36.15.ebuild create mode 100644 app-admin/filebeat/filebeat-7.17.25.ebuild delete mode 100644 app-admin/logstash-bin/logstash-bin-7.17.16.ebuild create mode 100644 app-admin/logstash-bin/logstash-bin-7.17.25.ebuild (limited to 'app-admin') diff --git a/app-admin/Manifest.gz b/app-admin/Manifest.gz index 59b28f31183b..75c6511d475c 100644 Binary files a/app-admin/Manifest.gz and b/app-admin/Manifest.gz differ diff --git a/app-admin/awscli/Manifest b/app-admin/awscli/Manifest index eb24908915b9..56f264493f88 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -1,9 +1,11 @@ DIST aws-cli-1.36.12.gh.tar.gz 2842234 BLAKE2B b9f333d7fa8b7aa9c0452b6da87c3b097f1b5027f1f9c36888448f5e5763a93696e1d25cca167a17d9ab7332c5491be500a44462eed44c18f886ec9f0816a248 SHA512 b7797a29230628201d808958c4f9660768646f1c1a3f53c39c09791fb8ff0cbfab000b950abc87541ff9e54723b726913a487cf5f164c8b82e609fd92dae7b14 DIST aws-cli-1.36.13.gh.tar.gz 2845931 BLAKE2B 53a4dc5bfa111ea32a89aa1e6f8795a2007419dd65b092abd5f9d0040d7f1750c570b480071e427ce1738a37d4ac8f5e56628d9f4462cdfbdfe90509bc1c83f7 SHA512 df2ce608b52efb2d8641e1ecea201507def53c11ef7dfd85e4a83423fdfbff75ff94f3e3c0ab1e9ebbce56442fface5b13d95e441519abb3b05af14f77145a2c +DIST aws-cli-1.36.15.gh.tar.gz 2848095 BLAKE2B ad355829f2388c6035713308badf8239684a475e1c925838cfd16f88505f88d3c71b6f73d5d4335936d3aeae239cb78f08150fcfd36c7b15cbea8a61813786b6 SHA512 d8e559b468b9bd50941b073229525be9ffc218dbf4c72894146c745d635bce94e3c5d4532b7a14a91892964431a601dd113f127bcbe2502711fc7422e0beb920 DIST aws-cli-1.36.4.gh.tar.gz 2825870 BLAKE2B 3a13a50077087633972c0eb908e0116e432f0036871f4d5a5e2429ea86dfc0c5d40a87e0950c02bc7622fb0e56b9a3ee9fc8ee9a6a1ed8ae17728bf479401d13 SHA512 735a228d52b525cfc4a9a403ad8364bfb9c558ba86daf6966743126eb21de6d0f49d76fd21d9c7a0fd29f229b4b71e0778d4b1ccd0b2e27b0c794f1e11cd6c83 DIST aws-cli-1.36.9.gh.tar.gz 2836018 BLAKE2B aada8a63f5bedd5aeeddd56fe18bb49ae1763ba5c737f72aa2f2e00b57fa4e1ab52ec266ca6883859ec633ec2b1658383426809870ba1372d86f9d8e0a055ac6 SHA512 ec47c26012027071732d60f9bd8b3322c1c75b2362dffe7affd8cd6d70732e6239bfbb6531759a247bcb2f29613a88b196d10f405302d25a05ada7968bd7574e EBUILD awscli-1.36.12.ebuild 3186 BLAKE2B 63a0fb498273465997fdf8010dcec351d473545febb8aaf2c222c3176a00f0cce5edadbfbc778689949142466c05e371a017c07a54ce30deb7bd7ca86cdb1e82 SHA512 2db712c340a0d13e4f89a8ca4599cb89f83d11d519b2f90f1dcf72e903830d70ae31efbed50a958b98655e24327cc027c0c945bc061f9de7c8fbf4d45f2fa625 EBUILD awscli-1.36.13.ebuild 3186 BLAKE2B 63a0fb498273465997fdf8010dcec351d473545febb8aaf2c222c3176a00f0cce5edadbfbc778689949142466c05e371a017c07a54ce30deb7bd7ca86cdb1e82 SHA512 2db712c340a0d13e4f89a8ca4599cb89f83d11d519b2f90f1dcf72e903830d70ae31efbed50a958b98655e24327cc027c0c945bc061f9de7c8fbf4d45f2fa625 +EBUILD awscli-1.36.15.ebuild 3186 BLAKE2B 63a0fb498273465997fdf8010dcec351d473545febb8aaf2c222c3176a00f0cce5edadbfbc778689949142466c05e371a017c07a54ce30deb7bd7ca86cdb1e82 SHA512 2db712c340a0d13e4f89a8ca4599cb89f83d11d519b2f90f1dcf72e903830d70ae31efbed50a958b98655e24327cc027c0c945bc061f9de7c8fbf4d45f2fa625 EBUILD awscli-1.36.4.ebuild 3179 BLAKE2B b08625a4293f13915f076119919380f482a550799f0b4a8ba37f413fb23314bd5f8ee153658520d17560e91fc464ffdb0bc61f444dda692627baa6ddc80fd97b SHA512 2acdae36bf23c5c4c4bf23ca22ef04df62e76f08fc3ecc9acf6ba28bd4c6b9bd325f301123c9cb5694b62991cf41bfcff797ce4c72ae07e0d7c490df02adae4c EBUILD awscli-1.36.9.ebuild 3186 BLAKE2B 63a0fb498273465997fdf8010dcec351d473545febb8aaf2c222c3176a00f0cce5edadbfbc778689949142466c05e371a017c07a54ce30deb7bd7ca86cdb1e82 SHA512 2db712c340a0d13e4f89a8ca4599cb89f83d11d519b2f90f1dcf72e903830d70ae31efbed50a958b98655e24327cc027c0c945bc061f9de7c8fbf4d45f2fa625 MISC metadata.xml 385 BLAKE2B 5accfb180a91179cc6df539d42d1de06be3ebfec73f3edb719f5d59576103b9a8cb0c7c524c1042630e0cf99f068939a19f04c7b1b4a2acf9e072369df80d913 SHA512 ccb3d516326c5dbdf53068372ce25baecc137d21a04516374362212b969cc928dacbf743b4953da33f28482905798f069d09d19c88d9913f2b32648db25115ab diff --git a/app-admin/awscli/awscli-1.36.15.ebuild b/app-admin/awscli/awscli-1.36.15.ebuild new file mode 100644 index 000000000000..2960403cf7e0 --- /dev/null +++ b/app-admin/awscli/awscli-1.36.15.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit bash-completion-r1 distutils-r1 + +MY_P=aws-cli-${PV} +DESCRIPTION="Universal Command Line Environment for AWS" +HOMEPAGE=" + https://github.com/aws/aws-cli/ + https://pypi.org/project/awscli/ +" +SRC_URI=" + https://github.com/aws/aws-cli/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +# botocore is x.(y-1).(z+59) +BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) - 1)).$(( $(ver_cut 3-) + 59 ))" +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + !app-admin/awscli-bin +" +BDEPEND=" + test? ( + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + # strip overzealous upper bounds on requirements + sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local serial_tests=( + tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success + tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success} + tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success + tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking + tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows + tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking + tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success + tests/unit/customizations/test_sessionmanager.py + tests/unit/test_compat.py::TestIgnoreUserSignals + tests/unit/test_help.py + tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored + ) + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + EPYTEST_XDIST= epytest "${serial_tests[@]}" + + local EPYTEST_DESELECT=( + "${serial_tests[@]}" + + # flaky (some ordering?) + tests/functional/s3/test_cp_command.py::TestCPCommand::test_multipart_upload_with_checksum_algorithm_crc32 + ) + # integration tests require AWS credentials and Internet access + epytest tests/{functional,unit} +} + +python_install_all() { + newbashcomp bin/aws_bash_completer aws + + insinto /usr/share/zsh/site-functions + newins bin/aws_zsh_completer.sh _aws + + distutils-r1_python_install_all + + rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die +} diff --git a/app-admin/filebeat/Manifest b/app-admin/filebeat/Manifest index 468ab2da1b3e..5533fee80cd8 100644 --- a/app-admin/filebeat/Manifest +++ b/app-admin/filebeat/Manifest @@ -2,5 +2,8 @@ AUX filebeat.confd 269 BLAKE2B f9cc2a3d96be870d755c41606a274e94d6f6a2a5be71aeb3f AUX filebeat.initd.1 1385 BLAKE2B 889ea416c252efa60fd6c7c8fae8937f5064455bb6289e1fa6127ddd1535387dbdfe9a91afb091745a7d0e5cd058e2296a5d270e52494595ee0e72111500fd64 SHA512 d34bcc9d2e032ebc79f0ff1272974ba4346bdd7a32c24c005eaa3b2a8dde6767fd88460b7b79f2f0b98a624f371f2b3a5483ef92909da4b21e4f0967ddcd86c8 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.25-deps.tar.xz 696720440 BLAKE2B 795bf60e9bf55b5bf32587a23aedfdfa5bc0e891ff976fc8be5000a12a6053bd75149b927f7c29c012346eb92446b0bd89e6fbf8b42f60c3979f928becc7f65a SHA512 aae8f2f8288819c1104ca74faa81b78534c1bc2a7ee884f8eb2d4e2e0d47083ad1c3fe4eca9ccd16e50c2838319082ae14ec484ddda7073b40e0b0e523ba240a +DIST filebeat-7.17.25.tar.gz 101680280 BLAKE2B bec6a6f87d67c44cb050c29c39dcf78dd90a48945669de291c3ba2a1bea07759e596294482c7841df535f97ff7ae9ff4690a70196b4776e0bf9b7657568d6800 SHA512 893fcaa18c72f0d6d6d3ae7c2c65d57242b2ce8284118acd15a2a18f0818fcdb9870dccdc7dd69ba5ec3fa0648471497711fd1ed13f978a84841805a67627e09 EBUILD filebeat-7.17.16.ebuild 1340 BLAKE2B 46e8c6e3088ac4fb9a70e509c171c5fef1f36d0db6145b398ab1bdad1e9ffe4f6ca4ea3dbf10ea02a6ffb335e20e84f18e8fcf9e7e7d707df72bd135cf30741b SHA512 9eb4a95ee44a5ff31f1e7114b4d2f87f919786f2fb8402977cdbd09d30101aca89f00717fc847ba5eab7a39351a882d93173d9673dfb87b32271c2eb54cf7e03 +EBUILD filebeat-7.17.25.ebuild 1331 BLAKE2B 905d9b7751114307fcc95f2853c41d506a968cea73524a638e239c766b89335803f45502d9cb7b8237e5a372a7d0ab2502cbcd4d43104dafe1b11c2c65743eba SHA512 52a6ed19b426ec9fd22dabcf804dff623e639b8f0c7f1377abd9137413402e5316410bb29c24f8c573ec508819cbc98d224e9d975b1b9aedf79d15519b5521d0 MISC metadata.xml 492 BLAKE2B 6b16876306316f37d59bf32aac33a2ff918c63dbf2ca0f71448249b20e99e5576f20dbad997a227730cb836c7f244ea8301dae62603e1961127bd755ab87f5b0 SHA512 c42a8bc75fd53383ea094d5049ba5f294cb8a2f0b0fe435eb74427bc82751bfbe4e4bfe076abbd052946ae6b0cf2f7129040a47b439a704629c6846ce6b7fdec diff --git a/app-admin/filebeat/filebeat-7.17.25.ebuild b/app-admin/filebeat/filebeat-7.17.25.ebuild new file mode 100644 index 000000000000..6f4efaa268bf --- /dev/null +++ b/app-admin/filebeat/filebeat-7.17.25.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/releases/download/${P}/${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" +} diff --git a/app-admin/logstash-bin/Manifest b/app-admin/logstash-bin/Manifest index 7caaca713903..4e0ee5ce7b04 100644 --- a/app-admin/logstash-bin/Manifest +++ b/app-admin/logstash-bin/Manifest @@ -3,7 +3,7 @@ AUX logstash-plugin.eselect 1768 BLAKE2B 539246fb1c6e00fa0928af146d3c32ef69f61e3 AUX logstash.confd-r2 767 BLAKE2B fa251570a13b2bc2d0779e0f00549f40bc957f211be0f4164829f7bf731221e5adabdb27341c703f1ea67b19455e8832f5d822fd41ffc64994007201690feff6 SHA512 83eecf30baa160041f33fd3dafce317c1692efaf676d0fdc9bee04965eafb15f1e01d07a09607d345665f6bebc4db90d17a0abd1c7fd4962d6926ac069f16768 AUX logstash.initd-r2 1997 BLAKE2B 4a2e36bcd171950ddea636f9269708416536b4f54c620b36eca91839b894f0b4242775ec85aadbe93714b8aa7cd535774cd0558f4bc90096638d0640e4f3961f SHA512 23203f99610d1666247ee8584b1d1452216f65c6c06345007768eac494c9de755a79bd74b3fd241e62f2239d52394626a61e06100486f89b7f3a2b8282389d56 AUX pipelines.yml 285 BLAKE2B d256148500854501d8e17c04a0abdcbf1be7aeea6d0e1eaa882023923967ebc012ef95185e06e33fbec60eaa949df650ebe4f9b18abaa7f4edab25d4e5b429f4 SHA512 9a9cff9472c7cd3164bdc73e37521489979106021b3d97fb2b005b74b150d2f2ee8df983219e01f8b5b00907008f4e9816fc303ace3b440a4b91dd178b6a098d -DIST logstash-7.17.16-linux-x86_64.tar.gz 364241317 BLAKE2B 1abb5d3cb4c47596b2df44ca177d9352f53c3b1497e2218f8c483c5298646754c1bf934fc262796eb72fbfc79adde8ba6fadd2b7cc46ff7b11d72f1f52a2bd62 SHA512 cded2127150708de766cec54b39ba90e3eb8b48139f0fd814e8c3691a0a8e87ade46217dadf4d3ccd90daff842984804fbfa056e0484b8e40bcfee86dfbdd10d -DIST logstash-oss-7.17.16-linux-x86_64.tar.gz 364037570 BLAKE2B 112d8138213c366704676c29ffaeb7af3090953fd42d3652751ef5b5d94d79338fafd119741d913a0eb6308714f896392385938d0595ea08cf681630213ece3b SHA512 382f60c7bea4f9131d8ea70392b24235b3d84906a67b275d6983315080747e85710a6a3a52f6dd7306465d12cf3e7f798a7f2b60e0a3bcfa01926ba9890c3dc5 -EBUILD logstash-bin-7.17.16.ebuild 2532 BLAKE2B e4e62d67ed4fe4da1c230aea3697911b9cdab54030ec71ec18890ffc0193610091f8a66ec63e14f0dc065cace960114ad1f9a38fad64dece6c5b469f0589f74e SHA512 a3a6686f4e1330b95cb06bbcb7e31df349136d5b940294ddc759b18755877f13f721c019c920ed53982f0775c3849c811165196fdda9aa622ba29c42087228b7 +DIST logstash-7.17.25-linux-x86_64.tar.gz 368372414 BLAKE2B 5ae4b945f8e7fda79d720f9adc8001c0e296df300b80761d562508435985fa93bb5490913984cc753b211df0cf1ed88f295555e005f1f43a8310a9f50d730c8c SHA512 ea153179b191e3810fc3585efaf81bf056e4f0e63ba452b30260829d85d72b8c72efea316d1ec868799dda72155ef85463c483184508a3c0dda110dd83bfd2b2 +DIST logstash-oss-7.17.25-linux-x86_64.tar.gz 368174363 BLAKE2B 1a73b1343d4b2ab34e9ba6304044128f7c03b1e206d74faf97a84f2f6b0f3c61b0363b9f017625ae0727bae119fd17308aca673c00e3551dcc987824e4752f1f SHA512 5191ba36f501a0caba5dea9e7d03f5acdf337e60778f0e9f52fc011225983452faca16253529e778fba896aec9ebca9e4b24cb965a15c1f9709ed0360ff9ef78 +EBUILD logstash-bin-7.17.25.ebuild 2532 BLAKE2B e4e62d67ed4fe4da1c230aea3697911b9cdab54030ec71ec18890ffc0193610091f8a66ec63e14f0dc065cace960114ad1f9a38fad64dece6c5b469f0589f74e SHA512 a3a6686f4e1330b95cb06bbcb7e31df349136d5b940294ddc759b18755877f13f721c019c920ed53982f0775c3849c811165196fdda9aa622ba29c42087228b7 MISC metadata.xml 571 BLAKE2B 8fb52685ec095fe2a192d477c7e5737be2ab526fe5ee9c77f62c8aa1799dea7c471eb3ea073352b2d09e3f1ba82b0dea05dd03648eb810e32504a2707342832e SHA512 36de48dec06abe08515d48f2e2fb86e5125ab6e9331f989dea8fff9d2511b337afffc75a842bf85b051fbe968b220676a4610c0a4d1a6b2c3b83759f9c2ca199 diff --git a/app-admin/logstash-bin/logstash-bin-7.17.16.ebuild b/app-admin/logstash-bin/logstash-bin-7.17.16.ebuild deleted file mode 100644 index 3fd750a91df6..000000000000 --- a/app-admin/logstash-bin/logstash-bin-7.17.16.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# 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" -} diff --git a/app-admin/logstash-bin/logstash-bin-7.17.25.ebuild b/app-admin/logstash-bin/logstash-bin-7.17.25.ebuild new file mode 100644 index 000000000000..3fd750a91df6 --- /dev/null +++ b/app-admin/logstash-bin/logstash-bin-7.17.25.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" +} -- cgit v1.2.3