From 8796aaedb3257bbe4d80b0033408b2210b2259d6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 17 Oct 2024 04:04:27 +0100 Subject: gentoo auto-resync : 17:10:2024 - 04:04:26 --- app-admin/Manifest.gz | Bin 32216 -> 32231 bytes app-admin/awscli/Manifest | 2 + app-admin/awscli/awscli-1.35.7.ebuild | 98 +++++++++++ app-admin/perl-cleaner/Manifest | 2 +- app-admin/perl-cleaner/perl-cleaner-2.31-r2.ebuild | 2 +- app-admin/syslog-ng/Manifest | 4 +- app-admin/syslog-ng/syslog-ng-4.8.0.ebuild | 194 --------------------- app-admin/syslog-ng/syslog-ng-4.8.1.ebuild | 194 +++++++++++++++++++++ 8 files changed, 298 insertions(+), 198 deletions(-) create mode 100644 app-admin/awscli/awscli-1.35.7.ebuild delete mode 100644 app-admin/syslog-ng/syslog-ng-4.8.0.ebuild create mode 100644 app-admin/syslog-ng/syslog-ng-4.8.1.ebuild (limited to 'app-admin') diff --git a/app-admin/Manifest.gz b/app-admin/Manifest.gz index 0a475f0e9808..8413fe2791c3 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 226e58328ee7..59196d6b91e1 100644 --- a/app-admin/awscli/Manifest +++ b/app-admin/awscli/Manifest @@ -2,8 +2,10 @@ DIST aws-cli-1.34.29.gh.tar.gz 2800945 BLAKE2B 93d9b41dfb2d80546f6cd601ff339053b DIST aws-cli-1.35.0.gh.tar.gz 2806480 BLAKE2B d607933a9baa0e50ab8d809e0ecb68681e90815fca7db6b69b01a632a56d37a62bedaf6dc981bffaa0206b31b6ca84b3d5e3524289b9b2edc55ef1989239a696 SHA512 2008b00455755b3c332b83d6df3e86f461a94b401aeb022887feddd6f5f3ab439b382d24d46c4e0da825df24899ede6307c4e482987d07171d38704c85ac4eb1 DIST aws-cli-1.35.5.gh.tar.gz 2808789 BLAKE2B 545c76bd349485fbf2dc5565317678904c99443e2e6dc2e12fa9de122327d8aa0e8b9579cec37afe2e949a0c31c48e0977e52d701ffc212182c692769c35a948 SHA512 2a9c86f1a63b657d3c95f8a65020ea7837ded9f5147ce31a535f59b9d9c1c91c3354a82286c25252da7d5b7c48c1898f594be0cb9e1ba54c6768133543fcba50 DIST aws-cli-1.35.6.gh.tar.gz 2809349 BLAKE2B 565ee8bbebdb387c437bccfc608833abb789b5a44cf7a246b04264536edc8b5c282ecdeedb4a26652058ba85b22c8ca048812f3ebf890503d5853c582ac67791 SHA512 481c6cf4a3f516cfd929736cfa556620eb493f9b5f47a861e8a44c37edb9642a7bddffcf69ed2d43e63a9253114f0ad1bd700c9f7b66c114cb1b7ad2c3271c15 +DIST aws-cli-1.35.7.gh.tar.gz 2809700 BLAKE2B 02cbe60f2ee5afd8dabd9e339e95f21794d331f4a19d4548d8f8c07c2ca4e6ab5c859559f0fb01af413832f57a9726a61e50c5b26a34db7f789f544583c0d6c6 SHA512 23bf47790bc51547ad9af289f4ad0a84ede1c6a01171adc7bf8e1236227ef8f59fabfefc9f89560dcaeae1d3118f12e25eccac6afae7f33f8bd6682a7feed959 EBUILD awscli-1.34.29.ebuild 3023 BLAKE2B d02d93dd9b37902da1a0555b84ef0fab8f1179c2983d783717f9e2f3cd55d72b07ed1164c263aec3706f6a69d1265ecf439ae95ff273c215416ba73a117ae0a6 SHA512 d9e7f35c8346a432ea2b6067908620b0cc6527fa21e5c8c5bfef2878fe656603a0cd8fbc7479e3ff4dbad655eb8d19622097409de3f80a55986104932103f1e1 EBUILD awscli-1.35.0.ebuild 3032 BLAKE2B 9a661418bff83e0179259efa93dddefd5f743681f8f6858bf6121e5f97e7454396cb7471807faa8747e34e63ee6ff3aa26dbb98cd213bff9aff3ddaad91b1c77 SHA512 b283c5794d8a084464c6cff8d348d1352ec08a96735245bb77676b9572b523b3b462ff0304960d8c481df9a71380a236a44687c1a3fc3f69b1ea812618df05f4 EBUILD awscli-1.35.5.ebuild 3141 BLAKE2B 5c14d1ada2a8692c95bc6975412782283583a98ea26a5ae45940f7451aabac59b5cbe4f384fdcf1ebf8bf0face6924215f7b0c1c40c1c2dcb8efa1c043b40a05 SHA512 14a538a63dc521fb224d0f2c2e5e24093fa1195266bb6e00780b2e9268d319eba20db9db6c9327bde131b756076de9f673865d4f49954b7779a5df360a995c34 EBUILD awscli-1.35.6.ebuild 3141 BLAKE2B 5c14d1ada2a8692c95bc6975412782283583a98ea26a5ae45940f7451aabac59b5cbe4f384fdcf1ebf8bf0face6924215f7b0c1c40c1c2dcb8efa1c043b40a05 SHA512 14a538a63dc521fb224d0f2c2e5e24093fa1195266bb6e00780b2e9268d319eba20db9db6c9327bde131b756076de9f673865d4f49954b7779a5df360a995c34 +EBUILD awscli-1.35.7.ebuild 3247 BLAKE2B 563e1df537df7a081ac11e541ee21cea26a8799434021b9f814dc2e4a46704be1f2edf529ac225e8a9f6b3a4a81815b30d2d25f782f3b9e1dbcc098367ab769f SHA512 cb54a636f6b46f0956577c1141d9f1f7f2887c0bd53c1eca061f214dfe88591ca2ab9e7e96daa9f9c2b2b14b969c1effd8085928db3d5fcfd61463da871dbdb2 MISC metadata.xml 385 BLAKE2B 5accfb180a91179cc6df539d42d1de06be3ebfec73f3edb719f5d59576103b9a8cb0c7c524c1042630e0cf99f068939a19f04c7b1b4a2acf9e072369df80d913 SHA512 ccb3d516326c5dbdf53068372ce25baecc137d21a04516374362212b969cc928dacbf743b4953da33f28482905798f069d09d19c88d9913f2b32648db25115ab diff --git a/app-admin/awscli/awscli-1.35.7.ebuild b/app-admin/awscli/awscli-1.35.7.ebuild new file mode 100644 index 000000000000..0fc6192a8587 --- /dev/null +++ b/app-admin/awscli/awscli-1.35.7.ebuild @@ -0,0 +1,98 @@ +# 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.(z+34) +BOTOCORE_PV="$(ver_cut 1).$(ver_cut 2).$(( $(ver_cut 3-) + 34 ))" +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[@]}" ) + case ${EPYTHON} in + python3.13*) + EPYTEST_DESELECT+=( + # flaky (some ordering?) + tests/functional/s3/test_cp_command.py::TestCPCommand::test_multipart_upload_with_checksum_algorithm_crc32 + ) + ;; + esac + # 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/perl-cleaner/Manifest b/app-admin/perl-cleaner/Manifest index 698bf481c118..84699dbb8324 100644 --- a/app-admin/perl-cleaner/Manifest +++ b/app-admin/perl-cleaner/Manifest @@ -1,5 +1,5 @@ DIST perl-cleaner-2.31.tar.bz2 6914 BLAKE2B 4b13ae42ab06ad75b6dbcb1306f3f4f476315db4504d0ffbc4c56d4d66a2da3a751d3682305daca6bcbae1861d182f16296c92f9a8d25687e35ab03a6f8734e3 SHA512 c4df0437604d41dbfdce0b72d72f975d464cf0c44f417c708917f01829e498ef8d6b47a78cee517836cac9344791ad49db98f29da5f78599e80b000e41b8127e -EBUILD perl-cleaner-2.31-r2.ebuild 946 BLAKE2B fb30d08bc04feb03a49eb87931a72628d60bf4abbc76001b7552cb519e05ee09d790c5b50176caee63eb2bc537c1cfb1a68d4d20a8b624f5cb3a5f7f2c3eba59 SHA512 30408a2c8149be13cad39e776d5da9bfb1ac3aacb97a43e2a867b7af199a26575f68284e8470a447c50c7670caa1b8dbd07ca7bb51b383792ce8bcda08da8069 +EBUILD perl-cleaner-2.31-r2.ebuild 945 BLAKE2B 99fa8261034b01bfd91768d1649d2641bfb147e19eb5534a5c5152815322c62ee10aed26d12da874b7ceda6edb9e17c6110f0f879f5ed50dbf8fde34dc3ba256 SHA512 57d7dfed65d373593674afb086f9530ffb38cb31375da56a48071ab4f67f37995956c076bddd6382f3a1e7d4de09ac04b0120afd5dd42af6ddb8b3877739a355 EBUILD perl-cleaner-2.31.ebuild 945 BLAKE2B 9c5d9ccaba10009733c24e60773225ff4991b8312c54f4f1d45011caa4bd4a52e1fbfccf134e7890927a360653d240de2b23bd4b6243399f0040bbd79a91c823 SHA512 36386ea7487713c62de1eeba064ce15ef20c49740dbba52e80764d41a7fbf11fca1b15a2f72e66a1875b803e867b73412c3517e5f6a45b3cff1ffdd05a15f55e EBUILD perl-cleaner-9999.ebuild 953 BLAKE2B 000efb22d462c670b899d0b37a2c8bf4773a00f67eb8c1e1da875ef016cbc1569fc70080ca22986ce47d34a4f5b960bbe49a309c300816c28963c6b7ae15f068 SHA512 be1842908304eb4bb2c0ade740b08c6acd11b6ddc31834d4207470933c1049c04d0f3ce3d3183c1d2cb22cedd3d7fe1080f12eb50c4a610c2f57b967583484ca MISC metadata.xml 509 BLAKE2B 4d80cf3b299ea530173c8295cdd5039e1663772f09ea1d718448843968029e58791565d7e2265e5f653b8260364a92921edab6293ed4b3c914c30aafc6ad8b41 SHA512 98eaef261e37fd9727a5a8ebba9418c2fa77e4f2deec9bee6a405a742ad32e68eb3d7d5e03c4e95a55d025eb72701f1257b539cc61069c410a48516e77e09dfd diff --git a/app-admin/perl-cleaner/perl-cleaner-2.31-r2.ebuild b/app-admin/perl-cleaner/perl-cleaner-2.31-r2.ebuild index b4b2b6605db7..1d5698eb6303 100644 --- a/app-admin/perl-cleaner/perl-cleaner-2.31-r2.ebuild +++ b/app-admin/perl-cleaner/perl-cleaner-2.31-r2.ebuild @@ -13,7 +13,7 @@ if [[ "${PV}" == "9999" ]] ; then EGIT_REPO_URI="https://github.com/gentoo-perl/perl-cleaner.git" else SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2" - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" fi LICENSE="GPL-2" diff --git a/app-admin/syslog-ng/Manifest b/app-admin/syslog-ng/Manifest index d8aa4c060ee0..004ea2d01c9c 100644 --- a/app-admin/syslog-ng/Manifest +++ b/app-admin/syslog-ng/Manifest @@ -10,8 +10,8 @@ AUX syslog-ng.logrotate.in 237 BLAKE2B dd2851749f3f56b2099442610fcd85cbfd50a52a8 AUX syslog-ng.rc 1891 BLAKE2B ff17e5b3a999813e869d3142ae6800b80a1569e7344f8b65a007d8f4978e1bbd4ce1f1e8f9daefb60c586aa58756d7d98ca59a869ae8e3f4addac732b6086ba5 SHA512 9e21637b684a48093d00ad9b5d4dbb79178ea8cc280cb03dbce235193e916bf3bd10b091a901cf13842f1c080b707a36efe8833bbde9d2721245598a3fe038df DIST syslog-ng-4.6.0.tar.gz 6671746 BLAKE2B 44efa3efa4e65744318a314adbefc11e7faa68876bca7be7d053262d8effecb80ecd1efc21af653db8e8f2c16496b5a64ea245a8adaa16e845954a13dedfd5c5 SHA512 7c4fbf1ac5377240afa7a1db8d72772399d2c62657fffc3c59e82b2dea6f12031f02320c4f567f981311bd1d8bbfd98962aeb59720ca857867a51b6bf83afb4b DIST syslog-ng-4.7.1.tar.gz 6877191 BLAKE2B b4a8fa1fe691b96d7e799e57542001829b327a2e8a13237654535ff339a6474bf047408f7fa3939a9e9108d993ebde70fc5d87f4eef9e0d5544ee204aee12a0a SHA512 2f1e0dea4c0ecfc3c77df7e6ac231ee8436c9c78fcb4df8ccdc417fea7d56791fdeb0844ac35f0342ce7c2bea5618d8723b6b54319c556120099eb809873082e -DIST syslog-ng-4.8.0.tar.gz 6934068 BLAKE2B d8488e34735384167f96bbe94f10a3e4d2f5e1acf3f984fd22b68a5b57a17a89897b748137ef8c00e54b2f24c394c0f537ea2ec7f178920efe781782644ada85 SHA512 f84e67277acc4c8dd620f9c9228380a120f3ec63f764bfebf430e174522614d51e93f788b5a5b1183c8de0ff6633d6244301f2ba245e5c7606194c1e24a7b5de +DIST syslog-ng-4.8.1.tar.gz 6956412 BLAKE2B e545107a714e37b51f3c6f652c23a61615b7d3767b3d98ef364e630634c7512b4b08d6790e2635fdb5dab850a45808cd945629e838d3c66b07dfa63ee4d1d35a SHA512 5e20c28aa24deab95dac44edad1855d35d6f9ce474ff4249b3b5492405ff64c9694f40119fdc95b9db53f1aac6b598acc8096e26443caa53c27f7ad32528f9ea EBUILD syslog-ng-4.6.0.ebuild 5299 BLAKE2B d2d453eb67314a57700f8ecfaa94eae172e3b47de41e7022bedc09c956f510d9ab85a021675fb1c5909a83acb113fd6cd7fec12af63e7f4ceef9c3b9bb0c2400 SHA512 0536ff638759b6bdc9982f7849a72573b36bb90bf43684661d634dfdf616185ddd84fe39f4f79035ef89b5391b9c2ad375615c6dd802866274f362618bf51ef4 EBUILD syslog-ng-4.7.1.ebuild 5363 BLAKE2B 9990591ff1f656478ef7facb613ed362cf711768c24392c4f239bee723fd65d03f909476818adf58a6072e596e90ac09a5136f61eddcab1085749cf994af00f6 SHA512 3d3089ae2085a0009c6b5545fa2cebe392eee1d5e31f6948665c93b36d33a228633f94c11f701bcadc2a35431197b8900714732ee049b4ae7374a4e3ec118cbc -EBUILD syslog-ng-4.8.0.ebuild 5363 BLAKE2B 9990591ff1f656478ef7facb613ed362cf711768c24392c4f239bee723fd65d03f909476818adf58a6072e596e90ac09a5136f61eddcab1085749cf994af00f6 SHA512 3d3089ae2085a0009c6b5545fa2cebe392eee1d5e31f6948665c93b36d33a228633f94c11f701bcadc2a35431197b8900714732ee049b4ae7374a4e3ec118cbc +EBUILD syslog-ng-4.8.1.ebuild 5363 BLAKE2B 9990591ff1f656478ef7facb613ed362cf711768c24392c4f239bee723fd65d03f909476818adf58a6072e596e90ac09a5136f61eddcab1085749cf994af00f6 SHA512 3d3089ae2085a0009c6b5545fa2cebe392eee1d5e31f6948665c93b36d33a228633f94c11f701bcadc2a35431197b8900714732ee049b4ae7374a4e3ec118cbc MISC metadata.xml 1473 BLAKE2B 89d2c90327ef56334e99d081debd682538e25db7f26ec1d369912b67e8bb7b878412f167a1e1020a49baa5165fa2887103b0a3d021fe9c4502d2bd7b56ee681f SHA512 392d0702ddea668bd927cb89b06deaa532b2605d2f1caec46c5c00430dfa8bf3056f8050f7442501aad89c58813a9d1cfa6b46f904323711fc1800d9275702a5 diff --git a/app-admin/syslog-ng/syslog-ng-4.8.0.ebuild b/app-admin/syslog-ng/syslog-ng-4.8.0.ebuild deleted file mode 100644 index ce5a655eac01..000000000000 --- a/app-admin/syslog-ng/syslog-ng-4.8.0.ebuild +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) -inherit autotools python-single-r1 systemd - -DESCRIPTION="syslog replacement with advanced filtering features" -HOMEPAGE="https://www.syslog-ng.com/products/open-source-log-management/" -SRC_URI="https://github.com/syslog-ng/syslog-ng/releases/download/${P}/${P}.tar.gz" - -LICENSE="GPL-2+ LGPL-2.1+" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="amqp caps dbi geoip2 grpc http json kafka mongodb mqtt pacct python redis smtp snmp test spoof-source systemd tcpd" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) - test? ( python )" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/glib-2.10.1:2 - >=dev-libs/ivykis-0.42.4 - >=dev-libs/libpcre2-10.0:= - dev-libs/openssl:0= - !dev-libs/eventlog - >=dev-libs/json-c-0.9:= - amqp? ( >=net-libs/rabbitmq-c-0.8.0:=[ssl] ) - caps? ( sys-libs/libcap ) - dbi? ( >=dev-db/libdbi-0.9.0 ) - geoip2? ( dev-libs/libmaxminddb:= ) - grpc? ( - dev-libs/protobuf:= - net-libs/grpc:= - ) - http? ( net-misc/curl ) - kafka? ( >=dev-libs/librdkafka-1.0.0:= ) - mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 ) - mqtt? ( net-libs/paho-mqtt-c:1.3 ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ') - ) - redis? ( >=dev-libs/hiredis-0.11.0:= ) - smtp? ( net-libs/libesmtp:= ) - snmp? ( net-analyzer/net-snmp:0= ) - spoof-source? ( net-libs/libnet:1.1 ) - systemd? ( sys-apps/systemd:= ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" -DEPEND="${RDEPEND} - test? ( dev-libs/criterion )" -BDEPEND=" - >=sys-devel/bison-3.7.6 - sys-devel/flex - virtual/pkgconfig - grpc? ( dev-libs/protobuf:= )" - -DOCS=( AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf.{HP-UX,RedHat,SunOS,doc} - contrib/syslog2ng "${T}/syslog-ng.conf.gentoo.hardened" - "${T}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" ) -PATCHES=( - "${FILESDIR}"/${PN}-3.28.1-net-snmp.patch -) - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - local f - - # disable python-modules test as it requires additional python modules not - # packaged in Gentoo - sed -i '/MAKE/s/.*/exit 0/g' modules/python-modules/test_pymodules.sh || die - - use python && python_fix_shebang . - - # remove bundled libs - rm -r lib/ivykis || die - - # drop scl modules requiring json - if use !json; then - sed -i -r '/cim|elasticsearch|ewmm|graylog2|loggly|logmatic|netskope|nodejs|osquery|slack/d' scl/Makefile.am || die - fi - - # drop scl modules requiring http - if use !http; then - sed -i -r '/slack|telegram/d' scl/Makefile.am || die - fi - - # use gentoo default path - if use systemd; then - sed -e 's@/etc/syslog-ng.conf@/etc/syslog-ng/syslog-ng.conf@g;s@/var/run@/run@g' \ - -i contrib/systemd/syslog-ng@default || die - fi - - for f in syslog-ng.logrotate.hardened.in syslog-ng.logrotate.in; do - sed \ - -e "s#@GENTOO_RESTART@#$(usex systemd "systemctl kill -s HUP syslog-ng@default" \ - "/etc/init.d/syslog-ng reload")#g" \ - "${FILESDIR}/${f}" > "${T}/${f/.in/}" || die - done - - for f in syslog-ng.conf.gentoo.hardened.in-r1 \ - syslog-ng.conf.gentoo.in-r1; do - sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" "${FILESDIR}/${f}" > "${T}/${f/.in-r1/}" || die - done - - default - eautoreconf -} - -src_configure() { - # Needs bison/flex. - unset YACC LEX - - local myconf=( - --disable-docs - --disable-java - --disable-java-modules - --disable-riemann - --enable-ipv6 - --enable-manpages - --localstatedir=/var/lib/syslog-ng - --sysconfdir=/etc/syslog-ng - --with-embedded-crypto - --with-ivykis=system - --with-module-dir=/usr/$(get_libdir)/syslog-ng - --with-pidfile-dir=/var/run - --with-python-packages=none - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" - $(use_enable amqp) - $(use_with amqp librabbitmq-client system) - $(use_enable caps linux-caps) - $(use_enable dbi sql) - $(use_enable geoip2) - $(use_enable grpc) - $(use_enable grpc cpp) - $(use_enable http) - $(use_enable json) - $(use_enable kafka) - $(use_enable mongodb) - $(use_enable mqtt) - $(usex mongodb --with-mongoc=system "--without-mongoc --disable-legacy-mongodb-options") - $(use_enable pacct) - $(use_enable python) - $(use_enable redis) - $(use_enable smtp) - $(use_enable snmp afsnmp) - $(use_enable spoof-source) - $(use_enable systemd) - $(use_enable tcpd tcp-wrapper) - ) - - econf "${myconf[@]}" -} - -src_install() { - default - - # Install default configuration - insinto /etc/default - doins contrib/systemd/syslog-ng@default - - insinto /etc/syslog-ng - newins "${T}/syslog-ng.conf.gentoo" syslog-ng.conf - - insinto /etc/logrotate.d - newins "${T}/syslog-ng.logrotate" syslog-ng - - newinitd "${FILESDIR}/syslog-ng.rc" syslog-ng - newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng - keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng - find "${D}" -name '*.la' -delete || die - - use python && python_optimize -} - -pkg_postinst() { - # bug #355257 - if ! has_version app-admin/logrotate ; then - elog "It is highly recommended that app-admin/logrotate be emerged to" - elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" - elog "for logrotate to use." - fi - - if use systemd; then - ewarn "The service file for systemd has changed to support multiple instances." - ewarn "To start the default instance issue:" - ewarn "# systemctl start syslog-ng@default" - fi -} diff --git a/app-admin/syslog-ng/syslog-ng-4.8.1.ebuild b/app-admin/syslog-ng/syslog-ng-4.8.1.ebuild new file mode 100644 index 000000000000..ce5a655eac01 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-4.8.1.ebuild @@ -0,0 +1,194 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit autotools python-single-r1 systemd + +DESCRIPTION="syslog replacement with advanced filtering features" +HOMEPAGE="https://www.syslog-ng.com/products/open-source-log-management/" +SRC_URI="https://github.com/syslog-ng/syslog-ng/releases/download/${P}/${P}.tar.gz" + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="amqp caps dbi geoip2 grpc http json kafka mongodb mqtt pacct python redis smtp snmp test spoof-source systemd tcpd" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + test? ( python )" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.10.1:2 + >=dev-libs/ivykis-0.42.4 + >=dev-libs/libpcre2-10.0:= + dev-libs/openssl:0= + !dev-libs/eventlog + >=dev-libs/json-c-0.9:= + amqp? ( >=net-libs/rabbitmq-c-0.8.0:=[ssl] ) + caps? ( sys-libs/libcap ) + dbi? ( >=dev-db/libdbi-0.9.0 ) + geoip2? ( dev-libs/libmaxminddb:= ) + grpc? ( + dev-libs/protobuf:= + net-libs/grpc:= + ) + http? ( net-misc/curl ) + kafka? ( >=dev-libs/librdkafka-1.0.0:= ) + mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 ) + mqtt? ( net-libs/paho-mqtt-c:1.3 ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ') + ) + redis? ( >=dev-libs/hiredis-0.11.0:= ) + smtp? ( net-libs/libesmtp:= ) + snmp? ( net-analyzer/net-snmp:0= ) + spoof-source? ( net-libs/libnet:1.1 ) + systemd? ( sys-apps/systemd:= ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" +DEPEND="${RDEPEND} + test? ( dev-libs/criterion )" +BDEPEND=" + >=sys-devel/bison-3.7.6 + sys-devel/flex + virtual/pkgconfig + grpc? ( dev-libs/protobuf:= )" + +DOCS=( AUTHORS NEWS.md CONTRIBUTING.md contrib/syslog-ng.conf.{HP-UX,RedHat,SunOS,doc} + contrib/syslog2ng "${T}/syslog-ng.conf.gentoo.hardened" + "${T}/syslog-ng.logrotate.hardened" "${FILESDIR}/README.hardened" ) +PATCHES=( + "${FILESDIR}"/${PN}-3.28.1-net-snmp.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + local f + + # disable python-modules test as it requires additional python modules not + # packaged in Gentoo + sed -i '/MAKE/s/.*/exit 0/g' modules/python-modules/test_pymodules.sh || die + + use python && python_fix_shebang . + + # remove bundled libs + rm -r lib/ivykis || die + + # drop scl modules requiring json + if use !json; then + sed -i -r '/cim|elasticsearch|ewmm|graylog2|loggly|logmatic|netskope|nodejs|osquery|slack/d' scl/Makefile.am || die + fi + + # drop scl modules requiring http + if use !http; then + sed -i -r '/slack|telegram/d' scl/Makefile.am || die + fi + + # use gentoo default path + if use systemd; then + sed -e 's@/etc/syslog-ng.conf@/etc/syslog-ng/syslog-ng.conf@g;s@/var/run@/run@g' \ + -i contrib/systemd/syslog-ng@default || die + fi + + for f in syslog-ng.logrotate.hardened.in syslog-ng.logrotate.in; do + sed \ + -e "s#@GENTOO_RESTART@#$(usex systemd "systemctl kill -s HUP syslog-ng@default" \ + "/etc/init.d/syslog-ng reload")#g" \ + "${FILESDIR}/${f}" > "${T}/${f/.in/}" || die + done + + for f in syslog-ng.conf.gentoo.hardened.in-r1 \ + syslog-ng.conf.gentoo.in-r1; do + sed -e "s/@SYSLOGNG_VERSION@/$(ver_cut 1-2)/g" "${FILESDIR}/${f}" > "${T}/${f/.in-r1/}" || die + done + + default + eautoreconf +} + +src_configure() { + # Needs bison/flex. + unset YACC LEX + + local myconf=( + --disable-docs + --disable-java + --disable-java-modules + --disable-riemann + --enable-ipv6 + --enable-manpages + --localstatedir=/var/lib/syslog-ng + --sysconfdir=/etc/syslog-ng + --with-embedded-crypto + --with-ivykis=system + --with-module-dir=/usr/$(get_libdir)/syslog-ng + --with-pidfile-dir=/var/run + --with-python-packages=none + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + $(use_enable amqp) + $(use_with amqp librabbitmq-client system) + $(use_enable caps linux-caps) + $(use_enable dbi sql) + $(use_enable geoip2) + $(use_enable grpc) + $(use_enable grpc cpp) + $(use_enable http) + $(use_enable json) + $(use_enable kafka) + $(use_enable mongodb) + $(use_enable mqtt) + $(usex mongodb --with-mongoc=system "--without-mongoc --disable-legacy-mongodb-options") + $(use_enable pacct) + $(use_enable python) + $(use_enable redis) + $(use_enable smtp) + $(use_enable snmp afsnmp) + $(use_enable spoof-source) + $(use_enable systemd) + $(use_enable tcpd tcp-wrapper) + ) + + econf "${myconf[@]}" +} + +src_install() { + default + + # Install default configuration + insinto /etc/default + doins contrib/systemd/syslog-ng@default + + insinto /etc/syslog-ng + newins "${T}/syslog-ng.conf.gentoo" syslog-ng.conf + + insinto /etc/logrotate.d + newins "${T}/syslog-ng.logrotate" syslog-ng + + newinitd "${FILESDIR}/syslog-ng.rc" syslog-ng + newconfd "${FILESDIR}/syslog-ng.confd" syslog-ng + keepdir /etc/syslog-ng/patterndb.d /var/lib/syslog-ng + find "${D}" -name '*.la' -delete || die + + use python && python_optimize +} + +pkg_postinst() { + # bug #355257 + if ! has_version app-admin/logrotate ; then + elog "It is highly recommended that app-admin/logrotate be emerged to" + elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" + elog "for logrotate to use." + fi + + if use systemd; then + ewarn "The service file for systemd has changed to support multiple instances." + ewarn "To start the default instance issue:" + ewarn "# systemctl start syslog-ng@default" + fi +} -- cgit v1.2.3