aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2024-11-26 15:27:51 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-30 15:53:26 +0700
commit69a64512b9bbf4015ce42d9703d2c88aaeb50a43 (patch)
tree6aa45bbc91f441d6f5f6351fe3c412883e7ba669
parent40a9897ce593a95185320f8be5c287a056232b82 (diff)
network/fail2ban: Updated for version 1.1.0.
Fix handling of the sshd daemon name with the newer openssh Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/fail2ban/fail2ban.SlackBuild8
-rw-r--r--network/fail2ban/fail2ban.info6
2 files changed, 8 insertions, 6 deletions
diff --git a/network/fail2ban/fail2ban.SlackBuild b/network/fail2ban/fail2ban.SlackBuild
index db6e648408..1262249d06 100644
--- a/network/fail2ban/fail2ban.SlackBuild
+++ b/network/fail2ban/fail2ban.SlackBuild
@@ -29,8 +29,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="fail2ban"
-VERSION=${VERSION:-1.0.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -68,10 +68,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# fix for the newer openssh
+sed -i 's|_daemon = sshd|_daemon = sshd(?:-session)?|' config/filter.d/sshd.conf
+
sed -i 's|self.install_dir|"/usr/bin"|' setup.py
sed -i 's/^before = paths-debian.conf/before = paths-slackware.conf/' config/jail.conf
-./fail2ban-2to3
python3 setup.py install --root=$PKG
# installing man pages
diff --git a/network/fail2ban/fail2ban.info b/network/fail2ban/fail2ban.info
index 5afbf1a1fa..fdb92e98ff 100644
--- a/network/fail2ban/fail2ban.info
+++ b/network/fail2ban/fail2ban.info
@@ -1,8 +1,8 @@
PRGNAM="fail2ban"
-VERSION="1.0.2"
+VERSION="1.1.0"
HOMEPAGE="https://github.com/fail2ban/fail2ban/"
-DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/1.0.2/fail2ban-1.0.2.tar.gz"
-MD5SUM="96582af04e60bf56617da9f9cbda0aa7"
+DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/1.1.0/fail2ban-1.1.0.tar.gz"
+MD5SUM="c1fbcad52a1992085eeeb326db1e849e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""