From 21435953e16cda318a82334ddbadb3b5c36d9ea7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Jan 2020 15:51:32 +0000 Subject: gentoo resync : 15.01.2020 --- net-analyzer/fail2ban/Manifest | 10 +- net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 6 +- net-analyzer/fail2ban/fail2ban-0.10.4.ebuild | 6 +- net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild | 116 ++++++++++++++++++++++++ net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild | 111 +++++++++++++++++++++++ net-analyzer/fail2ban/fail2ban-99999999.ebuild | 22 +++-- 6 files changed, 256 insertions(+), 15 deletions(-) create mode 100644 net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild create mode 100644 net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild (limited to 'net-analyzer/fail2ban') diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 2ca958418cce..80f82c1619c8 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,5 +1,9 @@ DIST fail2ban-0.10.4.tar.gz 493104 BLAKE2B 3a58ab114cf25172c77b229ce53bf6dd009d4fb8c700142480ba0212072d8820126bfabf5dd417835bdac5f5b65d599c6dde859d8c57267e90cfb569dc4a2073 SHA512 ee53f2e8dc3cda4f588c60da5227d3d71550496ddfdf5bdbffced25bafd442b8e2352a9ad9f27bf76489903b5b779cdb9614963342de907c1036ae9268b8f35f -EBUILD fail2ban-0.10.4-r2.ebuild 3316 BLAKE2B 822c4206e75626af5e6b8010a0148f95e1139c7c4d3e27941d8d6ad90ca5407bee0eb8238f77873a8f167cd236169735db4611f2c30e6dd6192967a294bacd88 SHA512 5d306daff6ed10bdaf6e81b70aea83acd8d5e310e2d40466eb40f5a52e9c7eb6ac4cd363a53ac685f600dfe17eadba8ae7a9b6e09f192c4261bc943bfffdcfff -EBUILD fail2ban-0.10.4.ebuild 3272 BLAKE2B 717b33037ae160dbff07f6b13cefd50563ea0893b342a141401f64e8db6a02f152766e55025472859fe00afedd61c792a707c9b4a95290a83ec756234c551631 SHA512 f506a466ededa0fc5a4c01a45c8addd5364a0ca0385f6fbab6a264583563468c245befd7d1f3846131cf564e8049a538fa5bac58499487b44bde9df3bbd6ea31 -EBUILD fail2ban-99999999.ebuild 3087 BLAKE2B 6e6ab336757845e7d7e4da03c705f9b6b6877b19f007d5aa6f4a3faac0b9d6b10cfb51101334bd376e51f8280797245757696c623a7463873cd90cf456fde79a SHA512 d2441165011a25ac3616b5cf7e10ef53cdea1993a020c4af6ec5466ec86d48bd4065d86d184a9d56d5eab7ac5b952e2db1df2aa6e170209cae09d7acff5a53e4 +DIST fail2ban-0.10.5.tar.gz 520460 BLAKE2B 872b1b2d96d5c79b228cf7c38923161336e452c33fddce75d25004454a5b5d119d435aeb789d55576de4e24bbf8d8288d9fc2fb3f17323074a27857a08e3c6a4 SHA512 d2ad64999031537f2adfc01efd02d2db0718485e38745736339c2e3a1792cd82147fb6cf5a3d371d83dbe91d1afe34e741e038ed4d84d6f444ea1922dc4bb658 +DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca3324444d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 +EBUILD fail2ban-0.10.4-r2.ebuild 3253 BLAKE2B b5c9029ea540ba99cff9a91b19ace9a94080092c0ad283f973c21a98c405ac59432d11b3353c1dee0afc562910957b215d22b76bce9ee2db2ff5aed71725dbcf SHA512 9c5d57795148503c6e3d94f9b120b9798f3b5f816bf0d508afc1eaee12d80c3c181d859f7061fd8e7145f3633a11bb4fb501baadc6d8eddf87fae6dbb5e06637 +EBUILD fail2ban-0.10.4.ebuild 3209 BLAKE2B 7b97cd973514c6ced851e5b588fcc86799a8c183bc421b970992dc389f64dbe2b6293bf87a1d6c270e63615238b858752bd6137f26aefa0954229729fbf291c0 SHA512 5d060e1bd805203e9327c3105e0ee0fbc306daa3efcd4e942478e46e2a6f07da294e1695da1b035d4b9ea3495dca87a76a85ed0fa7ce58ead81a6cea9b91ac35 +EBUILD fail2ban-0.10.5-r1.ebuild 3375 BLAKE2B 2caf8bb71a3f8383545bd1a838cf97d8b251b663440c69910a7d4e2de293a5828072dfc499d5b151a2540a855e44aebba683adc0ff49f9e490abd2a74da765d3 SHA512 79b65d7c462988fad37a8d6a92d2e2904240ab1a52adb7601d1ceae0a22bf9f0f7c58ab1cc01dc45e4eb860cb41c01b10e5e766ade479f70b6407dbc13a895b9 +EBUILD fail2ban-0.11.1-r1.ebuild 3325 BLAKE2B e860b1f850a3a2b1e8b45ec1fdafd6847d6699c68d9c623f09f1292c33839c436f22fa80bdccad83b9d542fdd4ef7a89a0a3e8de456c3063a058ee510e751bf3 SHA512 413c0c0f67cf4fbcc4c91e79400b52dcf9a448bc7a5315e9089dec70f2cbfabe6256b436da7cda8557ec84a0abf42c4d6c0284b97a67b7ccaa09afaabb301ca3 +EBUILD fail2ban-99999999.ebuild 3254 BLAKE2B 88ae6054ad2c1bf962ad98f8f53d5bb11a01d21077712a5a6344312169adb6272afbb9a2fd1b44e0235f4752052bdf3e0e0cded86da48e9051953322049e6205 SHA512 162c2f7ab46427731c87bb12f07392e04bb9a8937540027adf725462bb236bcf54d07d3ddbade544768d7bf7023725edca6d7f452f31e15f1b5731b2681bede7 MISC metadata.xml 372 BLAKE2B 7fca866187d9a128e6fb6787a4099d7a6442e0e51e558786773b91c3e2f06e67167d76f9bc96be0fe1baa1c44fc3f0e9e2105a327a10cb2720b3e3f9e4303a66 SHA512 4d5710e2fb4a7c353ca6bd3203bceef57d4d004367993dc1044800ee8713a3f4697fe8ba3472a73ecd015503656dfb7cd68d674c99188ce5702769cfeaf06b25 diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index ac3d06186227..85730ff0b684 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_5,3_6} pypy ) +PYTHON_COMPAT=( python{2_7,3_6} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd @@ -25,7 +25,7 @@ RDEPEND=" sys-apps/systemd[python(-),${PYTHON_USEDEP}] )' 'python*' ) ) " -REQUIRED_USE="systemd? ( !python_single_target_pypy )" + RESTRICT="test" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild index 613c33272c07..8cac6a35ee6e 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python{2_7,3_5,3_6} pypy ) +PYTHON_COMPAT=( python{2_7,3_6} ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 eutils systemd vcs-snapshot @@ -29,7 +29,7 @@ RDEPEND=" sys-apps/systemd[python(-),${PYTHON_USEDEP}] )' 'python*' ) ) " -REQUIRED_USE="systemd? ( !python_single_target_pypy )" + RESTRICT="test" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild new file mode 100644 index 000000000000..56a0f3046d23 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_6} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 distutils-r1 systemd + +DESCRIPTION="scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/" +SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux systemd" + +RDEPEND=" + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( $(python_gen_cond_dep '|| ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] + )' 'python*' ) ) +" + +RESTRICT="test" +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +src_unpack() { + default + mv ${PN}-${PN}-* ${P} || die +} + +python_prepare_all() { + default + + # Replace /var/run with /run, but not in the top source directory + find . -mindepth 2 -type f -exec \ + sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die + + sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die + + distutils-r1_python_prepare_all +} + +python_compile() { + if python_is_python3; then + ./fail2ban-2to3 || die + fi + distutils-r1_python_compile +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die + + # not FILESDIR + newconfd files/gentoo-confd ${PN} + newinitd files/gentoo-initd ${PN} + sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die + systemd_dounit "${T}/${PN}.service" + systemd_dotmpfilesd files/${PN}-tmpfiles.conf + doman man/*.{1,5} + + # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 + insinto /etc/logrotate.d + newins files/${PN}-logrotate ${PN} + + keepdir /var/lib/${PN} + + newbashcomp files/bash-completion ${PN}-client + bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.7" + previous_less_than_0_7=$? +} + +pkg_postinst() { + if [[ $previous_less_than_0_7 = 0 ]] ; then + elog + elog "Configuration files are now in /etc/fail2ban/" + elog "You probably have to manually update your configuration" + elog "files before restarting Fail2ban!" + elog + elog "Fail2ban is not installed under /usr/lib anymore. The" + elog "new location is under /usr/share." + elog + elog "You are upgrading from version 0.6.x, please see:" + elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8" + fi + + if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin; then + elog "For most jail.conf configurations, it is recommended you install either" + elog "dev-python/pyinotify or app-admin/gamin (in order of preference)" + elog "to control how log file modifications are detected" + fi + + if ! has_version dev-lang/python[sqlite]; then + elog "If you want to use ${PN}'s persistent database, then reinstall" + elog "dev-lang/python with USE=sqlite. If you do not use the" + elog "persistent database feature, then you should set" + elog "dbfile = :memory: in fail2ban.conf accordingly." + fi + + if has_version sys-apps/systemd[-python]; then + elog "If you want to track logins through sys-apps/systemd's" + elog "journal backend, then reinstall sys-apps/systemd with USE=python" + fi +} diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild new file mode 100644 index 000000000000..8481a7ca53ff --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_6} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 distutils-r1 systemd + +DESCRIPTION="scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux systemd" + +RDEPEND=" + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( $(python_gen_cond_dep '|| ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] + )' 'python*' ) ) +" + +RESTRICT="test" +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +python_prepare_all() { + default + + # Replace /var/run with /run, but not in the top source directory + find . -mindepth 2 -type f -exec \ + sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die + + sed -i -e 's|runscript|openrc-run|g' files/gentoo-initd || die + + distutils-r1_python_prepare_all +} + +python_compile() { + if python_is_python3; then + ./fail2ban-2to3 || die + fi + distutils-r1_python_compile +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die + + # not FILESDIR + newconfd files/gentoo-confd ${PN} + newinitd files/gentoo-initd ${PN} + sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die + systemd_dounit "${T}/${PN}.service" + systemd_dotmpfilesd files/${PN}-tmpfiles.conf + doman man/*.{1,5} + + # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 + insinto /etc/logrotate.d + newins files/${PN}-logrotate ${PN} + + keepdir /var/lib/${PN} + + newbashcomp files/bash-completion ${PN}-client + bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-0.7" + previous_less_than_0_7=$? +} + +pkg_postinst() { + if [[ $previous_less_than_0_7 = 0 ]] ; then + elog + elog "Configuration files are now in /etc/fail2ban/" + elog "You probably have to manually update your configuration" + elog "files before restarting Fail2ban!" + elog + elog "Fail2ban is not installed under /usr/lib anymore. The" + elog "new location is under /usr/share." + elog + elog "You are upgrading from version 0.6.x, please see:" + elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8" + fi + + if ! has_version dev-python/pyinotify && ! has_version app-admin/gamin; then + elog "For most jail.conf configurations, it is recommended you install either" + elog "dev-python/pyinotify or app-admin/gamin (in order of preference)" + elog "to control how log file modifications are detected" + fi + + if ! has_version dev-lang/python[sqlite]; then + elog "If you want to use ${PN}'s persistent database, then reinstall" + elog "dev-lang/python with USE=sqlite. If you do not use the" + elog "persistent database feature, then you should set" + elog "dbfile = :memory: in fail2ban.conf accordingly." + fi + + if has_version sys-apps/systemd[-python]; then + elog "If you want to track logins through sys-apps/systemd's" + elog "journal backend, then reinstall sys-apps/systemd with USE=python" + fi +} diff --git a/net-analyzer/fail2ban/fail2ban-99999999.ebuild b/net-analyzer/fail2ban/fail2ban-99999999.ebuild index d4e1f1886dc8..1618b1f20e24 100644 --- a/net-analyzer/fail2ban/fail2ban-99999999.ebuild +++ b/net-analyzer/fail2ban/fail2ban-99999999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_5,3_6} pypy ) +PYTHON_COMPAT=( python{2_7,3_6} ) DISTUTILS_SINGLE_IMPL=1 -inherit distutils-r1 git-r3 systemd +inherit bash-completion-r1 distutils-r1 git-r3 systemd DESCRIPTION="scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/" @@ -25,7 +25,7 @@ RDEPEND=" sys-apps/systemd[python(-),${PYTHON_USEDEP}] )' 'python*' ) ) " -REQUIRED_USE="systemd? ( !python_single_target_pypy )" + RESTRICT="test" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -41,6 +41,13 @@ python_prepare_all() { distutils-r1_python_prepare_all } +python_compile() { + if python_is_python3; then + ./fail2ban-2to3 || die + fi + distutils-r1_python_compile +} + python_install_all() { distutils-r1_python_install_all @@ -49,8 +56,8 @@ python_install_all() { # not FILESDIR newconfd files/gentoo-confd ${PN} newinitd files/gentoo-initd ${PN} - sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die - systemd_dounit "${T}"/${PN}.service + sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die + systemd_dounit "${T}/${PN}.service" systemd_dotmpfilesd files/${PN}-tmpfiles.conf doman man/*.{1,5} @@ -60,6 +67,9 @@ python_install_all() { newins files/${PN}-logrotate ${PN} keepdir /var/lib/${PN} + + newbashcomp files/bash-completion ${PN}-client + bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex } pkg_preinst() { -- cgit v1.2.3