# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=fail2ban pkgver=0.8.7.1 pkgrel=0 pkgdesc="Scans log files for login failures then updates iptables to reject originating ip address" url="http://www.fail2ban.org" arch="noarch" license="GPLv2" depends="python iptables logrotate" makedepends="python-dev" source="https://github.com/downloads/fail2ban/fail2ban/fail2ban_${pkgver}.orig.tar.gz fail2ban.confd fail2ban.logrotate" build() { return 0 } package() { cd "$srcdir"/$pkgname-$pkgver python setup.py install --root "$pkgdir" || return 1 install -Dm755 files/gentoo-initd "$pkgdir"/etc/init.d/fail2ban \ || return 1 install -Dm644 "$srcdir"/fail2ban.confd "$pkgdir"/etc/conf.d/fail2ban \ || return 1 install -Dm644 "$srcdir"/fail2ban.logrotate \ "$pkgdir"/etc/logrotate.d/fail2ban || return 1 } md5sums="39ae20deafbd0441ad385204d532e423 fail2ban_0.8.7.1.orig.tar.gz b209a04f9314dd064a4aa0ee505c8a4d fail2ban.confd 6d1af6ceebd15c8ae3938bc675efe553 fail2ban.logrotate"