27 lines
811 B
Plaintext
27 lines
811 B
Plaintext
# Description: Bans IP that makes too many password failures.
|
|
# URL: http://www.fail2ban.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-setuptools
|
|
|
|
name=fail2ban
|
|
version=1.0.2
|
|
release=1
|
|
source=(https://github.com/fail2ban/$name/archive/$version/$name-$version.tar.gz
|
|
fail2ban.rc paths-crux.conf)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./fail2ban-2to3
|
|
/usr/bin/python3 setup.py build
|
|
/usr/bin/python3 setup.py install --root=$PKG --prefix=/usr --skip-build
|
|
/usr/bin/python3 -mcompileall $PKG
|
|
|
|
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
|
|
rm -r $PKG/usr/share/doc
|
|
}
|