aboutsummaryrefslogtreecommitdiffstats
path: root/main/fail2ban/APKBUILD
blob: 92ad41aeeea4ea17bcdc128843b3bf9ef2b7e812 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: prymeroot <pryme@gmx.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fail2ban
pkgver=0.10.0a1
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="python2-dev py-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz
		fail2ban.confd
		fail2ban.logrotate
		alpine-ssh.jaild
		alpine-sshd.filterd
		alpine-sshd-ddos.filterd
		"

_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
	install -Dm644 "$srcdir"/alpine-ssh.jaild \
		"$pkgdir"/etc/fail2ban/jail.d/alpine-ssh.conf
	install -Dm644 "$srcdir"/alpine-sshd.filterd \
		"$pkgdir"/etc/fail2ban/filter.d/alpine-sshd.conf
	install -Dm644 "$srcdir"/alpine-sshd-ddos.filterd \
		"$pkgdir"/etc/fail2ban/filter.d/alpine-sshd-ddos.conf
}

md5sums="c0c40a1b664f1b37c074b57ce83606dc  fail2ban-0.10.0a1.tar.gz
b209a04f9314dd064a4aa0ee505c8a4d  fail2ban.confd
6d1af6ceebd15c8ae3938bc675efe553  fail2ban.logrotate
d79129324ec8710989be0d631362b1ab  alpine-ssh.jaild
16637b4f207bc9bd68812d02cc06cfad  alpine-sshd.filterd
d2634b4646276e5f9e4e3855e16725de  alpine-sshd-ddos.filterd"
sha256sums="3fc105d9da1eabcc258e6961255173f92cc2d8a5cae83567367e17e2deae0bde  fail2ban-0.10.0a1.tar.gz
e35f1f820bfe5ecaac2696d60155c348d84af428e8c615e97b900c24a587d233  fail2ban.confd
4cfe274ec9c71dd0ae0575298f5327230f6e67b2f8fc1a616c645d0f6b3ce02f  fail2ban.logrotate
e0d03b972bb90053be53c7dc8d2711a57a569dbb956b40cb0026676cdc5b47db  alpine-ssh.jaild
948e9b598a9242eb8bfef911c38d8af25c66554fd9c770e3017d636e59b98e16  alpine-sshd.filterd
1015ff0831970e2f42863b5d5c33635de69ccdae184df72f6be1792cd67f6df8  alpine-sshd-ddos.filterd"
sha512sums="0f960ef3ff677f13f3409269e52ac686f99148c7563df23c338b3d6f4b20acac23caf15d7bdce704b306740b825525e5b9e046d38e9e96199c7bc1bf62e57c5a  fail2ban-0.10.0a1.tar.gz
1e7581dd04e7777d6fd5c40cc842a7ec5f4e6a0374673d020d89dd61bf4093d48934844bee89bcac9084f9ae44f3beb66e714cf3c2763d79c3e8feb790c5e43b  fail2ban.confd
60c80dcf8ced5a0323daef2df702f862d99ac45f56b91015ce39be8471cf9d6a3bb45d776df0330692f40db37638dc3ef2004cfc65f26d50dd67c94fbfdf4ec2  fail2ban.logrotate
84915967ae1276f1e14a5813680ee2ebf081af1ff452a688ae5f9ac3363f4aff90e39f8e6456b5c33d5699917d28a16308797095fd1ef9bb1fbcb46d4cea3def  alpine-ssh.jaild
672762f513e14a29c0183fbab0f7acfa45e8e3e6d25f98d443bf82cad03d15af21b14789a223aeb5642806fa7c2092caede99593059b68230165c311b1eb7fea  alpine-sshd.filterd
36a81b771be0b36fe0dfb5ee4c72c9cb5b504e110618a8eb6f0f241b4e57d92df01dc5cc04b6b68d5bc6a5e6d68de1000092770285d7a328e5937e50b4b226a3  alpine-sshd-ddos.filterd"