Import of Perl module Parse-Syslog 1.09.
Unix syslogs are convenient to read for humans but because of small differences between operating systems and things like 'last message repeated xx times' not very easy to parse by a script. Parse::Syslog presents a simple interface to parse syslog files: you create a parser on a file (with new) and call next to get one line at a time with Unix-timestamp, host, program, pid and text returned in a hash-reference.
This commit is contained in:
parent
2ca9f0d9c0
commit
dee9d990f7
4 changed files with 36 additions and 0 deletions
9
sysutils/p5-Parse-Syslog/DESCR
Normal file
9
sysutils/p5-Parse-Syslog/DESCR
Normal file
|
@ -0,0 +1,9 @@
|
|||
Unix syslogs are convenient to read for humans but because
|
||||
of small differences between operating systems and things
|
||||
like 'last message repeated xx times' not very easy to parse
|
||||
by a script.
|
||||
|
||||
Parse::Syslog presents a simple interface to parse syslog
|
||||
files: you create a parser on a file (with new) and call
|
||||
next to get one line at a time with Unix-timestamp, host,
|
||||
program, pid and text returned in a hash-reference.
|
21
sysutils/p5-Parse-Syslog/Makefile
Normal file
21
sysutils/p5-Parse-Syslog/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2006/07/16 09:54:10 heinz Exp $
|
||||
#
|
||||
|
||||
DISTNAME= Parse-Syslog-1.09
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
SVR4_PKGNAME= p5psl
|
||||
CATEGORIES= sysutils perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Parse/}
|
||||
|
||||
MAINTAINER= heinz@NetBSD.org
|
||||
HOMEPAGE= http://search.cpan.org/dist/Parse-Syslog/
|
||||
COMMENT= Perl5 module for parsing Unix syslog files
|
||||
|
||||
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
||||
|
||||
USE_LANGUAGES= # empty
|
||||
PERL5_PACKLIST= auto/Parse/Syslog/.packlist
|
||||
|
||||
|
||||
.include "../../lang/perl5/module.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
1
sysutils/p5-Parse-Syslog/PLIST
Normal file
1
sysutils/p5-Parse-Syslog/PLIST
Normal file
|
@ -0,0 +1 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/16 09:54:10 heinz Exp $
|
5
sysutils/p5-Parse-Syslog/distinfo
Normal file
5
sysutils/p5-Parse-Syslog/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2006/07/16 09:54:10 heinz Exp $
|
||||
|
||||
SHA1 (Parse-Syslog-1.09.tar.gz) = 8779e53a6936e4ba712dc5ce1e1a71ccc83463ac
|
||||
RMD160 (Parse-Syslog-1.09.tar.gz) = 2a8ac6adf840e505a5be8f5d7ef3b1bc66fa9f94
|
||||
Size (Parse-Syslog-1.09.tar.gz) = 11033 bytes
|
Loading…
Reference in a new issue