diff options
| author | Francesco Colista <francesco.colista@gmail.com> | 2012-02-09 12:30:34 +0000 |
|---|---|---|
| committer | Francesco Colista <francesco.colista@gmail.com> | 2012-02-09 12:30:34 +0000 |
| commit | e115817423b4eb038c449bef018c712f41bf236a (patch) | |
| tree | 38bc87674629ae9caaa5cccafd40cca28a5f4c9e /testing/sshguard | |
| parent | 534b7b4beacc450aa2961dce44e8165ffd18ac2f (diff) | |
| parent | a5b3d6fa4510e6fb23f8cc315c94e21bd1f62034 (diff) | |
| download | aports-e115817423b4eb038c449bef018c712f41bf236a.tar.bz2 aports-e115817423b4eb038c449bef018c712f41bf236a.tar.xz | |
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/sshguard')
| -rw-r--r-- | testing/sshguard/APKBUILD | 10 | ||||
| -rw-r--r-- | testing/sshguard/parser.patch | 11 |
2 files changed, 17 insertions, 4 deletions
diff --git a/testing/sshguard/APKBUILD b/testing/sshguard/APKBUILD index 089c5874cd..a337bbfc63 100644 --- a/testing/sshguard/APKBUILD +++ b/testing/sshguard/APKBUILD @@ -2,19 +2,20 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> 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" license="BSD" depends="iptables" depends_dev="" -makedepends="$depends_dev" +makedepends="$depends_dev flex bison" 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 0000000000..51f9915e18 --- /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; |
