diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-02-07 20:14:22 +0000 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-02-07 20:18:28 +0000 |
commit | 0839df092aa36886e707bddfa99bbf009adbc30f (patch) | |
tree | 103de5224c043d7bada08d95a74d0c0ab7cbc31a /testing/fail2ban | |
parent | d8095541529c540f863812835d7717cb5b25c162 (diff) | |
download | aports-0839df092aa36886e707bddfa99bbf009adbc30f.tar.bz2 aports-0839df092aa36886e707bddfa99bbf009adbc30f.tar.xz |
testing/fail2ban: new aport
ref #525
Diffstat (limited to 'testing/fail2ban')
-rw-r--r-- | testing/fail2ban/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/fail2ban/APKBUILD b/testing/fail2ban/APKBUILD new file mode 100644 index 0000000000..5e6a0fe591 --- /dev/null +++ b/testing/fail2ban/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Jeff Bilyk <jbilyk@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=fail2ban +pkgver=0.8.4 +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" +makedepends="python" +install="" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + python setup.py install --root "$pkgdir" || return 1 +} + +md5sums="df94335a5d12b4750869e5fe350073fa fail2ban-0.8.4.tar.bz2" |