From 61d581f2bb01620ffe65feb34a891b5387df985b Mon Sep 17 00:00:00 2001 From: avsm Date: Tue, 26 Dec 2006 23:56:04 +0000 Subject: [PATCH] initial import of p5-Log-Procmail-0.11 -- The Log::Procmail module processes procmail(1) logfiles and returns the abstracts. You can get all the useful information by using the methods from(), date(), subject(), folder() and size() on the returned Log::Procmail::Abstract object. --- mail/p5-Log-Procmail/Makefile | 18 ++++++++++++++++ mail/p5-Log-Procmail/distinfo | 4 ++++ .../patches/patch-lib_Log_Procmail_pm | 21 +++++++++++++++++++ mail/p5-Log-Procmail/pkg/DESCR | 5 +++++ mail/p5-Log-Procmail/pkg/PLIST | 6 ++++++ 5 files changed, 54 insertions(+) create mode 100644 mail/p5-Log-Procmail/Makefile create mode 100644 mail/p5-Log-Procmail/distinfo create mode 100644 mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm create mode 100644 mail/p5-Log-Procmail/pkg/DESCR create mode 100644 mail/p5-Log-Procmail/pkg/PLIST diff --git a/mail/p5-Log-Procmail/Makefile b/mail/p5-Log-Procmail/Makefile new file mode 100644 index 00000000000..a7992768a57 --- /dev/null +++ b/mail/p5-Log-Procmail/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $ + +COMMENT= "perl module for reading procmail logs" + +DISTNAME= Log-Procmail-0.11 +CATEGORIES= mail textproc + +MAINTAINER= Anil Madhavapeddy + +# GPL/Artistic +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MODULES= cpan + +.include diff --git a/mail/p5-Log-Procmail/distinfo b/mail/p5-Log-Procmail/distinfo new file mode 100644 index 00000000000..304793b4e88 --- /dev/null +++ b/mail/p5-Log-Procmail/distinfo @@ -0,0 +1,4 @@ +MD5 (Log-Procmail-0.11.tar.gz) = 4dc172c6ba974fb96505509f47528732 +RMD160 (Log-Procmail-0.11.tar.gz) = 5a76e093d9ac650ca2903e4ef0870ed79fcf29e0 +SHA1 (Log-Procmail-0.11.tar.gz) = e47f89d963d387223ed14a4a506cb9a97310ec50 +SIZE (Log-Procmail-0.11.tar.gz) = 14934 diff --git a/mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm b/mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm new file mode 100644 index 00000000000..1c30e0cb451 --- /dev/null +++ b/mail/p5-Log-Procmail/patches/patch-lib_Log_Procmail_pm @@ -0,0 +1,21 @@ +$OpenBSD: patch-lib_Log_Procmail_pm,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $ +--- lib/Log/Procmail.pm.orig Tue Dec 26 23:00:16 2006 ++++ lib/Log/Procmail.pm Tue Dec 26 23:00:49 2006 +@@ -57,7 +57,7 @@ sub next { + }; + + # assert: $read == 2; +- /^ Subject: (.*)/i && do { ++ /^ Subject:\s*(.*)/i && do { + push @{$log->{buffer}}, Log::Procmail::Abstract->new() + unless @{$log->{buffer}}; + $log->{buffer}[0]->subject($1); +@@ -67,7 +67,7 @@ sub next { + # procmail tabulates with tabs and spaces... :-( + # assert: $read == 3; + # Folder means the end of this record +- /^ Folder: (.*?)\s+(\d+)$/ && do { ++ /^ Folder:\s*(.*?)\s+(\d+)$/ && do { + push @{$log->{buffer}}, Log::Procmail::Abstract->new() + unless @{$log->{buffer}}; + diff --git a/mail/p5-Log-Procmail/pkg/DESCR b/mail/p5-Log-Procmail/pkg/DESCR new file mode 100644 index 00000000000..68cb9a09d1c --- /dev/null +++ b/mail/p5-Log-Procmail/pkg/DESCR @@ -0,0 +1,5 @@ +The Log::Procmail module processes procmail(1) logfiles and returns +the abstracts. You can get all the useful information by using the +methods from(), date(), subject(), folder() and size() on the +returned Log::Procmail::Abstract object. + diff --git a/mail/p5-Log-Procmail/pkg/PLIST b/mail/p5-Log-Procmail/pkg/PLIST new file mode 100644 index 00000000000..7f85b9539ba --- /dev/null +++ b/mail/p5-Log-Procmail/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/12/26 23:56:04 avsm Exp $ +bin/mailstat.pl +${P5SITE}/Log/ +${P5SITE}/Log/Procmail.pm +@man man/man1/mailstat.pl.1 +@man man/man3p/Log::Procmail.3p