[packages/fail2ban] Rel 2; activate some default banaction, so this package will be usable without having to modify prov
arekm
arekm at pld-linux.org
Wed Feb 26 15:59:14 CET 2025
commit b1c68994e077e122c275dafc005094136328651e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Feb 26 15:20:35 2025 +0100
Rel 2; activate some default banaction, so this package will be usable without having to modify provided configs
fail2ban-config_banaction.patch | 12 ++++++++++++
fail2ban.spec | 8 +++++---
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/fail2ban.spec b/fail2ban.spec
index cad2547..2f7cd8b 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -2,7 +2,7 @@ Summary: Ban IPs that make too many password failures
Summary(pl.UTF-8): Blokowanie IP powodujących zbyt dużo prób logowań z błędnym hasłem
Name: fail2ban
Version: 1.1.0
-Release: 1
+Release: 2
License: GPL
Group: Daemons
Source0: https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
@@ -13,6 +13,7 @@ Source3: paths-pld.conf
Source4: %{name}.sysconfig
Patch0: logifiles.patch
Patch1: %{name}-config_from_git.patch
+Patch2: %{name}-config_banaction.patch
URL: http://fail2ban.sourceforge.net/
BuildRequires: python3-devel
BuildRequires: python3-modules
@@ -42,8 +43,9 @@ z sshd czy plikami logów serwera WWW Apache.
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
rm setup.cfg
sed -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\1,' \
diff --git a/fail2ban-config_banaction.patch b/fail2ban-config_banaction.patch
new file mode 100644
index 0000000..221fd2e
--- /dev/null
+++ b/fail2ban-config_banaction.patch
@@ -0,0 +1,12 @@
+diff -ur fail2ban-1.1.0.org/config/jail.conf fail2ban-1.1.0/config/jail.conf
+--- fail2ban-1.1.0.org/config/jail.conf 2025-02-26 15:18:36.792067480 +0100
++++ fail2ban-1.1.0/config/jail.conf 2025-02-26 15:19:02.208002200 +0100
+@@ -205,7 +205,7 @@
+ # iptables-multiport, shorewall, etc) It is used to define
+ # action_* variables. Can be overridden globally or per
+ # section within jail.local file
+-#banaction = iptables-multiport
++banaction = iptables-multiport
+ #banaction_allports = iptables-allports
+
+ # The simplest action to take: ban only
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fail2ban.git/commitdiff/b1c68994e077e122c275dafc005094136328651e
More information about the pld-cvs-commit
mailing list