summaryrefslogtreecommitdiff
path: root/fail2ban/Pkgfile
blob: 6ca95fac32183f94518aaaa8cc938ef67a658557 (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: python3-setuptools
    5 
    6 name=fail2ban
    7 version=0.11.2
    8 release=3
    9 source=(https://github.com/fail2ban/$name/archive/$version/$name-$version.tar.gz
   10   fail2ban.rc paths-crux.conf
   11   fail2ban-0.11.2_CVE-2021-32749.patch
   12   gh-3020.patch
   13   2to3.patch)
   14 
   15 build() {
   16   cd $name-$version
   17 
   18   patch -Np1 -i $SRC/fail2ban-0.11.2_CVE-2021-32749.patch
   19   patch -Np1 -i $SRC/2to3.patch
   20   patch -Np1 -i $SRC/gh-3020.patch
   21 
   22   ./fail2ban-2to3
   23   /usr/bin/python3 setup.py build
   24   /usr/bin/python3 setup.py install --root=$PKG --prefix=/usr --skip-build
   25   /usr/bin/python3 -mcompileall $PKG
   26 
   27   install -Dm750 $SRC/fail2ban.rc $PKG/etc/rc.d/fail2ban
   28   install -Dm664 $SRC/paths-crux.conf $PKG/etc/fail2ban/paths-crux.conf
   29 
   30   find $PKG -iname "*README*" -exec rm '{}' \+
   31   rm -r $PKG/etc/fail2ban/paths-{arch,debian,fedora,freebsd,opensuse,osx}.conf
   32   rm -r $PKG/usr/share/doc
   33 }

Generated by cgit