aboutsummaryrefslogtreecommitdiffstats
path: root/main/fail2ban/APKBUILD
blob: cacdadee77575a8a3dfaf94ed5eec95aa0040fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fail2ban
pkgver=0.8.8
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="48a7cfa29c30227f0e1361bd3c88ec8e  fail2ban_0.8.8.orig.tar.gz
b209a04f9314dd064a4aa0ee505c8a4d  fail2ban.confd
6d1af6ceebd15c8ae3938bc675efe553  fail2ban.logrotate"