X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 6A396DC13B1 for ; Wed, 8 Feb 2012 09:02:59 +0000 (UTC) Received: by wgbdt10 with SMTP id dt10so215134wgb.25 for ; Wed, 08 Feb 2012 01:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=5fwWNrsVnMDxtQvhBJObwfW2yP5+/6fW+gask5BLCrU=; b=Eh6/3zy+QZod1GoSqoLZHizwm4XJBnWzVNd4QGZQVT5nLN4yfqPKcZuvK8t/IzEYSy 4cARgkE4l6jLyzLQIt3jpCsVGo1VW0ln4vipgX6BjVXKrI3YV7RH86PhQOHJjLwZy3ud rlv3A4heqbAk+jKJBqqi+nOxXmpFVKIKahWwY= Received: by 10.180.100.234 with SMTP id fb10mr39202625wib.8.1328691778487; Wed, 08 Feb 2012 01:02:58 -0800 (PST) Received: from build.localdomain (tina.upc.es. [147.83.39.243]) by mx.google.com with ESMTPS id g6sm1100251wig.9.2012.02.08.01.02.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Feb 2012 01:02:58 -0800 (PST) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= From: Roger Pau Monne To: alpine-devel@lists.alpinelinux.org Cc: Roger Pau Monne Subject: [alpine-devel] [PATCH] testing/sshguard: fix parsing of busybox syslog Date: Tue, 7 Feb 2012 20:50:30 +0100 Message-Id: <1328644230-15162-1-git-send-email-roger.pau@entel.upc.edu> X-Mailer: git-send-email 1.7.9 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/sshguard/APKBUILD | 8 +++++--- testing/sshguard/parser.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 testing/sshguard/parser.patch diff --git a/testing/sshguard/APKBUILD b/testing/sshguard/APKBUILD index 089c587..c6a69b4 100644 --- a/testing/sshguard/APKBUILD +++ b/testing/sshguard/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=sshguard pkgver=1.5 -pkgrel=0 +pkgrel=1 pkgdesc="Log monitor that blocks with iptables on bad behaviour" url="http://www.sshguard.net/" arch="all" @@ -14,7 +14,8 @@ install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-$pkgver/sshguard-$pkgver.tar.bz2 sshguard.initd - sshguard.confd" + sshguard.confd + parser.patch" _builddir="$srcdir"/sshguard-$pkgver prepare() { @@ -46,4 +47,5 @@ package() { md5sums="11b9f47f9051e25bdfe84a365c961ec1 sshguard-1.5.tar.bz2 13eb7c7e7a91cc347dbd6ff111d662c4 sshguard.initd -02dc914d310ea759a66ebb136f495e4e sshguard.confd" +02dc914d310ea759a66ebb136f495e4e sshguard.confd +84ff8858abb8d5a673037cf592bb6794 parser.patch" diff --git a/testing/sshguard/parser.patch b/testing/sshguard/parser.patch new file mode 100644 index 0000000..51f9915 --- /dev/null +++ b/testing/sshguard/parser.patch @@ -0,0 +1,11 @@ +--- sshguard-1.5/src/parser/attack_scanner.l ++++ sshguard-1.5-mod/src/parser/attack_scanner.l +@@ -107,7 +107,7 @@ + */ + + /* handle entries with PID and without PID from processes other than sshguard */ +-{TIMESTAMP_SYSLOG}[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+{PROCESSNAME}"["{NUMBER}"]: "{SOLARIS_MSGID_TAG}? { ++{TIMESTAMP_SYSLOG}[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+([a-zA-Z0-9]|{WORD}|{HOSTADDR})[ ]+{PROCESSNAME}"["{NUMBER}"]: "{SOLARIS_MSGID_TAG}? { + /* extract PID */ + yylval.num = getsyslogpid(yytext, yyleng); + return SYSLOG_BANNER_PID; -- 1.7.9 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---