diff options
Diffstat (limited to 'testing/fail2ban/APKBUILD')
-rw-r--r-- | testing/fail2ban/APKBUILD | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/testing/fail2ban/APKBUILD b/testing/fail2ban/APKBUILD index 7a20ad4c2..8a770f60e 100644 --- a/testing/fail2ban/APKBUILD +++ b/testing/fail2ban/APKBUILD @@ -2,15 +2,19 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=fail2ban pkgver=0.8.4 -pkgrel=0 +pkgrel=1 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" +depends="python iptables logrotate" makedepends="python-dev" install="" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 + gentoo-initd_create_run_dir.patch + fail2ban.confd + fail2ban.logrotate + " _builddir="$srcdir/$pkgname-$pkgver" prepare() { @@ -30,6 +34,15 @@ build() { package() { cd "$_builddir" 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="df94335a5d12b4750869e5fe350073fa fail2ban-0.8.4.tar.bz2" +md5sums="df94335a5d12b4750869e5fe350073fa fail2ban-0.8.4.tar.bz2 +61580eb6d8d9a4d187e97bc27f2fcb1e gentoo-initd_create_run_dir.patch +b209a04f9314dd064a4aa0ee505c8a4d fail2ban.confd +6d1af6ceebd15c8ae3938bc675efe553 fail2ban.logrotate" |