Diff fail2ban-1.1.0-r6 with a fail2ban-9999
| /usr/portage/net-analyzer/fail2ban/fail2ban-9999.ebuild 2026-06-11 19:17:05.687800660 +0300 | ||
|---|---|---|
| 5 | 5 | |
| 6 | 6 |
PYTHON_COMPAT=( python3_{12..14} )
|
| 7 | 7 | |
| 8 |
inherit bash-completion-r1 edo python-single-r1 systemd tmpfiles |
|
| 8 |
inherit bash-completion-r1 edo python-single-r1 systemd |
|
| 9 | 9 | |
| 10 | 10 |
DESCRIPTION="Scans log files and bans IPs that show malicious signs" |
| 11 | 11 |
HOMEPAGE="https://www.fail2ban.org/" |
| ... | ... | |
| 15 | 15 |
inherit git-r3 |
| 16 | 16 |
else |
| 17 | 17 |
SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
| 18 |
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86" |
|
| 18 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
| 19 | 19 |
fi |
| 20 | 20 | |
| 21 | 21 |
LICENSE="GPL-2" |
| ... | ... | |
| 55 | 55 |
PATCHES=( |
| 56 | 56 |
"${FILESDIR}"/${PN}-0.11.2-adjust-apache-logs-paths.patch
|
| 57 | 57 |
"${FILESDIR}"/${PN}-1.0.2-umask-tests.patch
|
| 58 |
"${FILESDIR}"/${PN}-1.1.0-openssh-9.8.patch
|
|
| 59 |
"${FILESDIR}"/${PN}-1.1.0-openssh-9.8-fixups.patch
|
|
| 60 |
"${FILESDIR}"/${PN}-1.1.0-openrc-nftables.patch
|
|
| 61 | 58 |
"${FILESDIR}"/${PN}-1.1.0-systemd-order.patch
|
| 62 |
"${FILESDIR}"/${PN}-1.1.0-postfix-pref.patch
|
|
| 63 |
"${FILESDIR}"/${PN}-1.1.0-postfix-ddos.patch
|
|
| 64 |
"${FILESDIR}"/${PN}-1.1.0-sshd-ddos.patch
|
|
| 65 | 59 |
) |
| 66 | 60 | |
| 67 | 61 |
src_prepare() {
|
| ... | ... | |
| 103 | 97 |
newinitd "${S}"/build/fail2ban-openrc.init ${PN}
|
| 104 | 98 |
systemd_dounit "${S}"/build/${PN}.service
|
| 105 | 99 | |
| 106 |
dotmpfiles files/${PN}-tmpfiles.conf
|
|
| 107 | ||
| 108 | 100 |
doman man/*.{1,5}
|
| 109 | 101 | |
| 110 | 102 |
# Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. |
| ... | ... | |
| 124 | 116 |
} |
| 125 | 117 | |
| 126 | 118 |
pkg_postinst() {
|
| 127 |
tmpfiles_process ${PN}-tmpfiles.conf
|
|
| 128 | ||
| 129 | 119 |
if [[ ${previous_less_than_0_7} == 0 ]] ; then
|
| 130 | 120 |
elog |
| 131 | 121 |
elog "Configuration files are now in /etc/fail2ban/" |