blob: 7b594e3eb3e42c966ca6628962df7693e7422ff3 (
plain)
1 # Description: Bans IP that makes too many password failures.
2 # URL: http://www.fail2ban.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python python3
5
6 name=fail2ban
7 version=0.10.5
8 release=2
9 source=(https://github.com/fail2ban/$name/archive/$version/$name-$version.tar.gz
10 fail2ban.rc)
11
12 build() {
13 cd $name-$version
14 ./fail2ban-2to3
15 python3 setup.py install --root=$PKG --prefix=/usr
16 python3 -mcompileall $PKG
17
18 install -m 0750 -D $SRC/fail2ban.rc $PKG/etc/rc.d/fail2ban
19 find $PKG \(\
20 -iname "*README*" \
21 \) -exec rm '{}' \+
22 rm -r $PKG/usr/share/doc
23 }
|