summaryrefslogtreecommitdiff
path: root/community/sshguard
diff options
context:
space:
mode:
Diffstat (limited to 'community/sshguard')
-rw-r--r--community/sshguard/PKGBUILD11
-rw-r--r--community/sshguard/sshguard-journalctl2
-rw-r--r--community/sshguard/sshguard.service2
3 files changed, 10 insertions, 5 deletions
diff --git a/community/sshguard/PKGBUILD b/community/sshguard/PKGBUILD
index be7fa6439..8bd832a39 100644
--- a/community/sshguard/PKGBUILD
+++ b/community/sshguard/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 75872 2012-09-04 09:23:53Z mtorromeo $
+# $Id: PKGBUILD 75956 2012-09-07 08:27:47Z mtorromeo $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=sshguard
pkgver=1.5
-pkgrel=4
+pkgrel=5
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/"
@@ -17,11 +17,13 @@ install=sshguard.install
source=("http://downloads.sourceforge.net/sourceforge/sshguard/sshguard-$pkgver.tar.bz2"
sshguard.rc
sshguard.conf.d
- sshguard.service)
+ sshguard.service
+ sshguard-journalctl)
sha256sums=('b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19'
'a810da878e40be8616a93c9984e7dbd3700367d665b78b8aa2498228bb33cb6e'
'66f28e2cc81e5686f8fd5c0d5a5015d7feecbe018a259f4032cfbacf6fe8d1c3'
- '3f183519c80141aaffdc333e9af3fc6717a86aebda9df70d8015ad27173eefcf')
+ '299b5f73e4c53aac6007c87210fc862987042b9d4c088180721bae6ab2214b09'
+ '385d1dea0c6f5495a7c7e5051f1354f1eab85ee5ef599f6698ab353263b8c9bb')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -40,4 +42,5 @@ package() {
install -Dm0644 "$srcdir/sshguard.service" "$pkgdir/usr/lib/systemd/system/sshguard.service"
install -Dm0755 "$srcdir/sshguard.rc" "$pkgdir/etc/rc.d/sshguard"
install -Dm0644 "$srcdir/sshguard.conf.d" "$pkgdir/etc/conf.d/sshguard"
+ install -Dm0755 "$srcdir/sshguard-journalctl" "$pkgdir/usr/lib/systemd/scripts/sshguard-journalctl"
}
diff --git a/community/sshguard/sshguard-journalctl b/community/sshguard/sshguard-journalctl
new file mode 100644
index 000000000..bd4b6f608
--- /dev/null
+++ b/community/sshguard/sshguard-journalctl
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/journalctl -flbp info -n0 SYSLOG_FACILITY=10 | /usr/sbin/sshguard -l-
diff --git a/community/sshguard/sshguard.service b/community/sshguard/sshguard.service
index 6dc542427..ad9f90ce2 100644
--- a/community/sshguard/sshguard.service
+++ b/community/sshguard/sshguard.service
@@ -4,7 +4,7 @@ Wants=sshd.service
[Service]
EnvironmentFile=/etc/conf.d/sshguard
-ExecStart=/usr/sbin/sshguard -l /var/log/auth.log -b /var/db/sshguard/blacklist.db ${SSHGUARD_ARGS}
+ExecStart=/usr/lib/systemd/scripts/sshguard-journalctl -b /var/db/sshguard/blacklist.db ${SSHGUARD_ARGS}
[Install]
WantedBy=multi-user.target