Date: Friday, July 10, 2015 @ 15:16:47 Author: fyan Revision: 136620 upgpkg: fail2ban 0.9.2-1
- upstream new release - enable tests Modified: fail2ban/trunk/PKGBUILD ----------+ PKGBUILD | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-07-10 13:02:33 UTC (rev 136619) +++ PKGBUILD 2015-07-10 13:16:47 UTC (rev 136620) @@ -1,11 +1,12 @@ # $Id$ -# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> # Contributor: Geoffroy Carrier <geoffroy.carr...@koon.fr> # Contributor: michalzxc # Contributor: nbags <neilb...@gmail.com> pkgname=fail2ban -pkgver=0.9.1 +pkgver=0.9.2 pkgrel=1 pkgdesc='Bans IPs after too many failed authentication attempts' url='http://www.fail2ban.org/' @@ -12,11 +13,19 @@ license=('GPL') arch=('any') depends=('python' 'iptables' 'python-pyinotify' 'whois' 'sqlite') +makedepends=('python-setuptools') +checkdepends=('python-setuptools' 'python-coverage') backup=(etc/fail2ban/fail2ban.conf) install=fail2ban.install source=($pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz) -md5sums=('3554cc3de3f06ddfd7f90f8305b765b8') +md5sums=('bcdc9ef9f02c6fe8e43bb391835c65d6') +check() { + cd $pkgname-$pkgver + ./fail2ban-2to3 + coverage run bin/fail2ban-testcases || warning "Tests failed" +} + package() { cd $pkgname-$pkgver python setup.py install --prefix /usr --root "$pkgdir" --optimize=1 @@ -25,7 +34,7 @@ "$pkgdir"/usr/lib/systemd/system/$pkgname.service install -Dm644 files/fail2ban-tmpfiles.conf \ "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf - install -Dm644 files/fail2ban-logrotate \ + install -Dm644 files/fail2ban-logrotate \ "$pkgdir"/etc/logrotate.d/fail2ban install -Dm644 files/bash-completion \ "$pkgdir"/usr/share/bash-completion/completions/fail2ban