2020-05-21 13:56:20 +00:00
|
|
|
# Description: Bans IP that makes too many password failures.
|
|
|
|
# URL: http://www.fail2ban.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-06-25 16:38:58 +02:00
|
|
|
# Depends on: python3-setuptools
|
2020-05-21 13:56:20 +00:00
|
|
|
|
|
|
|
name=fail2ban
|
2022-11-12 17:41:44 +00:00
|
|
|
version=1.0.2
|
2022-10-01 14:17:27 +02:00
|
|
|
release=1
|
2020-05-21 13:56:20 +00:00
|
|
|
source=(https://github.com/fail2ban/$name/archive/$version/$name-$version.tar.gz
|
2022-10-01 14:17:27 +02:00
|
|
|
fail2ban.rc paths-crux.conf)
|
2020-05-21 13:56:20 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2022-01-03 14:40:16 +01:00
|
|
|
|
2020-05-21 13:56:20 +00:00
|
|
|
./fail2ban-2to3
|
2020-11-03 17:55:17 +00:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --root=$PKG --prefix=/usr --skip-build
|
|
|
|
/usr/bin/python3 -mcompileall $PKG
|
2020-05-21 13:56:20 +00:00
|
|
|
|
2022-01-03 14:40:16 +01:00
|
|
|
install -Dm750 $SRC/fail2ban.rc $PKG/etc/rc.d/fail2ban
|
|
|
|
install -Dm664 $SRC/paths-crux.conf $PKG/etc/fail2ban/paths-crux.conf
|
|
|
|
|
|
|
|
find $PKG -iname "*README*" -exec rm '{}' \+
|
|
|
|
rm -r $PKG/etc/fail2ban/paths-{arch,debian,fedora,freebsd,opensuse,osx}.conf
|
2020-05-21 13:56:20 +00:00
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
}
|