[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b99cafd20de9b595402946288aa37685ba40ccaa Author: Jakov Smolić gentoo org> AuthorDate: Thu Aug 29 06:33:52 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Aug 29 06:33:52 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b99cafd2 net-analyzer/fail2ban: Stabilize 1.1.0-r2 ppc, #938646 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index 53a2b41e3c7f..aa1a5b054c52 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 1775d5c7c890ecfa5585d3b365c7bfcba9f2f1a9 Author: Jakov Smolić gentoo org> AuthorDate: Thu Aug 29 06:33:38 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Aug 29 06:33:38 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1775d5c7 net-analyzer/fail2ban: Stabilize 1.1.0-r2 ppc64, #938646 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index e34929008acf..53a2b41e3c7f 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: ba2e461d320f87b558f1bfdfab888a0f17b64926 Author: Jakov Smolić gentoo org> AuthorDate: Thu Aug 29 06:33:35 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Aug 29 06:33:35 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba2e461d net-analyzer/fail2ban: Stabilize 1.1.0-r2 amd64, #938646 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index 01b27824421f..e34929008acf 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 8e95bb98e3b906915357e83f2b003b177bca723c Author: Jakov Smolić gentoo org> AuthorDate: Thu Aug 29 05:09:37 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Aug 29 05:09:37 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e95bb98 net-analyzer/fail2ban: Stabilize 1.1.0-r2 arm64, #938646 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index 38d88b336877..01b27824421f 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" + KEYWORDS="~alpha ~amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 0ae4aaa18023c92f11251d51ee3e5e4403bc9fae Author: Jakov Smolić gentoo org> AuthorDate: Thu Aug 29 05:09:31 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Aug 29 05:09:31 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae4aaa1 net-analyzer/fail2ban: Stabilize 1.1.0-r2 arm, #938646 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index 76a0e39415a0..38d88b336877 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" + KEYWORDS="~alpha ~amd64 arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: bced1a257293df9d3be09778689493ad31bead7a Author: Sam James gentoo org> AuthorDate: Thu Aug 29 03:15:03 2024 + Commit: Sam James gentoo org> CommitDate: Thu Aug 29 03:15:03 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bced1a25 net-analyzer/fail2ban: Stabilize 1.1.0-r2 x86, #938646 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild index 5cf1db15faa4..76a0e39415a0 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: a74794caf315f33baf0a2ca7ee9da1aa649b85fd Author: Sam James gentoo org> AuthorDate: Thu Aug 29 01:53:56 2024 + Commit: Sam James gentoo org> CommitDate: Thu Aug 29 01:53:56 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a74794ca net-analyzer/fail2ban: fix openssh-9.8 compat harder; openrc tweak * Fix OpenSSH 9.8 harder by backporting more patches from upstream * Backport mjo's OpenRC init script tweak for nftables Bug: https://bugs.gentoo.org/935392 Closes: https://bugs.gentoo.org/936838 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild | 138 + .../files/fail2ban-1.1.0-openrc-nftables.patch | 25 .../files/fail2ban-1.1.0-openssh-9.8-fixups.patch | 40 ++ 3 files changed, 203 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild new file mode 100644 index ..5cf1db15faa4 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r2.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; + +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; + inherit git-r3 +else + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="selinux systemd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pyasyncore[${PYTHON_USEDEP}] + dev-python/pyasynchat[${PYTHON_USEDEP}] + ' 3.12) + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( + $(python_gen_cond_dep ' + dev-python/python-systemd[${PYTHON_USEDEP}] + ') + ) +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/aiosmtpd[${PYTHON_USEDEP}] + ') + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch + "${FILESDIR}"/${PN}-1.1.0-openssh-9.8.patch + "${FILESDIR}"/${PN}-1.1.0-openssh-9.8-fixups.patch + "${FILESDIR}"/${PN}-1.1.0-openrc-nftables.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # 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 +} + +python_test() { + # Skip testRepairDb for bug #907348 (didn't always fail..) + # https://github.com/fail2ban/fail2ban/issues/3586 + bin/fail2ban-testcases \ + --no-network \ + --ignore databasetestcase.DatabaseTest.testRepairDb \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -rf fail2ban.egg-info || die +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 294bc01a5b27c5d3a0cd32f0ab36ccbe3a5f907f Author: Sam James gentoo org> AuthorDate: Wed Jul 17 05:10:45 2024 + Commit: Sam James gentoo org> CommitDate: Wed Jul 17 05:10:45 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=294bc01a net-analyzer/fail2ban: drop 1.0.2-r2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild | 129 - 1 file changed, 129 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild deleted file mode 100644 index bac3914820d3.. --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..11} ) - -inherit bash-completion-r1 distutils-r1 systemd tmpfiles - -DESCRIPTION="Scans log files and bans IPs that show malicious signs" -HOMEPAGE="https://www.fail2ban.org/"; - -if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; - inherit git-r3 -else - SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="selinux systemd" - -RDEPEND=" - virtual/logger - virtual/mta - selinux? ( sec-policy/selinux-fail2ban ) - systemd? ( - $(python_gen_cond_dep ' - dev-python/python-systemd[${PYTHON_USEDEP}] - ') - ) -" - -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch - "${FILESDIR}"/${P}-configreader-warning.patch -) - -python_prepare_all() { - distutils-r1_python_prepare_all - - # 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 -} - -python_compile() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - -python_test() { - # Skip testRepairDb for bug #907348 (didn't always fail..) - bin/fail2ban-testcases \ - --no-network \ - --no-gamin \ - --ignore databasetestcase.DatabaseTest.testRepairDb \ - --verbosity=4 || die "Tests failed with ${EPYTHON}" - - # Workaround for bug #790251 - rm -rf fail2ban.egg-info || die -} - -python_install_all() { - distutils-r1_python_install_all - - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - - newconfd files/fail2ban-openrc.conf ${PN} - - # These two are placed in the ${BUILD_DIR} after being "built" - # in install_scripts(). - newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" - systemd_dounit "${BUILD_DIR}/${PN}.service" - - dotmpfiles 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() { - tmpfiles_process ${PN}-tmpfiles.conf - - 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 ; then - elog "For most jail.conf configurations, it is recommended you install" - elog "dev-python/pyinotify 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 -}
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 504883649c02a8ab0ac6b40133a6a2d950cf9e1b Author: Sam James gentoo org> AuthorDate: Wed Jul 17 05:13:49 2024 + Commit: Sam James gentoo org> CommitDate: Wed Jul 17 05:13:49 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50488364 net-analyzer/fail2ban: enable py3.13 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild index 653e6d91c9c9..0035a85226e7 100644 --- a/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 8f83d3ea20cf..45aad51f16eb 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 8f40d76b04279142985ca0da8048356d34557849 Author: Sam James gentoo org> AuthorDate: Thu Jul 4 00:52:49 2024 + Commit: Sam James gentoo org> CommitDate: Thu Jul 4 00:53:45 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f40d76b net-analyzer/fail2ban: fix openssh-9.8 compat openssh-9.8 changes services names and binary layout. Closes: https://bugs.gentoo.org/935392 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild | 136 + .../files/fail2ban-1.1.0-openssh-9.8.patch | 75 2 files changed, 211 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild new file mode 100644 index ..653e6d91c9c9 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-1.1.0-r1.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{10..12} ) + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; + +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; + inherit git-r3 +else + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="selinux systemd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pyasyncore[${PYTHON_USEDEP}] + dev-python/pyasynchat[${PYTHON_USEDEP}] + ' 3.12) + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( + $(python_gen_cond_dep ' + dev-python/python-systemd[${PYTHON_USEDEP}] + ') + ) +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/aiosmtpd[${PYTHON_USEDEP}] + ') + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch + "${FILESDIR}"/${PN}-1.1.0-openssh-9.8.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # 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 +} + +python_test() { + # Skip testRepairDb for bug #907348 (didn't always fail..) + # https://github.com/fail2ban/fail2ban/issues/3586 + bin/fail2ban-testcases \ + --no-network \ + --ignore databasetestcase.DatabaseTest.testRepairDb \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -rf fail2ban.egg-info || die +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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 ; then + elog "For most jail.conf configurations, it is recommended you install" + elog "dev-pyt
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: def6c2f98cf4021053c09c5fc58c84343f1de7ac Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:22 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:22 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=def6c2f9 net-analyzer/fail2ban: Stabilize 1.0.2-r3 sparc, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index 8a6028ad1ced..2e6568d78a9e 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: eccf9081825f94949ac04bcf2427a5c7191f0cb4 Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:27 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:27 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eccf9081 net-analyzer/fail2ban: Stabilize 1.0.2-r3 x86, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index 2e6568d78a9e..fd9d7373924e 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b2eb56be350557cf64751a42c5bf5ba3aa672f59 Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:13 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:13 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2eb56be net-analyzer/fail2ban: Stabilize 1.0.2-r3 ppc64, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index 78a80d2d7b08..aa99c8a86a55 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 19151134cd090560eb2b3858bb340f4a13c30ffd Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:18 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:18 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19151134 net-analyzer/fail2ban: Stabilize 1.0.2-r3 ppc, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index aa99c8a86a55..8a6028ad1ced 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 2f9d65989b6eda03bec9e869ebfdcbce5e53763f Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:09 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:09 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f9d6598 net-analyzer/fail2ban: Stabilize 1.0.2-r3 arm, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index a7f5705b22e2..78a80d2d7b08 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 14ad5680deec76daba3a5ef361aaa45a4016a699 Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:18:04 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:18:04 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ad5680 net-analyzer/fail2ban: Stabilize 1.0.2-r3 arm64, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index ca11fdf931a0..a7f5705b22e2 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 2176ed93411d974d9190ee7d74378b94c65e2723 Author: Sam James gentoo org> AuthorDate: Sat Jun 1 22:17:59 2024 + Commit: Sam James gentoo org> CommitDate: Sat Jun 1 22:17:59 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2176ed93 net-analyzer/fail2ban: Stabilize 1.0.2-r3 amd64, #930866 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index f78595850988..ca11fdf931a0 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: af0c5b0cea146ef60c848d5ab0139ec8a45ddfcd Author: Michał Górny gentoo org> AuthorDate: Tue May 28 11:50:11 2024 + Commit: Michał Górny gentoo org> CommitDate: Tue May 28 11:52:00 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af0c5b0c net-analyzer/fail2ban: Drop hppa Signed-off-by: Michał Górny gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild index 2a67b21bda7b..bac3914820d3 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86" + KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 1a449c65452afa449103dcac087bc0b8a1476d04 Author: Sam James gentoo org> AuthorDate: Sun Apr 28 23:27:23 2024 + Commit: Sam James gentoo org> CommitDate: Sun Apr 28 23:28:16 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a449c65 net-analyzer/fail2ban: add 1.1.0 Closes: https://bugs.gentoo.org/930737 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest| 1 + net-analyzer/fail2ban/{fail2ban-.ebuild => fail2ban-1.1.0.ebuild} | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild| 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index ab84e5639461..54681ec36bc0 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1 +1,2 @@ DIST fail2ban-1.0.2.tar.gz 583295 BLAKE2B 84eb5e3487c4db734f4f0a36af142d520e1cc53c2960893ee2f05ff4e78133860be59ed9580fa0d972509a03c17e5d9458b8e3f6b470a4c3154f10911f94691e SHA512 688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb +DIST fail2ban-1.1.0.tar.gz 603854 BLAKE2B f7c2d3a1e5b5cdca1f26d92cefe75958bb61b87ad1cf316380b91527c96f3261e5665478c5fbb053f6419956dda934c8ef3ce837af2819b1b1c8d162246fc15f SHA512 9bff7b9c41e58a953901800468e5c4153c9db6af01c7eb18111ad8620b40d03a0771020472fb759b2809d250e2bb45471e6c7e8283e72ea48290ecf7bf921821 diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-1.1.0.ebuild similarity index 97% copy from net-analyzer/fail2ban/fail2ban-.ebuild copy to net-analyzer/fail2ban/fail2ban-1.1.0.ebuild index f9f5b8721fff..8f83d3ea20cf 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.1.0.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index f9f5b8721fff..8f83d3ea20cf 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 519df8d0108a6c31344dba65cd4303fb69217a38 Author: Matoro Mahri matoro tk> AuthorDate: Thu Apr 18 18:35:31 2024 + Commit: Ionen Wolkens gentoo org> CommitDate: Fri Apr 19 06:37:45 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=519df8d0 net-analyzer/fail2ban: Keyword 1.0.2-r3 alpha, #926965 Signed-off-by: Matoro Mahri matoro.tk> Signed-off-by: Ionen Wolkens gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index 1c38ffd409b6..f78595850988 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 605ebc7960c4dbb041f356f6c538b3a27c9f0819 Author: Matoro Mahri matoro tk> AuthorDate: Thu Apr 18 15:44:17 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Thu Apr 18 16:10:55 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=605ebc79 net-analyzer/fail2ban: Keyword 1.0.2-r3 loong, #926965 Signed-off-by: Matoro Mahri matoro.tk> Signed-off-by: Arthur Zamarin gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index 0553fd3cd2c4..1c38ffd409b6 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b0fd21bd33d918b7e9ee94d5a649deade67ef6b1 Author: Matoro Mahri matoro tk> AuthorDate: Thu Apr 18 15:43:12 2024 + Commit: Arthur Zamarin gentoo org> CommitDate: Thu Apr 18 16:10:53 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0fd21bd net-analyzer/fail2ban: Keyword 1.0.2-r3 ppc, #926965 Signed-off-by: Matoro Mahri matoro.tk> Signed-off-by: Arthur Zamarin gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index bcdbb6a07bd7..0553fd3cd2c4 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f13e3fd6f37cdb0bf168a5a9dea62575241c02b6 Author: Jakov Smolić gentoo org> AuthorDate: Mon Mar 18 12:01:11 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Mon Mar 18 12:01:11 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f13e3fd6 net-analyzer/fail2ban: Keyword 1.0.2-r3 riscv, #926965 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index a6c77a9edf1b..3d1da9eccc8d 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~riscv" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f0f6688522dd2809feccb3d691db98364b0919f0 Author: Sam James gentoo org> AuthorDate: Thu Mar 14 04:26:44 2024 + Commit: Sam James gentoo org> CommitDate: Thu Mar 14 04:51:37 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0f66885 net-analyzer/fail2ban: enable py3.12 Bug: https://bugs.gentoo.org/909998 Signed-off-by: Sam James gentoo.org> ...ail2ban-.ebuild => fail2ban-1.0.2-r3.ebuild} | 21 ++--- net-analyzer/fail2ban/fail2ban-.ebuild | 21 + 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild similarity index 86% copy from net-analyzer/fail2ban/fail2ban-.ebuild copy to net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild index d9a3b9fdb4da..a6c77a9edf1b 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r3.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64" fi LICENSE="GPL-2" @@ -24,6 +24,10 @@ SLOT="0" IUSE="selinux systemd" RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pyasyncore[${PYTHON_USEDEP}] + dev-python/pyasynchat[${PYTHON_USEDEP}] + ' 3.12) virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) @@ -39,6 +43,7 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch + "${FILESDIR}"/${P}-configreader-warning.patch ) python_prepare_all() { @@ -47,12 +52,22 @@ python_prepare_all() { # 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 + + # Incompatible with Python 3.12 in 1.0.x, uses dev-python/aiosmtpd. + rm fail2ban/tests/action_d/test_smtp.py || die +} + +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile } python_test() { # Skip testRepairDb for bug #907348 (didn't always fail..) + # https://github.com/fail2ban/fail2ban/issues/3586 bin/fail2ban-testcases \ --no-network \ + --no-gamin \ --ignore databasetestcase.DatabaseTest.testRepairDb \ --verbosity=4 || die "Tests failed with ${EPYTHON}" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index d9a3b9fdb4da..f9f5b8721fff 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -16,14 +16,19 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64" fi LICENSE="GPL-2" SLOT="0" -IUSE="selinux systemd" +IUSE="selinux systemd test" +RESTRICT="!test? ( test )" RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pyasyncore[${PYTHON_USEDEP}] + dev-python/pyasynchat[${PYTHON_USEDEP}] + ' 3.12) virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) @@ -33,6 +38,13 @@ RDEPEND=" ') ) " +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/aiosmtpd[${PYTHON_USEDEP}] + ') + ) +" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -51,6 +63,7 @@ python_prepare_all() { python_test() { # Skip testRepairDb for bug #907348 (didn't always fail..) + # https://github.com/fail2ban/fail2ban/issues/3586 bin/fail2ban-testcases \ --no-network \ --ignore databasetestcase.DatabaseTest.testRepairDb \
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 34c34253270df761187ce761cc095228f813ef1c Author: Sam James gentoo org> AuthorDate: Thu Dec 28 03:41:18 2023 + Commit: Sam James gentoo org> CommitDate: Thu Dec 28 03:41:18 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34c34253 net-analyzer/fail2ban: drop 1.0.2-r1 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 136 - 1 file changed, 136 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild deleted file mode 100644 index 9372d37e5fb4.. --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..11} ) - -inherit bash-completion-r1 distutils-r1 systemd tmpfiles - -DESCRIPTION="Scans log files and bans IPs that show malicious signs" -HOMEPAGE="https://www.fail2ban.org/"; - -if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; - inherit git-r3 -else - SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -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*' ) - ) -" - -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${P}-configreader-warning.patch -) - -python_prepare_all() { - distutils-r1_python_prepare_all - - # 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 -} - -python_compile() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - -python_test() { - # Skip testRepairDb for bug #907348 (didn't always fail..) - bin/fail2ban-testcases \ - --no-network \ - --no-gamin \ - --ignore databasetestcase.DatabaseTest.testRepairDb \ - --verbosity=4 || die "Tests failed with ${EPYTHON}" - - # Workaround for bug #790251 - rm -rf fail2ban.egg-info || die -} - -python_install_all() { - distutils-r1_python_install_all - - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - - newconfd files/fail2ban-openrc.conf ${PN} - - # These two are placed in the ${BUILD_DIR} after being "built" - # in install_scripts(). - newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" - systemd_dounit "${BUILD_DIR}/${PN}.service" - - dotmpfiles 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() { - tmpfiles_process ${PN}-tmpfiles.conf - - 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
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 116de834927671d66376f7088cc7d6086fbb94d6 Author: Sam James gentoo org> AuthorDate: Mon Jul 3 23:07:52 2023 + Commit: Sam James gentoo org> CommitDate: Mon Jul 3 23:07:52 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116de834 net-analyzer/fail2ban: drop leftover line It doesn't work even w/o the typo, sorry, I thought I'd cleaned all of this up. Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 1 - 1 file changed, 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index b657eb644f4a..d9a3b9fdb4da 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -DISUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 56503f6777856b3e3b37ae6046c2ef39d4addbb8 Author: Sam James gentoo org> AuthorDate: Sun Jul 2 20:31:54 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jul 2 20:32:52 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56503f67 net-analyzer/fail2ban: avoid test umask affecting installed files Bug: https://bugs.gentoo.org/790251 Closes: https://bugs.gentoo.org/907350 Signed-off-by: Sam James gentoo.org> ...il2ban-.ebuild => fail2ban-1.0.2-r2.ebuild} | 9 - net-analyzer/fail2ban/fail2ban-.ebuild | 1 + .../files/fail2ban-1.0.2-umask-tests.patch | 45 ++ 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild similarity index 94% copy from net-analyzer/fail2ban/fail2ban-.ebuild copy to net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild index 19d76da94cf4..a440fa2f6374 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r2.ebuild @@ -4,7 +4,6 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -DISUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -39,6 +38,8 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch + "${FILESDIR}"/${P}-configreader-warning.patch ) python_prepare_all() { @@ -49,10 +50,16 @@ python_prepare_all() { sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die } +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + python_test() { # Skip testRepairDb for bug #907348 (didn't always fail..) bin/fail2ban-testcases \ --no-network \ + --no-gamin \ --ignore databasetestcase.DatabaseTest.testRepairDb \ --verbosity=4 || die "Tests failed with ${EPYTHON}" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 19d76da94cf4..b657eb644f4a 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -39,6 +39,7 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-1.0.2-umask-tests.patch ) python_prepare_all() { diff --git a/net-analyzer/fail2ban/files/fail2ban-1.0.2-umask-tests.patch b/net-analyzer/fail2ban/files/fail2ban-1.0.2-umask-tests.patch new file mode 100644 index ..8feca43412ec --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-1.0.2-umask-tests.patch @@ -0,0 +1,45 @@ +Avoid corrupting umask permanently in the testdir because of fail2ban/server/server.py::start. + +In particular: +* https://bugs.gentoo.org/659010#c11 +* https://bugs.gentoo.org/790251#c10 +* https://bugs.gentoo.org/907350 + +But see also the many dupes. +--- a/fail2ban/tests/fail2banclienttestcase.py b/fail2ban/tests/fail2banclienttestcase.py +@@ -23,6 +23,7 @@ __author__ = "Serg Brester" + __copyright__ = "Copyright (c) 2014- Serg G. Brester (sebres), 2008- Fail2Ban Contributors" + __license__ = "GPL" + ++import atexit + import fileinput + import os + import re +@@ -40,6 +41,14 @@ from ..client.fail2bancmdline import Fail2banCmdLine + from ..client.fail2banclient import exec_command_line as _exec_client, CSocket, VisualWait + from ..client.fail2banserver import Fail2banServer, exec_command_line as _exec_server + from .. import protocol ++ ++def current_umask(): ++ tmp = os.umask(0o022) ++ os.umask(tmp) ++ return tmp ++ ++old_umask = current_umask() ++ + from ..server import server + from ..server.mytime import MyTime + from ..server.utils import Utils +@@ -48,6 +57,11 @@ from .utils import LogCaptureTestCase, logSys as DefLogSys, with_tmpdir, shutil, + + from ..helpers import getLogger + ++def restore_umask(): ++ os.umask(old_umask) ++ ++atexit.register(restore_umask) ++ + # Gets the instance of the logger. + logSys = getLogger(__name__) +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 29cfe8fc0aa6d451979cb2966414451767d27491 Author: Sam James gentoo org> AuthorDate: Sun Jul 2 19:54:41 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jul 2 19:55:29 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29cfe8fc net-analyzer/fail2ban: skip broken test Closes: https://bugs.gentoo.org/907348 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 ++ net-analyzer/fail2ban/fail2ban-.ebuild | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index 51759787dd17..9372d37e5fb4 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -57,9 +57,11 @@ python_compile() { } python_test() { + # Skip testRepairDb for bug #907348 (didn't always fail..) bin/fail2ban-testcases \ --no-network \ --no-gamin \ + --ignore databasetestcase.DatabaseTest.testRepairDb \ --verbosity=4 || die "Tests failed with ${EPYTHON}" # Workaround for bug #790251 diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 80d515fa89e4..19d76da94cf4 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -50,8 +50,10 @@ python_prepare_all() { } python_test() { + # Skip testRepairDb for bug #907348 (didn't always fail..) bin/fail2ban-testcases \ --no-network \ + --ignore databasetestcase.DatabaseTest.testRepairDb \ --verbosity=4 || die "Tests failed with ${EPYTHON}" # Workaround for bug #790251
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 7c84f4505e7c7c2aa4711bde88429952e6ff2d44 Author: Sam James gentoo org> AuthorDate: Sun Jul 2 19:29:22 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jul 2 19:55:29 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c84f450 net-analyzer/fail2ban: ignore if bad .egg-info doesn't exist This doesn't seem to always be here, so just use -f to ignore it if it's absent. Closes: https://bugs.gentoo.org/856727 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index 78eedfc19464..51759787dd17 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -63,7 +63,7 @@ python_test() { --verbosity=4 || die "Tests failed with ${EPYTHON}" # Workaround for bug #790251 - rm -r fail2ban.egg-info || die + rm -rf fail2ban.egg-info || die } python_install_all() { diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 780f4c65a50a..80d515fa89e4 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -55,7 +55,7 @@ python_test() { --verbosity=4 || die "Tests failed with ${EPYTHON}" # Workaround for bug #790251 - rm -r fail2ban.egg-info || die + rm -rf fail2ban.egg-info || die } python_install_all() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f65c46b3047702e8ea69f5ea0910b2cbab4fe9bc Author: Sam James gentoo org> AuthorDate: Sun Jul 2 18:38:04 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jul 2 18:57:24 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65c46b3 net-analyzer/fail2ban: cleanup live Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 4112631ff0a1..780f4c65a50a 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 +DISUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -29,10 +30,8 @@ RDEPEND=" selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep ' - || ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] - )' 'python*' ) + dev-python/python-systemd[${PYTHON_USEDEP}] + ') ) " @@ -50,15 +49,9 @@ python_prepare_all() { sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die } -python_compile() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - python_test() { bin/fail2ban-testcases \ --no-network \ - --no-gamin \ --verbosity=4 || die "Tests failed with ${EPYTHON}" # Workaround for bug #790251 @@ -100,7 +93,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process ${PN}-tmpfiles.conf - if [[ ${previous_less_than_0_7} = 0 ]] ; then + 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" @@ -113,10 +106,9 @@ pkg_postinst() { 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" + if ! has_version dev-python/pyinotify ; then + elog "For most jail.conf configurations, it is recommended you install" + elog "dev-python/pyinotify to control how log file modifications are detected" fi if ! has_version dev-lang/python[sqlite] ; then @@ -125,9 +117,4 @@ pkg_postinst() { 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 }
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: eac54734250882a82dd9f67f48b29d8a173b8b80 Author: Sam James gentoo org> AuthorDate: Sun Jul 2 18:37:06 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jul 2 18:37:06 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eac54734 net-analyzer/fail2ban: disable py3.9 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index a1d63c65afee..78eedfc19464 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index ed94d18e70a8..4112631ff0a1 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 58fcf7a029526be874ad598825e8a9401efd6cb9 Author: Sam James gentoo org> AuthorDate: Mon May 1 12:40:08 2023 + Commit: Sam James gentoo org> CommitDate: Mon May 1 12:48:47 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58fcf7a0 net-analyzer/fail2ban: drop 1.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2.ebuild | 133 1 file changed, 133 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild deleted file mode 100644 index 4d8875e9a447.. --- a/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{9..11} ) - -inherit bash-completion-r1 distutils-r1 systemd tmpfiles - -DESCRIPTION="Scans log files and bans IPs that show malicious signs" -HOMEPAGE="https://www.fail2ban.org/"; - -if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; - inherit git-r3 -else - SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -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*' ) - ) -" - -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch -) - -python_prepare_all() { - distutils-r1_python_prepare_all - - # 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 -} - -python_compile() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - -python_test() { - bin/fail2ban-testcases \ - --no-network \ - --no-gamin \ - --verbosity=4 || die "Tests failed with ${EPYTHON}" - - # Workaround for bug #790251 - rm -r fail2ban.egg-info || die -} - -python_install_all() { - distutils-r1_python_install_all - - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - - newconfd files/fail2ban-openrc.conf ${PN} - - # These two are placed in the ${BUILD_DIR} after being "built" - # in install_scripts(). - newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" - systemd_dounit "${BUILD_DIR}/${PN}.service" - - dotmpfiles 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() { - tmpfiles_process ${PN}-tmpfiles.conf - - 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/system
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 5ef11094b2c088853a391968fc4f30c91c4a1edd Author: Arthur Zamarin gentoo org> AuthorDate: Sat Mar 4 05:46:37 2023 + Commit: Arthur Zamarin gentoo org> CommitDate: Sat Mar 4 05:46:37 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ef11094 net-analyzer/fail2ban: Stabilize 1.0.2-r1 ALLARCHES, #899514 Signed-off-by: Arthur Zamarin gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index 5814f14e5026..a1d63c65afee 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: bcef656f098dc9567f71ab80b46286f62a3a1662 Author: WANG Xuerui gentoo org> AuthorDate: Mon Feb 27 07:42:50 2023 + Commit: WANG Xuerui gentoo org> CommitDate: Mon Feb 27 09:01:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcef656f net-analyzer/fail2ban: forward ~loong Signed-off-by: WANG Xuerui gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 779449fafb84..a2b8a7d9b312 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 0a214ff7281445066b2674e3932b83b81c046965 Author: WANG Xuerui gentoo org> AuthorDate: Mon Feb 27 07:42:46 2023 + Commit: WANG Xuerui gentoo org> CommitDate: Mon Feb 27 09:01:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a214ff7 net-analyzer/fail2ban: keyword 1.0.2-r1 for ~loong Signed-off-by: WANG Xuerui gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index 2cdb64c1521b..5814f14e5026 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: a7f11b8f9ad392f2440ce2642f0d061e7de5414c Author: WANG Xuerui gentoo org> AuthorDate: Mon Feb 27 07:43:29 2023 + Commit: WANG Xuerui gentoo org> CommitDate: Mon Feb 27 09:01:09 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7f11b8f net-analyzer/fail2ban: forward ~riscv Signed-off-by: WANG Xuerui gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index a2b8a7d9b312..ed94d18e70a8 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: dc014ecd054c97d9fa66f834a37846ee3c37c67c Author: Xin Yang icloud com> AuthorDate: Wed Feb 15 15:06:29 2023 + Commit: Sam James gentoo org> CommitDate: Wed Feb 22 16:18:02 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc014ecd net-analyzer/fail2ban: keyword 1.0.2-r1 riscv #894594 Signed-off-by: Xin Yang icloud.com> Closes: https://github.com/gentoo/gentoo/pull/29594 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild index 53863b7983db..2cdb64c1521b 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/, net-analyzer/fail2ban/files/
commit: ed3efbc32c75f107e1633b92e99a37e31d9462d9 Author: hsk17 mail de> AuthorDate: Tue Nov 29 11:11:59 2022 + Commit: Sam James gentoo org> CommitDate: Wed Jan 4 05:49:56 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed3efbc3 net-analyzer/fail2ban: backport patch for annoying configreader warnings Closes: https://github.com/gentoo/gentoo/pull/28473 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild | 134 + .../fail2ban-1.0.2-configreader-warning.patch | 19 +++ 2 files changed, 153 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild new file mode 100644 index ..177a0d0239c8 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-1.0.2-r1.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; + +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; + inherit git-r3 +else + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +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*' ) + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${P}-configreader-warning.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # 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 +} + +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + +python_test() { + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 6b506fb96eba87f9d4f5d1865c086f4697d7bcb9 Author: Sam James gentoo org> AuthorDate: Sat Dec 10 04:32:27 2022 + Commit: Sam James gentoo org> CommitDate: Sat Dec 10 04:35:07 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b506fb9 net-analyzer/fail2ban: drop 0.11.2-r4, 1.0.1 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest | 2 - net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild| 137 net-analyzer/fail2ban/fail2ban-1.0.1.ebuild| 133 --- .../files/fail2ban-0.11.2-fix-2to3-usage.patch | 109 - .../fail2ban-0.11.2-fix-py3.10-collections.patch | 33 --- .../files/fail2ban-0.11.2-fix-systemd-test.patch | 22 -- .../files/fail2ban-0.11.2-fix-tests-for-2021.patch | 50 - .../files/fail2ban-0.11.2-upstream-openrc.patch| 247 - 8 files changed, 733 deletions(-) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 8d0bacdc9b1a..ab84e5639461 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,3 +1 @@ -DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 -DIST fail2ban-1.0.1.tar.gz 582122 BLAKE2B 1fe1e5b3d6a1790304c29066b7a8edcb5a6ea11bea6fd8a2bf5f42a4725db1d5bfdd9ed1215a51bfc0eeccafa8a0e93c45940e897ceba7335965126f9b913ab0 SHA512 a4d0ee5405225b1ec950f3209bc304c1168c644d06309a187d77119f6bea12c382db046130a86411aad4210b458a16ee092269dc7953400950969a34550c6da5 DIST fail2ban-1.0.2.tar.gz 583295 BLAKE2B 84eb5e3487c4db734f4f0a36af142d520e1cc53c2960893ee2f05ff4e78133860be59ed9580fa0d972509a03c17e5d9458b8e3f6b470a4c3154f10911f94691e SHA512 688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild deleted file mode 100644 index ffabcf3a0b71.. --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_SINGLE_IMPL=1 - -inherit bash-completion-r1 distutils-r1 systemd tmpfiles - -DESCRIPTION="Scans log files and bans IPs that show malicious signs" -HOMEPAGE="https://www.fail2ban.org/"; -if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/${PN}/${PN}"; - inherit git-r3 -else - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -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*' ) - ) -" - -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -PATCHES=( - "${FILESDIR}"/${P}-fix-tests-for-2021.patch - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${P}-fix-2to3-usage.patch - "${FILESDIR}"/${P}-fix-systemd-test.patch - "${FILESDIR}"/${P}-fix-py3.10-collections.patch - "${FILESDIR}"/${P}-upstream-openrc.patch -) - -python_prepare_all() { - distutils-r1_python_prepare_all - - # 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 -} - -python_compile() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - -python_test() { - bin/fail2ban-testcases \ - --no-network \ - --no-gamin \ - --verbosity=4 || die "Tests failed with ${EPYTHON}" - - # Workaround for bug #790251 - rm -r fail2ban.egg-info || die -} - -python_install_all() { - distutils-r1_python_install_all - - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - - newconfd files/fail2ban-openrc.conf ${PN} - - # These two are placed in the ${BUILD_DIR} after being "built" - # in install_scripts(). - newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" - systemd_dounit "${BUILD_DIR}/${PN}.service" - - dotmpfiles files/${PN}-tmpfiles.conf - - doman man/*.{1,5} - - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. - # See ht
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 2857f400a329992f5bf0d4293b66d68410de60f1 Author: Sam James gentoo org> AuthorDate: Fri Nov 25 05:04:09 2022 + Commit: Sam James gentoo org> CommitDate: Fri Nov 25 05:04:09 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2857f400 net-analyzer/fail2ban: Stabilize 1.0.2 ALLARCHES, #882835 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-1.0.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild index cf108a52442c..a58df6395116 100644 --- a/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild @@ -16,7 +16,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 3841e6bbdb365e4a992177c2851f9efb66e7e62e Author: Sam James gentoo org> AuthorDate: Thu Nov 10 06:18:09 2022 + Commit: Sam James gentoo org> CommitDate: Thu Nov 10 06:18:09 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3841e6bb net-analyzer/fail2ban: add 1.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest | 1 + net-analyzer/fail2ban/fail2ban-1.0.2.ebuild | 133 2 files changed, 134 insertions(+) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 44e3f95a0485..8d0bacdc9b1a 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,2 +1,3 @@ DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 DIST fail2ban-1.0.1.tar.gz 582122 BLAKE2B 1fe1e5b3d6a1790304c29066b7a8edcb5a6ea11bea6fd8a2bf5f42a4725db1d5bfdd9ed1215a51bfc0eeccafa8a0e93c45940e897ceba7335965126f9b913ab0 SHA512 a4d0ee5405225b1ec950f3209bc304c1168c644d06309a187d77119f6bea12c382db046130a86411aad4210b458a16ee092269dc7953400950969a34550c6da5 +DIST fail2ban-1.0.2.tar.gz 583295 BLAKE2B 84eb5e3487c4db734f4f0a36af142d520e1cc53c2960893ee2f05ff4e78133860be59ed9580fa0d972509a03c17e5d9458b8e3f6b470a4c3154f10911f94691e SHA512 688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb diff --git a/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild new file mode 100644 index ..cf108a52442c --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-1.0.2.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..11} ) + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; + +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; + inherit git-r3 +else + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +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*' ) + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # 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 +} + +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + +python_test() { + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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 co
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 4c48d24146b11b50197ef9c80989adc5da37c4f6 Author: Sam James gentoo org> AuthorDate: Tue Sep 27 17:39:26 2022 + Commit: Sam James gentoo org> CommitDate: Tue Sep 27 17:57:49 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c48d241 net-analyzer/fail2ban: add 1.0.1 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest | 1 + .../fail2ban/{fail2ban-.ebuild => fail2ban-1.0.1.ebuild} | 12 net-analyzer/fail2ban/fail2ban-.ebuild | 12 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 544366b395d0..44e3f95a0485 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1 +1,2 @@ DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 +DIST fail2ban-1.0.1.tar.gz 582122 BLAKE2B 1fe1e5b3d6a1790304c29066b7a8edcb5a6ea11bea6fd8a2bf5f42a4725db1d5bfdd9ed1215a51bfc0eeccafa8a0e93c45940e897ceba7335965126f9b913ab0 SHA512 a4d0ee5405225b1ec950f3209bc304c1168c644d06309a187d77119f6bea12c382db046130a86411aad4210b458a16ee092269dc7953400950969a34550c6da5 diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-1.0.1.ebuild similarity index 93% copy from net-analyzer/fail2ban/fail2ban-.ebuild copy to net-analyzer/fail2ban/fail2ban-1.0.1.ebuild index e4e61c3a52a1..cf108a52442c 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-1.0.1.ebuild @@ -1,20 +1,21 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles DESCRIPTION="Scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; + if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; inherit git-r3 else - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" fi @@ -59,6 +60,9 @@ python_test() { --no-network \ --no-gamin \ --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die } python_install_all() { diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index e4e61c3a52a1..cf108a52442c 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -1,20 +1,21 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{8..11} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles DESCRIPTION="Scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; + if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + EGIT_REPO_URI="https://github.com/fail2ban/fail2ban"; inherit git-r3 else - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" fi @@ -59,6 +60,9 @@ python_test() { --no-network \ --no-gamin \ --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die } python_install_all() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 854c9a80a414d213db23dc45513cb9bcd2f20271 Author: Sam James gentoo org> AuthorDate: Sun Feb 20 05:41:15 2022 + Commit: Sam James gentoo org> CommitDate: Sun Feb 20 05:41:15 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=854c9a80 net-analyzer/fail2ban: drop 0.11.2, 0.11.2-r1, 0.11.2-r2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild | 133 --- net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild | 134 net-analyzer/fail2ban/fail2ban-0.11.2.ebuild| 130 --- 3 files changed, 397 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild deleted file mode 100644 index 52bfd2a78f2a.. --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8,9} ) -DISTUTILS_SINGLE_IMPL=1 - -inherit bash-completion-r1 distutils-r1 systemd tmpfiles - -DESCRIPTION="Scans log files and bans IPs that show malicious signs" -HOMEPAGE="https://www.fail2ban.org/"; -if [[ ${PV} == * ]] ; then - EGIT_REPO_URI="https://github.com/${PN}/${PN}"; - inherit git-r3 -else - SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -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*' ) - ) -" - -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -PATCHES=( - "${FILESDIR}"/${P}-fix-tests-for-2021.patch - "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${P}-fix-2to3-usage.patch - "${FILESDIR}"/${P}-fix-systemd-test.patch -) - -python_prepare_all() { - # 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() { - ./fail2ban-2to3 || die - distutils-r1_python_compile -} - -python_test() { - bin/fail2ban-testcases \ - --no-network \ - --no-gamin \ - --verbosity=4 || die "Tests failed with ${EPYTHON}" -} - -python_install_all() { - distutils-r1_python_install_all - - rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/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 - dotmpfiles 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() { - tmpfiles_process ${PN}-tmpfiles.conf - - 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}'
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 82e05c77c999ecf05142c6350baec99ff47a4e74 Author: Sam James gentoo org> AuthorDate: Thu Feb 10 10:04:13 2022 + Commit: Sam James gentoo org> CommitDate: Thu Feb 10 10:04:13 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e05c77 net-analyzer/fail2ban: Stabilize 0.11.2-r4 ppc, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index d48571694984..e3a0d4fe6ebe 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: bbcafaa30ce8336db14509199c133e1d8c4305d8 Author: Sam James gentoo org> AuthorDate: Thu Feb 10 10:04:23 2022 + Commit: Sam James gentoo org> CommitDate: Thu Feb 10 10:04:23 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbcafaa3 net-analyzer/fail2ban: Stabilize 0.11.2-r4 sparc, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index f9c066b18abe..ffabcf3a0b71 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 5a2c1d5659c26196dd45e490050a265b0249b67f Author: Sam James gentoo org> AuthorDate: Thu Feb 10 10:04:18 2022 + Commit: Sam James gentoo org> CommitDate: Thu Feb 10 10:04:18 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a2c1d56 net-analyzer/fail2ban: Stabilize 0.11.2-r4 ppc64, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index e3a0d4fe6ebe..f9c066b18abe 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 hppa ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 46a85d3ee1bb99c5cf720d78c5e2271f1b94b08e Author: Sam James gentoo org> AuthorDate: Thu Feb 10 10:04:09 2022 + Commit: Sam James gentoo org> CommitDate: Thu Feb 10 10:04:09 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46a85d3e net-analyzer/fail2ban: Stabilize 0.11.2-r4 arm, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index 216eb02d56e1..d48571694984 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b09e9d026e616db422eb15de875a90819952d0e4 Author: Sam James gentoo org> AuthorDate: Wed Feb 2 07:24:24 2022 + Commit: Sam James gentoo org> CommitDate: Wed Feb 2 07:24:24 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b09e9d02 net-analyzer/fail2ban: Stabilize 0.11.2-r4 hppa, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index a86650e9d020..216eb02d56e1 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 73a7a7395ba18cd24632e75f045d9726a0ddab03 Author: Sam James gentoo org> AuthorDate: Mon Jan 31 01:14:13 2022 + Commit: Sam James gentoo org> CommitDate: Mon Jan 31 01:26:24 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73a7a739 net-analyzer/fail2ban: drop upstreamed patch in Closes: https://bugs.gentoo.org/832392 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 1 - 1 file changed, 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 59203cfb4af6..e4e61c3a52a1 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -39,7 +39,6 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${PN}-0.11.2-upstream-openrc.patch ) python_prepare_all() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 19866ae5c569e75fa43f315f272e48b405e6686f Author: Sam James gentoo org> AuthorDate: Sun Jan 30 22:25:59 2022 + Commit: Sam James gentoo org> CommitDate: Sun Jan 30 22:25:59 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19866ae5 net-analyzer/fail2ban: Stabilize 0.11.2-r4 arm64, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index a0ab7a9bbcd1..a86650e9d020 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 615f4cd20fc904de5344bfc67c8049fbafbc9c8e Author: Jakov Smolić gentoo org> AuthorDate: Sat Jan 29 21:41:46 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Sat Jan 29 21:41:46 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=615f4cd2 net-analyzer/fail2ban: Stabilize 0.11.2-r4 amd64, #831578 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index fe1a7dcfa4cb..1a14ba3bd3e0 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: ab90da31defc693f5146c2de39e36e03215d73ba Author: Jakov Smolić gentoo org> AuthorDate: Sat Jan 29 21:42:04 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Sat Jan 29 21:42:04 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab90da31 net-analyzer/fail2ban: Stabilize 0.11.2-r4 x86, #831578 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index 1a14ba3bd3e0..a0ab7a9bbcd1 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b4a9f058c33187007efe3b994eab21e9ff68699e Author: Sam James gentoo org> AuthorDate: Tue Jan 25 21:24:57 2022 + Commit: Sam James gentoo org> CommitDate: Tue Jan 25 21:24:57 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a9f058 net-analyzer/fail2ban: Stabilize 0.11.2-r2 arm64, #831578 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild index 5592c700addf..a8fa65da7679 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: c2f936993e512259febd1361c64579350071301d Author: Sam James gentoo org> AuthorDate: Sun Jan 23 00:50:14 2022 + Commit: Sam James gentoo org> CommitDate: Sun Jan 23 15:19:55 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f93699 net-analyzer/fail2ban: fix installation of .egg-info if tests used Need to revbump as anyone who ran tests will have a dodgy installation of fail2ban. mgorny explains fully in the bug (and thanks to him for investigating this), but the gist is that the test runner sets umask but never unsets it/reverts it, so it ends up affecting the rest of the installed files by the package. Closes: https://bugs.gentoo.org/790251 Thanks-to: Michał Górny gentoo.org> Signed-off-by: Sam James gentoo.org> .../fail2ban/{fail2ban-0.11.2-r3.ebuild => fail2ban-0.11.2-r4.ebuild} | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild similarity index 98% rename from net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild rename to net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild index 1390bc1bdc39..fe1a7dcfa4cb 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r4.ebuild @@ -64,6 +64,9 @@ python_test() { --no-network \ --no-gamin \ --verbosity=4 || die "Tests failed with ${EPYTHON}" + + # Workaround for bug #790251 + rm -r fail2ban.egg-info || die } python_install_all() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f44634fe3241b9e1cb1aeb1eff65af38f4ca4b02 Author: Jakov Smolić gentoo org> AuthorDate: Thu Jan 20 13:15:57 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Jan 20 13:15:57 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f44634fe net-analyzer/fail2ban: Stabilize 0.11.2-r2 x86, #831578 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild index e1483b6442e6..411878569f34 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f5cc617d7a087018b3e3209727798ab017d08479 Author: Jakov Smolić gentoo org> AuthorDate: Thu Jan 20 13:16:00 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Thu Jan 20 13:16:00 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5cc617d net-analyzer/fail2ban: Stabilize 0.11.2-r2 amd64, #831578 Signed-off-by: Jakov Smolić gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild index 411878569f34..5592c700addf 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" + KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/
commit: 9c8a5ce28bc722679e5c1bb69c76d837289ab736 Author: Sam James gentoo org> AuthorDate: Wed Jan 5 11:58:32 2022 + Commit: Sam James gentoo org> CommitDate: Wed Jan 5 11:58:32 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c8a5ce2 net-analyzer/fail2ban: fix typo in conf.d (cosmetic) Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/files/fail2ban-0.11.2-upstream-openrc.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-upstream-openrc.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-upstream-openrc.patch index 7483c5685156..bbe655124d36 100644 --- a/net-analyzer/fail2ban/files/fail2ban-0.11.2-upstream-openrc.patch +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-upstream-openrc.patch @@ -21,7 +21,7 @@ index ..9454ef68 --- /dev/null +++ b/files/fail2ban-openrc.conf @@ -0,0 +1,2 @@ -+# For available options, plase run "fail2ban-server --help". ++# For available options, please run "fail2ban-server --help". +#FAIL2BAN_OPTIONS="-x" diff --git a/files/fail2ban-openrc.init.in b/files/fail2ban-openrc.init.in new file mode 100755
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 28dc3dd2a92f5920653c2f0719cb697e4f7cbae1 Author: Sam James gentoo org> AuthorDate: Tue Jan 4 20:41:23 2022 + Commit: Sam James gentoo org> CommitDate: Tue Jan 4 20:45:06 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28dc3dd2 net-analyzer/fail2ban: sync live Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 9d117cebef47..59203cfb4af6 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{8,9} ) +PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -31,8 +31,7 @@ RDEPEND=" || ( dev-python/python-systemd[${PYTHON_USEDEP}] sys-apps/systemd[python(-),${PYTHON_USEDEP}] - ) - ' 'python*') + )' 'python*' ) ) " @@ -40,16 +39,15 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-0.11.2-upstream-openrc.patch ) python_prepare_all() { + distutils-r1_python_prepare_all + # 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() { @@ -69,12 +67,13 @@ python_install_all() { rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - # Not ${FILESDIR} - newconfd files/gentoo-confd ${PN} - newinitd files/gentoo-initd ${PN} + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" - sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die - systemd_dounit "${T}"/${PN}.service dotmpfiles files/${PN}-tmpfiles.conf doman man/*.{1,5} @@ -98,7 +97,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process ${PN}-tmpfiles.conf - if [[ ${previous_less_than_0_7} == 0 ]] ; then + 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"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/, net-analyzer/fail2ban/files/
commit: abb0829a6cca560c1686ee864b9735a60c2c4b98 Author: Michael Orlitzky gentoo org> AuthorDate: Tue Jan 4 15:18:46 2022 + Commit: Michael Orlitzky gentoo org> CommitDate: Tue Jan 4 16:08:31 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abb0829a net-analyzer/fail2ban: new revision with improved openrc support. This -r3 adds a patch corresponding to, https://github.com/fail2ban/fail2ban/pull/2182 that (a) upstreams the OpenRC script and (b) adds some nice improvements to it. Done with sam's permission. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Michael Orlitzky gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild| 134 +++ .../files/fail2ban-0.11.2-upstream-openrc.patch| 247 + 2 files changed, 381 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild new file mode 100644 index ..1390bc1bdc39 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r3.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +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*' ) + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${P}-fix-tests-for-2021.patch + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${P}-fix-2to3-usage.patch + "${FILESDIR}"/${P}-fix-systemd-test.patch + "${FILESDIR}"/${P}-fix-py3.10-collections.patch + "${FILESDIR}"/${P}-upstream-openrc.patch +) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # 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 +} + +python_compile() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + +python_test() { + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die + + newconfd files/fail2ban-openrc.conf ${PN} + + # These two are placed in the ${BUILD_DIR} after being "built" + # in install_scripts(). + newinitd "${BUILD_DIR}/fail2ban-openrc.init" "${PN}" + systemd_dounit "${BUILD_DIR}/${PN}.service" + + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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/pyinoti
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/, net-analyzer/fail2ban/files/
commit: 15dae333e924ac177f65934a4f8c0bee3d36b7d4 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Dec 17 17:54:56 2021 + Commit: Arthur Zamarin gentoo org> CommitDate: Fri Dec 17 17:58:33 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15dae333 net-analyzer/fail2ban: enable py3.10 Signed-off-by: Arthur Zamarin gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild| 134 + .../fail2ban-0.11.2-fix-py3.10-collections.patch | 33 + 2 files changed, 167 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild new file mode 100644 index ..e1483b6442e6 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 distutils-r1 systemd tmpfiles + +DESCRIPTION="Scans log files and bans IPs that show malicious signs" +HOMEPAGE="https://www.fail2ban.org/"; +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +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*' ) + ) +" + +DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) + +PATCHES=( + "${FILESDIR}"/${P}-fix-tests-for-2021.patch + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${P}-fix-2to3-usage.patch + "${FILESDIR}"/${P}-fix-systemd-test.patch + "${FILESDIR}"/${P}-fix-py3.10-collections.patch +) + +python_prepare_all() { + # 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() { + ./fail2ban-2to3 || die + distutils-r1_python_compile +} + +python_test() { + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/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 + dotmpfiles 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() { + tmpfiles_process ${PN}-tmpfiles.conf + + 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 reinsta
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 6fe5661c2c211076587b54ff97e06bef9f69d864 Author: Sam James gentoo org> AuthorDate: Sun Oct 24 03:38:46 2021 + Commit: Sam James gentoo org> CommitDate: Sun Oct 24 03:38:59 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fe5661c net-analyzer/fail2ban: backport upstream test fix for systemd Closes: https://bugs.gentoo.org/794931 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild| 3 ++- .../files/fail2ban-0.11.2-fix-systemd-test.patch | 22 ++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild index 3e667a2f573..52bfd2a78f2 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild @@ -40,7 +40,8 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${P}-fix-tests-for-2021.patch "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch - "${FILESDIR}"/${PN}-0.11.2-fix-2to3-usage.patch + "${FILESDIR}"/${P}-fix-2to3-usage.patch + "${FILESDIR}"/${P}-fix-systemd-test.patch ) python_prepare_all() { diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-systemd-test.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-systemd-test.patch new file mode 100644 index 000..865ce19912b --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-systemd-test.patch @@ -0,0 +1,22 @@ +https://github.com/fail2ban/fail2ban/pull/3037 +https://bugs.gentoo.org/794931 + +From: Mike Gilbert +Date: Tue, 8 Jun 2021 17:48:12 -0400 +Subject: [PATCH] tests: improve detection of readable systemd journal + +Look for system.journal in journal sub-directory. +Add -readable to the find command. + +Bug: https://bugs.gentoo.org/794931 +--- a/fail2ban/tests/filtertestcase.py b/fail2ban/tests/filtertestcase.py +@@ -1396,7 +1396,7 @@ def _getRuntimeJournal(self): + # check one at at time until the first hit + for systemd_var in 'system-runtime-logs', 'system-state-logs': + tmp = Utils.executeCmd( +- 'find "$(systemd-path %s)" -name system.journal' % systemd_var, ++ 'find "$(systemd-path %s)/journal" -name system.journal -readable' % systemd_var, + timeout=10, shell=True, output=True + ) + self.assertTrue(tmp)
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/, net-analyzer/fail2ban/files/
commit: 5e75f94661d665527b763aa8a5a85e4c7f45a130 Author: Sam James gentoo org> AuthorDate: Sun Oct 24 03:37:21 2021 + Commit: Sam James gentoo org> CommitDate: Sun Oct 24 03:38:58 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e75f946 net-analyzer/fail2ban: fix install with newer setuptools (2to3 usage) Closes: https://bugs.gentoo.org/818733 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild| 1 + .../files/fail2ban-0.11.2-fix-2to3-usage.patch | 109 + 2 files changed, 110 insertions(+) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild index d2a4540b0ea..3e667a2f573 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild @@ -40,6 +40,7 @@ DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) PATCHES=( "${FILESDIR}"/${P}-fix-tests-for-2021.patch "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch + "${FILESDIR}"/${PN}-0.11.2-fix-2to3-usage.patch ) python_prepare_all() { diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-2to3-usage.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-2to3-usage.patch new file mode 100644 index 000..9098d096e8a --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-2to3-usage.patch @@ -0,0 +1,109 @@ +https://github.com/fail2ban/fail2ban/commit/7f22c4873aed3b5ffce0953f079f3c1977297c9a +https://github.com/fail2ban/fail2ban/commit/5ac303df8a171f748330d4c645ccbf1c2c7f3497 +https://github.com/fail2ban/fail2ban/commit/d6b884f3b72b8a42b21da863836569ef6836c2ea +https://github.com/fail2ban/fail2ban/issues/3098 +https://bugs.gentoo.org/818733 + +From: "Sergey G. Brester" +Date: Sun, 19 Sep 2021 18:36:02 +0200 +Subject: [PATCH] remove 2to3 in setup (should be called outside before setup) + +--- a/setup.py b/setup.py +@@ -39,14 +39,6 @@ + if setuptools is None: + from distutils.command.install import install + from distutils.command.install_scripts import install_scripts +-try: +- # python 3.x +- from distutils.command.build_py import build_py_2to3 +- from distutils.command.build_scripts import build_scripts_2to3 +- _2to3 = True +-except ImportError: +- # python 2.x +- _2to3 = False + + import os + from os.path import isfile, join, isdir, realpath + +From: sebres +Date: Sun, 19 Sep 2021 18:49:18 +0200 +Subject: [PATCH] fix gh-3098: build fails with error in fail2ban setup + command: use_2to3 is invalid (setuptools 58+) + +--- a/setup.py b/setup.py +@@ -48,7 +48,7 @@ + from glob import glob + + from fail2ban.setup import updatePyExec +- ++from fail2ban.version import version + + source_dir = os.path.realpath(os.path.dirname( + # __file__ seems to be overwritten sometimes on some python versions (e.g. bug of 2.6 by running under cProfile, etc.): +@@ -112,22 +112,12 @@ def update_scripts(self, dry_run=False): + # Wrapper to specify fail2ban own options: + class install_command_f2b(install): + user_options = install.user_options + [ +- ('disable-2to3', None, 'Specify to deactivate 2to3, e.g. if the install runs from fail2ban test-cases.'), + ('without-tests', None, 'without tests files installation'), + ] + def initialize_options(self): +- self.disable_2to3 = None + self.without_tests = not with_tests + install.initialize_options(self) + def finalize_options(self): +- global _2to3 +- ## in the test cases 2to3 should be already done (fail2ban-2to3): +- if self.disable_2to3: +- _2to3 = False +- if _2to3: +- cmdclass = self.distribution.cmdclass +- cmdclass['build_py'] = build_py_2to3 +- cmdclass['build_scripts'] = build_scripts_2to3 + if self.without_tests: + self.distribution.scripts.remove('bin/fail2ban-testcases') + +@@ -178,7 +168,6 @@ def run(self): + if setuptools: + setup_extra = { + 'test_suite': "fail2ban.tests.utils.gatherTests", +- 'use_2to3': True, + } + else: + setup_extra = {} +@@ -202,9 +191,6 @@ def run(self): + ('/usr/share/doc/fail2ban', doc_files) + ) + +-# Get version number, avoiding importing fail2ban. +-# This is due to tests not functioning for python3 as 2to3 takes place later +-exec(open(join("fail2ban", "version.py")).read()) + + setup( + name = "fail2ban", +From: sebres +Date: Sun, 19 Sep 2021 18:52:34 +0200 +Subject: [PATCH] amend to fix gh-3098: no option `--disable-2to3` anymore + +--- a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py +@@ -111,7 +111,7 @@ def testSetupInstallDryRun(self): + supdbgout = ' >/dev
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: b5bf65c99b25586c019e8640813370122ca22f9b Author: Sam James gentoo org> AuthorDate: Thu Sep 16 06:29:03 2021 + Commit: Sam James gentoo org> CommitDate: Thu Sep 16 06:29:03 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5bf65c9 net-analyzer/fail2ban: Stabilize 0.11.2-r1 ALLARCHES, #813165 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild index a858cbe09d2..d2a4540b0ea 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 sparc x86" fi LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 00402f66d1cdf8144ff08f446010cfdbd8d2fe4a Author: Sam James gentoo org> AuthorDate: Wed Aug 11 01:00:15 2021 + Commit: Sam James gentoo org> CommitDate: Wed Aug 11 01:00:15 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00402f66 net-analyzer/fail2ban: fix Apache log path Closes: https://bugs.gentoo.org/805485 Signed-off-by: Sam James gentoo.org> ...l2ban-.ebuild => fail2ban-0.11.2-r1.ebuild} | 12 ++--- net-analyzer/fail2ban/fail2ban-.ebuild | 6 - .../fail2ban-0.11.2-adjust-apache-logs-paths.patch | 29 ++ 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild similarity index 94% copy from net-analyzer/fail2ban/fail2ban-.ebuild copy to net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild index 2ad8f462e23..a858cbe09d2 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8,9} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -31,13 +31,17 @@ RDEPEND=" || ( dev-python/python-systemd[${PYTHON_USEDEP}] sys-apps/systemd[python(-),${PYTHON_USEDEP}] - ) - ' 'python*') + )' 'python*' ) ) " DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) +PATCHES=( + "${FILESDIR}"/${P}-fix-tests-for-2021.patch + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch +) + python_prepare_all() { # Replace /var/run with /run, but not in the top source directory find . -mindepth 2 -type f -exec \ @@ -94,7 +98,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process ${PN}-tmpfiles.conf - if [[ ${previous_less_than_0_7} == 0 ]] ; then + 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" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 2ad8f462e23..9d117cebef4 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8,9} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -38,6 +38,10 @@ RDEPEND=" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) +PATCHES=( + "${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch +) + python_prepare_all() { # Replace /var/run with /run, but not in the top source directory find . -mindepth 2 -type f -exec \ diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-adjust-apache-logs-paths.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-adjust-apache-logs-paths.patch new file mode 100644 index 000..3017883f0d5 --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-adjust-apache-logs-paths.patch @@ -0,0 +1,29 @@ +From bda9b88e883207b99781352c68610980e23fa62f Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Wed, 11 Aug 2021 01:58:05 +0100 +Subject: [PATCH] Adjust Apache log paths for Gentoo + +Closes: https://bugs.gentoo.org/805485 +--- + config/paths-common.conf | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/config/paths-common.conf b/config/paths-common.conf +index 7383caf..4f4a6e1 100644 +--- a/config/paths-common.conf b/config/paths-common.conf +@@ -36,9 +36,9 @@ sshd_backend = %(default_backend)s + dropbear_log = %(syslog_authpriv)s + dropbear_backend = %(default_backend)s + +-apache_error_log = /var/log/apache2/*error.log ++apache_error_log = /var/log/apache2/*error_log + +-apache_access_log = /var/log/apache2/*access.log ++apache_access_log = /var/log/apache2/*access_log + + # from /etc/audit/auditd.conf + auditd_log = /var/log/audit/audit.log +-- +2.32.0 +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 84ef946be41efb9b2e0f22fad8b2b39c3e18197b Author: Sam James gentoo org> AuthorDate: Fri May 14 12:54:55 2021 + Commit: Sam James gentoo org> CommitDate: Fri May 14 17:22:23 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84ef946b net-analyzer/fail2ban: use live template Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 26 ++-- net-analyzer/fail2ban/fail2ban-.ebuild | 45 +--- 2 files changed, 45 insertions(+), 26 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index 1c47a71b51d..caf428f0ca7 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -10,11 +10,16 @@ inherit bash-completion-r1 distutils-r1 systemd tmpfiles 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" +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" +fi LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" IUSE="selinux systemd" RDEPEND=" @@ -27,7 +32,7 @@ RDEPEND=" dev-python/python-systemd[${PYTHON_USEDEP}] sys-apps/systemd[python(-),${PYTHON_USEDEP}] )' 'python*' ) - ) + ) " DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -52,7 +57,10 @@ python_compile() { } python_test() { - bin/fail2ban-testcases -n -g --verbosity=4 || die "Tests failed with ${EPYTHON}" + bin/fail2ban-testcases \ + --no-network \ + --no-gamin \ + --verbosity=4 || die "Tests failed with ${EPYTHON}" } python_install_all() { @@ -64,8 +72,8 @@ python_install_all() { 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 dotmpfiles files/${PN}-tmpfiles.conf doman man/*.{1,5} @@ -87,13 +95,13 @@ pkg_preinst() { } pkg_postinst() { - if [[ $previous_less_than_0_7 = 0 ]] ; then + 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 "files before restarting Fail2Ban!" elog - elog "Fail2ban is not installed under /usr/lib anymore. The" + 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:" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 0765abc8425..d0d4d4ef18f 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -6,35 +6,39 @@ EAPI=7 PYTHON_COMPAT=( python3_{7,8,9} ) DISTUTILS_SINGLE_IMPL=1 -inherit bash-completion-r1 distutils-r1 git-r3 systemd tmpfiles +inherit bash-completion-r1 distutils-r1 systemd tmpfiles DESCRIPTION="Scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; -EGIT_REPO_URI="https://github.com/${PN}/${PN}"; +if [[ ${PV} == * ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}"; + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi LICENSE="GPL-2" SLOT="0" IUSE="selinux systemd" -# Needs some work to enable them right now -RESTRICT="test" 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*' ) + $(python_gen_cond_dep ' + || ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/files/, net-analyzer/fail2ban/
commit: 592ea98a632c53260a6358ce42280cd3076c3d34 Author: Sam James gentoo org> AuthorDate: Fri May 14 12:51:59 2021 + Commit: Sam James gentoo org> CommitDate: Fri May 14 17:22:22 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=592ea98a net-analyzer/fail2ban: run tests Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 12 -- .../files/fail2ban-0.11.2-fix-tests-for-2021.patch | 50 ++ 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index 8f57fd666aa..1c47a71b51d 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -16,8 +16,6 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" IUSE="selinux systemd" -# Needs some work to enable them right now -RESTRICT="test" RDEPEND=" virtual/logger @@ -34,9 +32,11 @@ RDEPEND=" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) -python_prepare_all() { - default +PATCHES=( + "${FILESDIR}"/${P}-fix-tests-for-2021.patch +) +python_prepare_all() { # 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 @@ -51,6 +51,10 @@ python_compile() { distutils-r1_python_compile } +python_test() { + bin/fail2ban-testcases -n -g --verbosity=4 || die "Tests failed with ${EPYTHON}" +} + python_install_all() { distutils-r1_python_install_all diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-tests-for-2021.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-tests-for-2021.patch new file mode 100644 index 000..36193b18193 --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-tests-for-2021.patch @@ -0,0 +1,50 @@ +https://github.com/fail2ban/fail2ban/issues/2904 + +From 747d4683221b5584f9663695fb48145689b42ceb Mon Sep 17 00:00:00 2001 +From: sebres +Date: Mon, 4 Jan 2021 02:42:38 +0100 +Subject: [PATCH] fixes century selector of %ExY and %Exy in datepattern for + tests, considering interval from 2005 (alternate now) to now; + better + grouping algorithm for resulting century RE + +--- + fail2ban/server/strptime.py | 24 ++-- + 1 file changed, 22 insertions(+), 2 deletions(-) + +diff --git a/fail2ban/server/strptime.py b/fail2ban/server/strptime.py +index 1464a96d1f..39fc795865 100644 +--- a/fail2ban/server/strptime.py b/fail2ban/server/strptime.py +@@ -36,10 +36,30 @@ def _getYearCentRE(cent=(0,3), distance=3, now=(MyTime.now(), MyTime.alternateNo + Thereby respect possible run in the test-cases (alternate date used there) + """ + cent = lambda year, f=cent[0], t=cent[1]: str(year)[f:t] ++ def grp(exprset): ++ c = None ++ if len(exprset) > 1: ++ for i in exprset: ++ if c is None or i[0:-1] == c: ++ c = i[0:-1] ++ else: ++ c = None ++ break ++ if not c: ++ for i in exprset: ++ if c is None or i[0] == c: ++ c = i[0] ++ else: ++ c = None ++ break ++ if c: ++ return "%s%s" % (c, grp([i[len(c):] for i in exprset])) ++ return ("(?:%s)" % "|".join(exprset) if len(exprset[0]) > 1 else "[%s]" % "".join(exprset)) \ ++ if len(exprset) > 1 else "".join(exprset) + exprset = set( cent(now[0].year + i) for i in (-1, distance) ) + if len(now) and now[1]: +- exprset |= set( cent(now[1].year + i) for i in (-1, distance) ) +- return "(?:%s)" % "|".join(exprset) if len(exprset) > 1 else "".join(exprset) ++ exprset |= set( cent(now[1].year + i) for i in xrange(-1, now[0].year-now[1].year+1, distance) ) ++ return grp(sorted(list(exprset))) + + timeRE = TimeRE() +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 5ad85c6533e8cc080fbfd474823e642f5ff2cf21 Author: Sam James gentoo org> AuthorDate: Mon Mar 22 22:57:10 2021 + Commit: Sam James gentoo org> CommitDate: Tue Mar 23 04:48:54 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ad85c65 net-analyzer/fail2ban: cosmetic changes, no PYTHON_MULTI_USEDEP Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 23 ++- net-analyzer/fail2ban/fail2ban-.ebuild | 20 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index 5e9fd5b5317..8f57fd666aa 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -23,10 +23,13 @@ RDEPEND=" virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) - systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] - )' 'python*' ) ) + systemd? ( + $(python_gen_cond_dep ' + || ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] + )' 'python*' ) + ) " DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -51,14 +54,16 @@ python_compile() { python_install_all() { distutils-r1_python_install_all - rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die + rm -rf "${ED}"/usr/share/doc/${PN} "${ED}"/run || die - # not FILESDIR + # 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" dotmpfiles files/${PN}-tmpfiles.conf + doman man/*.{1,5} # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. @@ -91,20 +96,20 @@ pkg_postinst() { 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 + 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 + 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 + 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-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 4a13926cd46..0765abc8425 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -22,10 +22,12 @@ RDEPEND=" virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) - systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] - )' 'python*' ) ) + systemd? ( + $(python_gen_cond_dep '|| ( + dev-python/python-systemd[${PYTHON_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_USEDEP}] + )' 'python*' ) + ) " DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -52,12 +54,14 @@ python_install_all() { rm -rf "${D}"/usr/share/doc/${PN} "${D}"/run || die - # not FILESDIR + # 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" dotmpfiles files/${PN}-tmpfiles.conf + doman man/*.{1,5} # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. @@ -90,20 +94,20 @@ pkg_postinst() { elog "http://www.fa
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: dfab2798bf9a79583cb8303c4eb03deaba1c7541 Author: Sam James gentoo org> AuthorDate: Wed Mar 17 01:39:19 2021 + Commit: Sam James gentoo org> CommitDate: Wed Mar 17 01:39:19 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfab2798 net-analyzer/fail2ban: style change for DESCRIPTION Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index 5ed0a845c74..5e9fd5b5317 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -8,7 +8,7 @@ DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd tmpfiles -DESCRIPTION="scans log files and bans IPs that show malicious signs" +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" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 5e5fb78a51f..4a13926cd46 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -8,13 +8,12 @@ DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 git-r3 systemd tmpfiles -DESCRIPTION="scans log files and bans IPs that show malicious signs" +DESCRIPTION="Scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; EGIT_REPO_URI="https://github.com/${PN}/${PN}"; LICENSE="GPL-2" SLOT="0" -KEYWORDS="" IUSE="selinux systemd" # Needs some work to enable them right now RESTRICT="test"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 834fddb1847d7b5a76fa81f8a83b4efcc732977a Author: Sam James gentoo org> AuthorDate: Sat Jan 2 11:01:42 2021 + Commit: Sam James gentoo org> CommitDate: Sat Jan 2 11:10:58 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=834fddb1 net-analyzer/fail2ban: minor style changes to Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index bf5f5359b22..75cf1cc7136 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + PYTHON_COMPAT=( python3_{6,7,8,9} ) DISTUTILS_SINGLE_IMPL=1 @@ -15,6 +16,8 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="selinux systemd" +# Needs some work to enable them right now +RESTRICT="test" RDEPEND=" virtual/logger @@ -26,7 +29,6 @@ RDEPEND=" )' 'python*' ) ) " -RESTRICT="test" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) python_prepare_all() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 53432beb26d2fd3cd1a50ee2378b5cbaef7676a0 Author: Sam James gentoo org> AuthorDate: Sat Jan 2 11:00:34 2021 + Commit: Sam James gentoo org> CommitDate: Sat Jan 2 11:10:57 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53432beb net-analyzer/fail2ban: rename live ebuild to Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> .../fail2ban/{fail2ban-.ebuild => fail2ban-.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild similarity index 98% rename from net-analyzer/fail2ban/fail2ban-.ebuild rename to net-analyzer/fail2ban/fail2ban-.ebuild index ab7e2cb0ad8..bf5f5359b22 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f042e7d532ed22af57c7734fb02886e357bbe049 Author: Sam James gentoo org> AuthorDate: Tue Dec 29 23:40:36 2020 + Commit: Sam James gentoo org> CommitDate: Tue Dec 29 23:40:36 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f042e7d5 net-analyzer/fail2ban: cleanup old Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest | 1 - net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 109 2 files changed, 110 deletions(-) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 26cff752e05..544366b395d 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,2 +1 @@ -DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca332d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild deleted file mode 100644 index 55969ac3638..000 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) -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 ~arm64 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_MULTI_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_MULTI_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() { - ./fail2ban-2to3 || die - 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 !
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: a98a0cff8619c920b82b578d97f208529fa89a49 Author: Sam James gentoo org> AuthorDate: Mon Dec 28 04:56:24 2020 + Commit: Sam James gentoo org> CommitDate: Mon Dec 28 04:58:15 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a98a0cff net-analyzer/fail2ban: mark ALLARCHES Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/metadata.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/net-analyzer/fail2ban/metadata.xml b/net-analyzer/fail2ban/metadata.xml index 1512403ed49..c56cd77765c 100644 --- a/net-analyzer/fail2ban/metadata.xml +++ b/net-analyzer/fail2ban/metadata.xml @@ -9,6 +9,7 @@ net...@gentoo.org Gentoo network monitoring and analysis project + fail2ban/fail2ban
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 2e9ab3c06af58d4f8f0cd6517ea7a3d17d609b78 Author: Sam James gentoo org> AuthorDate: Mon Dec 28 04:56:52 2020 + Commit: Sam James gentoo org> CommitDate: Mon Dec 28 04:58:16 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e9ab3c0 net-analyzer/fail2ban: drop netmon@ as maintainer Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/metadata.xml | 4 1 file changed, 4 deletions(-) diff --git a/net-analyzer/fail2ban/metadata.xml b/net-analyzer/fail2ban/metadata.xml index c56cd77765c..cd908145eac 100644 --- a/net-analyzer/fail2ban/metadata.xml +++ b/net-analyzer/fail2ban/metadata.xml @@ -5,10 +5,6 @@ s...@gentoo.org Sam James - -net...@gentoo.org -Gentoo network monitoring and analysis project - fail2ban/fail2ban
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 25bed59e1bd665991e4005af5f73963b3fda07e3 Author: Sam James gentoo org> AuthorDate: Mon Dec 28 04:58:10 2020 + Commit: Sam James gentoo org> CommitDate: Mon Dec 28 04:58:16 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25bed59e net-analyzer/fail2ban: Stabilize 0.11.2 ALLARCHES Closes: https://bugs.gentoo.org/762148 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index bd35827ae05..ebb59e058f0 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" IUSE="selinux systemd" # Needs some work to enable them right now RESTRICT="test"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 31b87fe803301b4fc3463ef11ebc4f26feb87a47 Author: Sam James gentoo org> AuthorDate: Mon Dec 21 22:52:51 2020 + Commit: Sam James gentoo org> CommitDate: Mon Dec 21 22:52:51 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31b87fe8 net-analyzer/fail2ban: adopt package Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/metadata.xml | 4 1 file changed, 4 insertions(+) diff --git a/net-analyzer/fail2ban/metadata.xml b/net-analyzer/fail2ban/metadata.xml index ece130a93bd..1512403ed49 100644 --- a/net-analyzer/fail2ban/metadata.xml +++ b/net-analyzer/fail2ban/metadata.xml @@ -1,6 +1,10 @@ http://www.gentoo.org/dtd/metadata.dtd";> + +s...@gentoo.org +Sam James + net...@gentoo.org Gentoo network monitoring and analysis project
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 47eb0761e38fd8af202552c0ce0d58a656cd8782 Author: Sam James gentoo org> AuthorDate: Sun Dec 13 05:35:23 2020 + Commit: Sam James gentoo org> CommitDate: Sun Dec 13 05:35:23 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47eb0761 net-analyzer/fail2ban: add Python 3.9 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild index 4d17977f7a5..bd35827ae05 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6,7,8,9} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 4cfac190293..ab7e2cb0ad8 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6,7,8,9} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 git-r3 systemd
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 429e33a3aec40e692c3e8eaa52d075036ae5473f Author: Sam James gentoo org> AuthorDate: Sat Dec 12 23:29:42 2020 + Commit: Sam James gentoo org> CommitDate: Sat Dec 12 23:29:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429e33a3 net-analyzer/fail2ban: bump to 0.11.2 Not yet adding tests as the previous version didn't seem to fully work with Python 3.8, so needed this in a hurry. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/Manifest | 1 + net-analyzer/fail2ban/fail2ban-0.11.2.ebuild | 111 +++ 2 files changed, 112 insertions(+) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index fc0170a8a29..26cff752e05 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1 +1,2 @@ DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca332d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 +DIST fail2ban-0.11.2.tar.gz 559552 BLAKE2B 0c61c1d5f6eb23d585533fbb84e69343cb305df188537a97002489318292c6056447c4c221c9d4d4cde6cca52f0c2fb877b597957f703e4d6707801a646e52b0 SHA512 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.2.ebuild new file mode 100644 index 000..4d17977f7a5 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.11.2.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=( python3_{6,7,8} ) +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 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux systemd" +# Needs some work to enable them right now +RESTRICT="test" + +RDEPEND=" + virtual/logger + virtual/mta + selinux? ( sec-policy/selinux-fail2ban ) + systemd? ( $(python_gen_cond_dep '|| ( + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] + )' 'python*' ) ) +" + +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() { + ./fail2ban-2to3 || die + 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
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 276e0e4f773aac17146f22d168e16a4c93ed0228 Author: Sam James gentoo org> AuthorDate: Thu Dec 3 06:49:00 2020 + Commit: Sam James gentoo org> CommitDate: Thu Dec 3 06:49:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=276e0e4f net-analyzer/fail2ban: add Python 3.8 to live too Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 358d12b3149..4cfac190293 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 git-r3 systemd
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: f4320a663feed52fc9e804cee3c6e001b0a8da52 Author: Sam James gentoo org> AuthorDate: Fri Nov 20 13:43:39 2020 + Commit: Sam James gentoo org> CommitDate: Fri Nov 20 13:43:39 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4320a66 net-analyzer/fail2ban: arm64 keyworded (bug #754780) Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index dae97e6adc4..55969ac3638 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~arm64 hppa ppc ppc64 sparc x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 4db82961339725f1218f6e2e58d75007b444d1db Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Aug 3 21:23:58 2020 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Aug 14 23:21:32 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db82961 net-analyzer/fail2ban: Drop superfluous calls to python_is_python3 Signed-off-by: Andreas Sturmlechner gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 4 +--- net-analyzer/fail2ban/fail2ban-.ebuild | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index f71bda0473e..dae97e6adc4 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -42,9 +42,7 @@ python_prepare_all() { } python_compile() { - if python_is_python3; then - ./fail2ban-2to3 || die - fi + ./fail2ban-2to3 || die distutils-r1_python_compile } diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 2fe548988a0..358d12b3149 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -42,9 +42,7 @@ python_prepare_all() { } python_compile() { - if python_is_python3; then - ./fail2ban-2to3 || die - fi + ./fail2ban-2to3 || die distutils-r1_python_compile }
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 1e309919419a62d5636a51cefbc2523f42a59d98 Author: Patrick McLean sony com> AuthorDate: Sat May 2 00:40:36 2020 + Commit: Patrick McLean gentoo org> CommitDate: Sat May 2 00:40:36 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e309919 net-analyzer/fail2ban-0.11.1-r2: Add py38 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrick McLean gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index b5f23353313..f71bda0473e 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: bb4646b05548dd4dae94129299454dce970eaf37 Author: Jeroen Roovers gentoo org> AuthorDate: Tue Apr 28 07:35:27 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Tue Apr 28 07:35:30 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb4646b0 net-analyzer/fail2ban: Old Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/Manifest | 2 - net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild | 110 -- net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 113 --- net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild | 116 4 files changed, 341 deletions(-) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 66b2d4bb5f0..fc0170a8a29 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,3 +1 @@ -DIST fail2ban-0.10.4.tar.gz 493104 BLAKE2B 3a58ab114cf25172c77b229ce53bf6dd009d4fb8c700142480ba0212072d8820126bfabf5dd417835bdac5f5b65d599c6dde859d8c57267e90cfb569dc4a2073 SHA512 ee53f2e8dc3cda4f588c60da5227d3d71550496ddfdf5bdbffced25bafd442b8e2352a9ad9f27bf76489903b5b779cdb9614963342de907c1036ae9268b8f35f -DIST fail2ban-0.10.5.tar.gz 520460 BLAKE2B 872b1b2d96d5c79b228cf7c38923161336e452c33fddce75d25004454a5b5d119d435aeb789d55576de4e24bbf8d8288d9fc2fb3f17323074a27857a08e3c6a4 SHA512 d2ad64999031537f2adfc01efd02d2db0718485e38745736339c2e3a1792cd82147fb6cf5a3d371d83dbe91d1afe34e741e038ed4d84d6f444ea1922dc4bb658 DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca332d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild deleted file mode 100644 index 1db3b7bffdd..000 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python3_6 ) -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 eutils systemd vcs-snapshot - -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" - -# TODO support ipfw and ipfilter -RDEPEND=" - kernel_linux? ( net-firewall/iptables ) - kernel_FreeBSD? ( sys-freebsd/freebsd-pf ) - net-misc/whois - virtual/logger - virtual/mta - selinux? ( sec-policy/selinux-fail2ban ) - systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] - )' 'python*' ) ) -" - -RESTRICT="test" -DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) - -python_prepare_all() { - eapply_user - - # 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} -} - -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." -
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 3f7f989bfaf2135842c192e056e0b87a0b2ed00c Author: Jeroen Roovers gentoo org> AuthorDate: Tue Apr 28 07:34:29 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Tue Apr 28 07:35:30 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7f989b net-analyzer/fail2ban: Stable for HPPA Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index f5c9e3ecae9..b5f23353313 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm hppa ppc ppc64 sparc x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 898abf14ebafbf68eff1f12144bb68ea7545b188 Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 11:40:48 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 11:40:48 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=898abf14 net-analyzer/fail2ban: x86 stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="x86" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index 72501437326..f5c9e3ecae9 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 sparc x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: ef651a128d351a2b50f1f3ee61e09f919615284c Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 11:39:41 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 11:39:41 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef651a12 net-analyzer/fail2ban: ppc64 stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="ppc64" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index 24a392927bc..f7f3ebc8cd3 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 ~sparc ~x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 12085eeddbe4d1521d2da41bca4442f8433fa5d7 Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 11:40:12 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 11:40:12 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12085eed net-analyzer/fail2ban: sparc stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="sparc" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index f7f3ebc8cd3..72501437326 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 sparc ~x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 4314a735c75786280d9dcf245186330c243af439 Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 11:39:04 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 11:39:04 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4314a735 net-analyzer/fail2ban: ppc stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="ppc" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index a47ecc1eba9..24a392927bc 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~hppa ppc ~ppc64 ~sparc ~x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 179818ff4ec8546ec1b96a0b073a25f140ab10dd Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 08:14:18 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 08:14:18 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=179818ff net-analyzer/fail2ban: arm stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="arm" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index 5eb40fc65d7..a47ecc1eba9 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 arm ~hppa ~ppc ~ppc64 ~sparc ~x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 6ee429021bfb420d3a3b3ff11ebd8989d78b73a7 Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Apr 27 08:13:41 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Apr 27 08:13:41 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee42902 net-analyzer/fail2ban: amd64 stable wrt bug #719458 Package-Manager: Portage-2.3.89, Repoman-2.3.20 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index a9be25c7563..5eb40fc65d7 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -13,7 +13,7 @@ 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" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" IUSE="selinux systemd" RDEPEND="
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 1652b77383199c849d3de54b1a00e451ba6bfc98 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Apr 8 16:03:01 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Wed Apr 8 16:07:36 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1652b773 net-analyzer/fail2ban: Add support for python 3.7 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Closes: https://bugs.gentoo.org/show_bug.cgi?id=714902 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index 12997e0f764..a9be25c7563 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 4bde96c6afe..2fe548988a0 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7} ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 git-r3 systemd
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: ae9ee1fe923bc3a32d7cb13aa1be1527d86d96d0 Author: Michał Górny gentoo org> AuthorDate: Sat Feb 8 06:45:45 2020 + Commit: Michał Górny gentoo org> CommitDate: Sun Feb 9 16:46:35 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae9ee1fe net-analyzer/fail2ban: Switch to PYTHON_MULTI_USEDEP API Signed-off-by: Michał Górny gentoo.org> .../fail2ban/{fail2ban-0.10.4.ebuild => fail2ban-0.10.4-r1.ebuild}| 4 ++-- net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 4 ++-- net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild | 4 ++-- .../fail2ban/{fail2ban-0.11.1-r1.ebuild => fail2ban-0.11.1-r2.ebuild} | 4 ++-- net-analyzer/fail2ban/fail2ban-.ebuild| 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild similarity index 96% rename from net-analyzer/fail2ban/fail2ban-0.10.4.ebuild rename to net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild index f20a2d4b3e7..1db3b7bffdd 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild @@ -25,8 +25,8 @@ RDEPEND=" virtual/mta selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] )' 'python*' ) ) " diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index 653f9960754..652d96b809d 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -21,8 +21,8 @@ RDEPEND=" virtual/mta selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] )' 'python*' ) ) " diff --git a/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild index e4b07d80df2..e00569c23f0 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild @@ -21,8 +21,8 @@ RDEPEND=" virtual/mta selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] )' 'python*' ) ) " diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild similarity index 96% rename from net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild rename to net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild index dc79df197e2..12997e0f764 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r2.ebuild @@ -21,8 +21,8 @@ RDEPEND=" virtual/mta selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] )' 'python*' ) ) " diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 4d89363141a..4bde96c6afe 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -21,8 +21,8 @@ RDEPEND=" virtual/mta selinux? ( sec-policy/selinux-fail2ban ) systemd? ( $(python_gen_cond_dep '|| ( - dev-python/python-systemd[${PYTHON_USEDEP}] - sys-apps/systemd[python(-),${PYTHON_USEDEP}] + dev-python/python-systemd[${PYTHON_MULTI_USEDEP}] + sys-apps/systemd[python(-),${PYTHON_MULTI_USEDEP}] )' 'python*' ) ) "
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: bc711058d12a49f027bc02c21f5e50bc8bd8cd0b Author: Michał Górny gentoo org> AuthorDate: Wed Feb 5 20:32:10 2020 + Commit: Michał Górny gentoo org> CommitDate: Wed Feb 5 20:47:08 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc711058 net-analyzer/fail2ban: Remove py2 Signed-off-by: Michał Górny gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-0.10.4.ebuild| 2 +- net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index 85730ff0b68..653f9960754 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild index 7acd5a03851..f20a2d4b3e7 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 eutils systemd vcs-snapshot diff --git a/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild index 56a0f3046d2..e4b07d80df2 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild index 8481a7ca53f..dc79df197e2 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 systemd diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 1618b1f20e2..4d89363141a 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 distutils-r1 git-r3 systemd
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 6d850269d2f8f32e37c778e45caaba8273d9eb7f Author: Jeroen Roovers gentoo org> AuthorDate: Sun Jan 12 09:01:05 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Sun Jan 12 09:01:40 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d850269 net-analyzer/fail2ban: Install bashcomp file Package-Manager: Portage-2.3.84, Repoman-2.3.20 Closes: https://bugs.gentoo.org/705176 Signed-off-by: Jeroen Roovers gentoo.org> .../fail2ban/{fail2ban-0.10.5.ebuild => fail2ban-0.10.5-r1.ebuild} | 5 - .../fail2ban/{fail2ban-0.11.1.ebuild => fail2ban-0.11.1-r1.ebuild} | 5 - net-analyzer/fail2ban/fail2ban-.ebuild | 5 - 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.5.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild similarity index 95% rename from net-analyzer/fail2ban/fail2ban-0.10.5.ebuild rename to net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild index 85730ff0b68..56a0f3046d2 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.5.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python{2_7,3_6} ) DISTUTILS_SINGLE_IMPL=1 -inherit distutils-r1 systemd +inherit bash-completion-r1 distutils-r1 systemd DESCRIPTION="scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; @@ -72,6 +72,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() { diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild similarity index 95% rename from net-analyzer/fail2ban/fail2ban-0.11.1.ebuild rename to net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild index 2b9834eff16..8481a7ca53f 100644 --- a/net-analyzer/fail2ban/fail2ban-0.11.1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python{2_7,3_6} ) DISTUTILS_SINGLE_IMPL=1 -inherit distutils-r1 systemd +inherit bash-completion-r1 distutils-r1 systemd DESCRIPTION="scans log files and bans IPs that show malicious signs" HOMEPAGE="https://www.fail2ban.org/"; @@ -67,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() { diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 59fb036b167..1618b1f20e2 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -5,7 +5,7 @@ EAPI=7 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/"; @@ -67,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() {
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: dd48948f37836ba2964c776d3bd0958f60ccdc5e Author: Jeroen Roovers gentoo org> AuthorDate: Sat Jan 11 23:08:58 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Sat Jan 11 23:11:47 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd48948f net-analyzer/fail2ban: Version 0.11.1 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/Manifest | 1 + net-analyzer/fail2ban/fail2ban-0.11.1.ebuild | 108 +++ 2 files changed, 109 insertions(+) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 96d52fcf26f..66b2d4bb5f0 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1,2 +1,3 @@ DIST fail2ban-0.10.4.tar.gz 493104 BLAKE2B 3a58ab114cf25172c77b229ce53bf6dd009d4fb8c700142480ba0212072d8820126bfabf5dd417835bdac5f5b65d599c6dde859d8c57267e90cfb569dc4a2073 SHA512 ee53f2e8dc3cda4f588c60da5227d3d71550496ddfdf5bdbffced25bafd442b8e2352a9ad9f27bf76489903b5b779cdb9614963342de907c1036ae9268b8f35f DIST fail2ban-0.10.5.tar.gz 520460 BLAKE2B 872b1b2d96d5c79b228cf7c38923161336e452c33fddce75d25004454a5b5d119d435aeb789d55576de4e24bbf8d8288d9fc2fb3f17323074a27857a08e3c6a4 SHA512 d2ad64999031537f2adfc01efd02d2db0718485e38745736339c2e3a1792cd82147fb6cf5a3d371d83dbe91d1afe34e741e038ed4d84d6f444ea1922dc4bb658 +DIST fail2ban-0.11.1.tar.gz 538660 BLAKE2B c88765ac3f49c19e0570248891814c647f2c3515290982de21c7b6c377508189fa53182fca84d62f61b231e250395992e8cf06cc61394dd41150f02d8a254f8b SHA512 019b088aa6375f98742ed101ef6f65adabca332d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6 diff --git a/net-analyzer/fail2ban/fail2ban-0.11.1.ebuild b/net-analyzer/fail2ban/fail2ban-0.11.1.ebuild new file mode 100644 index 000..2b9834eff16 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.11.1.ebuild @@ -0,0 +1,108 @@ +# 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 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} +} + +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 i
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 55db316d2faf53a0cd07b0bccf16a37e9d3367fd Author: Jeroen Roovers gentoo org> AuthorDate: Fri Jan 10 13:19:30 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Fri Jan 10 13:20:08 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55db316d net-analyzer/fail2ban: Update live ebuild Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/fail2ban-.ebuild | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index bb304da8236..59fb036b167 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -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}
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 240bcf47695d4bbf1698df8f6257b98bc9137191 Author: Jeroen Roovers gentoo org> AuthorDate: Fri Jan 10 13:15:42 2020 + Commit: Jeroen Roovers gentoo org> CommitDate: Fri Jan 10 13:20:07 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240bcf47 net-analyzer/fail2ban: Version 0.10.5 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/Manifest | 1 + net-analyzer/fail2ban/fail2ban-0.10.5.ebuild | 113 +++ 2 files changed, 114 insertions(+) diff --git a/net-analyzer/fail2ban/Manifest b/net-analyzer/fail2ban/Manifest index 8ae35bf6701..96d52fcf26f 100644 --- a/net-analyzer/fail2ban/Manifest +++ b/net-analyzer/fail2ban/Manifest @@ -1 +1,2 @@ DIST fail2ban-0.10.4.tar.gz 493104 BLAKE2B 3a58ab114cf25172c77b229ce53bf6dd009d4fb8c700142480ba0212072d8820126bfabf5dd417835bdac5f5b65d599c6dde859d8c57267e90cfb569dc4a2073 SHA512 ee53f2e8dc3cda4f588c60da5227d3d71550496ddfdf5bdbffced25bafd442b8e2352a9ad9f27bf76489903b5b779cdb9614963342de907c1036ae9268b8f35f +DIST fail2ban-0.10.5.tar.gz 520460 BLAKE2B 872b1b2d96d5c79b228cf7c38923161336e452c33fddce75d25004454a5b5d119d435aeb789d55576de4e24bbf8d8288d9fc2fb3f17323074a27857a08e3c6a4 SHA512 d2ad64999031537f2adfc01efd02d2db0718485e38745736339c2e3a1792cd82147fb6cf5a3d371d83dbe91d1afe34e741e038ed4d84d6f444ea1922dc4bb658 diff --git a/net-analyzer/fail2ban/fail2ban-0.10.5.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.5.ebuild new file mode 100644 index 000..85730ff0b68 --- /dev/null +++ b/net-analyzer/fail2ban/fail2ban-0.10.5.ebuild @@ -0,0 +1,113 @@ +# 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 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} +} + +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/py
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 867a39bbe540327982d93847c6962cee0551ced1 Author: David Seifert gentoo org> AuthorDate: Mon Dec 30 00:48:31 2019 + Commit: Michał Górny gentoo org> CommitDate: Mon Dec 30 12:58:46 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=867a39bb net-analyzer/fail2ban: Remove to-be-redundant REQUIRED_USE Package-Manager: Portage-2.3.83, Repoman-2.3.20 Signed-off-by: David Seifert gentoo.org> Signed-off-by: Michał Górny gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-0.10.4.ebuild| 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index ac3d0618622..d5d7baa066b 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -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 613c33272c0..3845f402b88 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild @@ -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-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index d4e1f1886dc..a562cf3e6d0 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -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 )
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 0654602fda66ee342c93697ea3b81b3ee09b51d6 Author: Jeroen Roovers gentoo org> AuthorDate: Mon Jun 10 05:31:44 2019 + Commit: Jeroen Roovers gentoo org> CommitDate: Mon Jun 10 05:32:02 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0654602f net-analyzer/fail2ban: Use HTTPS Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 2 +- net-analyzer/fail2ban/fail2ban-0.10.4.ebuild| 2 +- net-analyzer/fail2ban/fail2ban-.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index c44c1d21b5a..9f2e26d12f2 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -8,7 +8,7 @@ DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 systemd DESCRIPTION="scans log files and bans IPs that show malicious signs" -HOMEPAGE="http://www.fail2ban.org/"; +HOMEPAGE="https://www.fail2ban.org/"; SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz" LICENSE="GPL-2" diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild index 6f6e99cae9b..3b63990008e 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4.ebuild @@ -8,7 +8,7 @@ DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 eutils systemd vcs-snapshot DESCRIPTION="scans log files and bans IPs that show malicious signs" -HOMEPAGE="http://www.fail2ban.org/"; +HOMEPAGE="https://www.fail2ban.org/"; SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz" LICENSE="GPL-2" diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index a3968f20f62..d4e1f1886dc 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -8,7 +8,7 @@ DISTUTILS_SINGLE_IMPL=1 inherit distutils-r1 git-r3 systemd DESCRIPTION="scans log files and bans IPs that show malicious signs" -HOMEPAGE="http://www.fail2ban.org/"; +HOMEPAGE="https://www.fail2ban.org/"; EGIT_REPO_URI="https://github.com/${PN}/${PN}"; LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 4be9865061ccfd45ac0472e706622e3a31c0c8df Author: Jeroen Roovers gentoo org> AuthorDate: Sun Apr 21 12:53:57 2019 + Commit: Jeroen Roovers gentoo org> CommitDate: Sun Apr 21 12:54:15 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be98650 net-analyzer/fail2ban: Explain better how to disable sqlite at run time Bug: https://bugs.gentoo.org/683960 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 6 -- net-analyzer/fail2ban/fail2ban-.ebuild | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index f03ad9d3815..c44c1d21b5a 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -66,7 +66,7 @@ python_install_all() { systemd_dotmpfilesd files/${PN}-tmpfiles.conf doman man/*.{1,5} - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # 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} @@ -101,7 +101,9 @@ pkg_postinst() { 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" + 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 diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 9dcaaf4be16..a3968f20f62 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -54,7 +54,7 @@ python_install_all() { systemd_dotmpfilesd files/${PN}-tmpfiles.conf doman man/*.{1,5} - # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # 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} @@ -89,7 +89,9 @@ pkg_postinst() { 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" + 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
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/fail2ban/
commit: 19d568a99cb999a26abb068949fccc771a0fea15 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Mar 27 10:18:19 2019 + Commit: Jeroen Roovers gentoo org> CommitDate: Wed Mar 27 10:22:21 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d568a9 net-analyzer/fail2ban: Drop various optional runtime dependencies Support for net-firewall/iptables, net-misc/whois and sys-freebsd/freebsd-pf is entirely optional and depends on your local configuration. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Fixes: https://bugs.gentoo.org/627872 Signed-off-by: Jeroen Roovers gentoo.org> .../fail2ban/{fail2ban-0.10.4-r1.ebuild => fail2ban-0.10.4-r2.ebuild} | 4 net-analyzer/fail2ban/fail2ban-.ebuild| 4 2 files changed, 8 deletions(-) diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild similarity index 95% rename from net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild rename to net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild index 08162400a07..1f4495bb15b 100644 --- a/net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild @@ -16,11 +16,7 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="selinux systemd" -# TODO support ipfw and ipfilter RDEPEND=" - kernel_linux? ( net-firewall/iptables ) - kernel_FreeBSD? ( sys-freebsd/freebsd-pf ) - net-misc/whois virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) diff --git a/net-analyzer/fail2ban/fail2ban-.ebuild b/net-analyzer/fail2ban/fail2ban-.ebuild index 3eb5b64cab5..0adb597ee8c 100644 --- a/net-analyzer/fail2ban/fail2ban-.ebuild +++ b/net-analyzer/fail2ban/fail2ban-.ebuild @@ -16,11 +16,7 @@ SLOT="0" KEYWORDS="" IUSE="selinux systemd" -# TODO support ipfw and ipfilter RDEPEND=" - kernel_linux? ( net-firewall/iptables ) - kernel_FreeBSD? ( sys-freebsd/freebsd-pf ) - net-misc/whois virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban )