summaryrefslogtreecommitdiff
path: root/community/sshguard
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-18 23:14:34 +0000
committerroot <root@rshg054.dnsready.net>2011-09-18 23:14:34 +0000
commitf57b139ded4e8c4b10555985513b3f9a70a70e12 (patch)
tree5c1e21523a0039ae25bd6237e79cc8158e068bd5 /community/sshguard
parentc7fd3b08e227a739803d62e0bb3033ebe65da775 (diff)
Sun Sep 18 23:14:34 UTC 2011
Diffstat (limited to 'community/sshguard')
-rw-r--r--community/sshguard/PKGBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/community/sshguard/PKGBUILD b/community/sshguard/PKGBUILD
index d49e1f99a..0de299933 100644
--- a/community/sshguard/PKGBUILD
+++ b/community/sshguard/PKGBUILD
@@ -1,16 +1,16 @@
-# $Id: PKGBUILD 55622 2011-09-16 11:14:14Z spupykin $
+# $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=2
+pkgrel=3
pkgdesc="brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables"
arch=('i686' 'x86_64')
#url="http://sourceforge.net/projects/sshguard/"
url="http://www.sshguard.net/"
license=('GPL')
-depends=('glibc')
+depends=('iptables')
options=(zipman)
install=sshguard.install
source=("http://downloads.sourceforge.net/sourceforge/sshguard/sshguard-$pkgver.tar.bz2"
@@ -24,6 +24,15 @@ 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