summaryrefslogtreecommitdiff
path: root/community/sshguard
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
committerroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
commitb2a6f1b28b7fa31088cab9a90b0f5ab97948534d (patch)
treeafa7b467e44b704b69c66862852a8c3118b8e308 /community/sshguard
parent7c151ac5589d3dbef5972f69a62b847ecf565bfa (diff)
Thu Oct 31 01:09:50 PDT 2013
Diffstat (limited to 'community/sshguard')
-rw-r--r--community/sshguard/PKGBUILD11
-rw-r--r--community/sshguard/sshguard-journalctl4
-rw-r--r--community/sshguard/sshguard.service2
3 files changed, 9 insertions, 8 deletions
diff --git a/community/sshguard/PKGBUILD b/community/sshguard/PKGBUILD
index 2fe9dfbb9..4a616e681 100644
--- a/community/sshguard/PKGBUILD
+++ b/community/sshguard/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 96970 2013-09-09 14:29:18Z mtorromeo $
+# $Id: PKGBUILD 99653 2013-10-30 18:22:33Z mtorromeo $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=sshguard
pkgver=1.5
-pkgrel=15
+pkgrel=16
pkgdesc="Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables"
arch=('i686' 'x86_64')
url="http://www.sshguard.net/"
@@ -15,9 +15,6 @@ install=sshguard.install
source=("http://downloads.sourceforge.net/sourceforge/sshguard/sshguard-$pkgver.tar.bz2"
sshguard.service
sshguard-journalctl)
-sha256sums=('b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19'
- '3185cd3ceeee0bbb1f1df54baf025857200f39bd1eb747a59d6f46c562be4a51'
- 'f7b307fe9dbbe8c18fe91ca751679d62b2a3ade03cfe164e76ca411cfafffca6')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
@@ -41,3 +38,7 @@ package() {
install -Dm0644 "$srcdir/sshguard.service" "$pkgdir/usr/lib/systemd/system/sshguard.service"
install -Dm0755 "$srcdir/sshguard-journalctl" "$pkgdir/usr/lib/systemd/scripts/sshguard-journalctl"
}
+
+sha256sums=('b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19'
+ '24be7918dcba37805dea2fd1d9e4c1c139e3ea840773aea49574d4c6a7056507'
+ 'a8f315d163128d4e8458c1d50c90082581092476937921cba2afb167f51cbe3f')
diff --git a/community/sshguard/sshguard-journalctl b/community/sshguard/sshguard-journalctl
index e9bb14c5f..8a800ff26 100644
--- a/community/sshguard/sshguard-journalctl
+++ b/community/sshguard/sshguard-journalctl
@@ -1,4 +1,4 @@
#!/bin/sh
-DBFILE=$1
+SSHGUARD_OPTS=$1
shift
-/usr/bin/journalctl -afb -p info -n1 "$@" | /usr/bin/sshguard -l- -b $DBFILE
+LANG=C /usr/bin/journalctl -afb -p info -n1 -o cat "$@" | /usr/bin/sshguard -l- $SSHGUARD_OPTS
diff --git a/community/sshguard/sshguard.service b/community/sshguard/sshguard.service
index 11115727b..1c019fde2 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 /var/db/sshguard/blacklist.db SYSLOG_FACILITY=4 SYSLOG_FACILITY=10
+ExecStart=/usr/lib/systemd/scripts/sshguard-journalctl "-b /var/db/sshguard/blacklist.db" SYSLOG_FACILITY=4 SYSLOG_FACILITY=10
[Install]
WantedBy=multi-user.target