summaryrefslogtreecommitdiff
path: root/fail2ban/Pkgfile
blob: 36451a0f5de66b4230ad111271e3e70169e98e3a (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.11.2
    8 release=1
    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   /usr/bin/python3 setup.py build
   16   /usr/bin/python3 setup.py install --root=$PKG --prefix=/usr --skip-build
   17   /usr/bin/python3 -mcompileall $PKG
   18 
   19   install -m 0750 -D $SRC/fail2ban.rc $PKG/etc/rc.d/fail2ban
   20   find $PKG \(\
   21     -iname "*README*" \
   22     \) -exec rm '{}' \+
   23   rm -r $PKG/usr/share/doc
   24 }

Generated by cgit