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
|
|
|
|
# Depends on: python python3
|
|
|
|
|
|
|
|
name=fail2ban
|
2020-05-21 14:11:17 +00:00
|
|
|
version=0.11.1
|
|
|
|
release=1
|
2020-05-21 13:56:20 +00:00
|
|
|
source=(https://github.com/fail2ban/$name/archive/$version/$name-$version.tar.gz
|
|
|
|
fail2ban.rc)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
./fail2ban-2to3
|
|
|
|
python3 setup.py install --root=$PKG --prefix=/usr
|
|
|
|
python3 -mcompileall $PKG
|
|
|
|
|
|
|
|
install -m 0750 -D $SRC/fail2ban.rc $PKG/etc/rc.d/fail2ban
|
|
|
|
find $PKG \(\
|
|
|
|
-iname "*README*" \
|
|
|
|
\) -exec rm '{}' \+
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
}
|