blob: 405321d03314bfec429b58b16d93664d5075cb2e (
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
|
# $Id: PKGBUILD 55676 2011-09-17 17:07:50Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=sshguard
pkgver=1.5
pkgrel=3
pkgdesc="brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables"
arch=('i686' 'x86_64' 'mips64el')
#url="http://sourceforge.net/projects/sshguard/"
url="http://www.sshguard.net/"
license=('GPL')
depends=('iptables')
options=(zipman)
install=sshguard.install
source=("http://downloads.sourceforge.net/sourceforge/sshguard/sshguard-$pkgver.tar.bz2"
sshguard.rc
sshguard.conf.d)
md5sums=('11b9f47f9051e25bdfe84a365c961ec1'
'07bffbbfbf452d09cda10a1bab8cc03b'
'1dc6604975d3cd51321a8ad7cd53947c')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --with-firewall=iptables
make
}
check() {
cd $srcdir/$pkgname-$pkgver
strings src/sshguard | grep -E "^`which iptables`[[:space:]]" >/dev/null
}
package() {
cd $srcdir/$pkgname-$pkgver
make prefix=$pkgdir/usr install
install -Dm0755 $srcdir/sshguard.rc $pkgdir/etc/rc.d/sshguard
install -Dm0644 $srcdir/sshguard.conf.d $pkgdir/etc/conf.d/sshguard
}
|