aboutsummaryrefslogtreecommitdiffstats
path: root/main/fail2ban/APKBUILD
blob: bfe2bbe7953c3a1f43edf7a17c6c2cf1852ee2f3 (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
35
36
37
38
39
40
41
42
43
# Contributor: prymeroot <pryme@gmx.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fail2ban
pkgver=0.9.0
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="GPL2+"
depends="python iptables logrotate"
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"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

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="c8e0df39cbc32ee8646b82be9b7b5e53  fail2ban-0.9.0.tar.gz
b209a04f9314dd064a4aa0ee505c8a4d  fail2ban.confd
6d1af6ceebd15c8ae3938bc675efe553  fail2ban.logrotate"
sha256sums="95a1d24da0a2f3c758090a1307e94fbaafd1ee5e09ba70b5307d943fe0a64323  fail2ban-0.9.0.tar.gz
e35f1f820bfe5ecaac2696d60155c348d84af428e8c615e97b900c24a587d233  fail2ban.confd
4cfe274ec9c71dd0ae0575298f5327230f6e67b2f8fc1a616c645d0f6b3ce02f  fail2ban.logrotate"
sha512sums="c59e2daa12549dc9d9a730891896428b9122a8f8a9d2299aa3ebfe60d9f52bf49633688654753d36d74756ab9b5b32cced436c231ef5448f45d227ae22df749a  fail2ban-0.9.0.tar.gz
1e7581dd04e7777d6fd5c40cc842a7ec5f4e6a0374673d020d89dd61bf4093d48934844bee89bcac9084f9ae44f3beb66e714cf3c2763d79c3e8feb790c5e43b  fail2ban.confd
60c80dcf8ced5a0323daef2df702f862d99ac45f56b91015ce39be8471cf9d6a3bb45d776df0330692f40db37638dc3ef2004cfc65f26d50dd67c94fbfdf4ec2  fail2ban.logrotate"