blob: e692b705c7bf0753c377d3693da904078b6422c8 (
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
44
45
46
47
48
49
50
51
|
# Contributor: prymeroot <pryme@gmx.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fail2ban
pkgver=0.10.0a1
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="GPL2+"
depends="python2 iptables ip6tables 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"
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python2 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
}
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"
|