diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-28 09:04:07 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-29 14:07:40 +0000 |
commit | 20df3ee1e945bfc732e093d09bf232a82d5d397c (patch) | |
tree | 9d3c37a6dfa50748a6578f0c8ffd79a84d4be214 /main/fail2ban/APKBUILD | |
parent | 92fc27fa11d4e2ca732fd17b886b9565ce801492 (diff) | |
download | aports-20df3ee1e945bfc732e093d09bf232a82d5d397c.tar.bz2 aports-20df3ee1e945bfc732e093d09bf232a82d5d397c.tar.xz |
main/fail2ban: specifiy license and minor layout changes
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 |