diff options
Diffstat (limited to 'main/fail2ban/APKBUILD')
-rw-r--r-- | main/fail2ban/APKBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/main/fail2ban/APKBUILD b/main/fail2ban/APKBUILD index 43a4e16e03..3fb16c2fef 100644 --- a/main/fail2ban/APKBUILD +++ b/main/fail2ban/APKBUILD @@ -7,20 +7,21 @@ 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" +license="GPL2+" depends="python iptables logrotate" -makedepends="python-dev" +makedepends="python-dev python-dev py-setuptools" source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/fail2ban/fail2ban/tar.gz/$pkgver - fail2ban.confd - fail2ban.logrotate" + fail2ban.confd + fail2ban.logrotate" +_builddir="$srcdir"/$pkgname-$pkgver build() { - return 0 + cd "$_builddir" + python setup.py build || return 1 } package() { - cd "$srcdir"/fail2ban-$pkgver - + cd "$_builddir" python setup.py install --root "$pkgdir" || return 1 install -Dm755 files/gentoo-initd "$pkgdir"/etc/init.d/fail2ban \ || return 1 |