summaryrefslogtreecommitdiff
path: root/community/sshguard
diff options
context:
space:
mode:
Diffstat (limited to 'community/sshguard')
-rw-r--r--community/sshguard/PKGBUILD15
-rw-r--r--community/sshguard/sshguard-journalctl4
-rw-r--r--community/sshguard/sshguard.service2
3 files changed, 13 insertions, 8 deletions
diff --git a/community/sshguard/PKGBUILD b/community/sshguard/PKGBUILD
index 276987c87..0e81c4e9a 100644
--- a/community/sshguard/PKGBUILD
+++ b/community/sshguard/PKGBUILD
@@ -1,13 +1,12 @@
-# $Id: PKGBUILD 92088 2013-05-31 11:33:59Z mtorromeo $
+# $Id: PKGBUILD 96970 2013-09-09 14:29:18Z mtorromeo $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=sshguard
pkgver=1.5
-pkgrel=13
+pkgrel=15
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')
@@ -17,12 +16,16 @@ source=("http://downloads.sourceforge.net/sourceforge/sshguard/sshguard-$pkgver.
sshguard.service
sshguard-journalctl)
sha256sums=('b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19'
- 'e9713a067b33b8ea91d203853a033c0b9f6d40ebebd77f2e72903ed4fd355ebd'
- '7423224107b28cabb69489056968581f1c9e94f3edc6a1d189e56a9df0bab4f7')
+ '3185cd3ceeee0bbb1f1df54baf025857200f39bd1eb747a59d6f46c562be4a51'
+ 'f7b307fe9dbbe8c18fe91ca751679d62b2a3ade03cfe164e76ca411cfafffca6')
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|^DAYNO.*|DAYNO [0-9]?[1-9]|' src/parser/attack_scanner.l
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --sbindir=/usr/bin --with-firewall=iptables
make
}
diff --git a/community/sshguard/sshguard-journalctl b/community/sshguard/sshguard-journalctl
index fb106f5b6..e9bb14c5f 100644
--- a/community/sshguard/sshguard-journalctl
+++ b/community/sshguard/sshguard-journalctl
@@ -1,2 +1,4 @@
#!/bin/sh
-/usr/bin/journalctl -afbp info -n1 SYSLOG_FACILITY=4 SYSLOG_FACILITY=10 | /usr/bin/sshguard -l- "$@"
+DBFILE=$1
+shift
+/usr/bin/journalctl -afb -p info -n1 "$@" | /usr/bin/sshguard -l- -b $DBFILE
diff --git a/community/sshguard/sshguard.service b/community/sshguard/sshguard.service
index d6324d459..11115727b 100644
--- a/community/sshguard/sshguard.service
+++ b/community/sshguard/sshguard.service
@@ -4,7 +4,7 @@ After=iptables.service ip6tables.service network.target
Wants=iptables.service ip6tables.service
[Service]
-ExecStart=/usr/lib/systemd/scripts/sshguard-journalctl -b /var/db/sshguard/blacklist.db
+ExecStart=/usr/lib/systemd/scripts/sshguard-journalctl /var/db/sshguard/blacklist.db SYSLOG_FACILITY=4 SYSLOG_FACILITY=10
[Install]
WantedBy=multi-user.target