From e56dd08276a4c0b989b4a98b8bc5379b6b3c2e6c Mon Sep 17 00:00:00 2001 From: Daichi GOTO Date: Tue, 22 Jul 2003 13:12:15 +0000 Subject: [PATCH] update mail/pflogstats: 20030404 -> 20030721 PR: 54641 Submitted by: Don Croyle Reviewed by: A.J.Caines@halplant.com (maintainer) --- mail/pflogstats/Makefile | 8 +-- mail/pflogstats/distinfo | 2 +- mail/pflogstats/files/patch-pflogstats.pl | 70 +---------------------- mail/pflogstats/files/patch-sqwmstats.pl | 41 +------------ mail/pflogstats/pkg-plist | 1 + 5 files changed, 9 insertions(+), 113 deletions(-) diff --git a/mail/pflogstats/Makefile b/mail/pflogstats/Makefile index 6b0f8a05a61d..a1a9fc84108d 100644 --- a/mail/pflogstats/Makefile +++ b/mail/pflogstats/Makefile @@ -6,7 +6,7 @@ # PORTNAME= pflogstats -PORTVERSION= 20030404 +PORTVERSION= 20030721 CATEGORIES= mail MASTER_SITES= ftp://ftp.aerasec.de/pub/linux/postfix/pflogsumm/pflogstats/ @@ -24,13 +24,7 @@ USE_REINPLACE= yes post-patch: # fix location of PERL - @${REINPLACE_CMD} -e 's|/usr/bin/perl \-W|${PERL}|' ${WRKSRC}/*.pl ${WRKSRC}/*.pm @${REINPLACE_CMD} -e 's|/usr/local/lib/pflogstats|${SITE_PERL}/Pflogstats|' ${WRKSRC}/*.pl -# patch for perl < 5.6.0 - ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \ - -e '$$_="" if /require 5/;' \ - -e '$$_="" if /use warnings/;' \ - ${WRKSRC}/*.pm do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME} diff --git a/mail/pflogstats/distinfo b/mail/pflogstats/distinfo index c4f227cc1af5..ee69aa6d23cb 100644 --- a/mail/pflogstats/distinfo +++ b/mail/pflogstats/distinfo @@ -1 +1 @@ -MD5 (pflogstats-20030404.tar.gz) = ee0efe0a442245622ea68cb3bac6542f +MD5 (pflogstats-20030721.tar.gz) = 9f864977a0d8b9068fcf3cea0e1027c9 diff --git a/mail/pflogstats/files/patch-pflogstats.pl b/mail/pflogstats/files/patch-pflogstats.pl index dba4dd60db96..b6ff2a10459f 100644 --- a/mail/pflogstats/files/patch-pflogstats.pl +++ b/mail/pflogstats/files/patch-pflogstats.pl @@ -1,72 +1,8 @@ ---- pflogstats.pl.orig Fri Apr 4 15:29:35 2003 -+++ pflogstats.pl Mon May 12 10:37:46 2003 +--- pflogstats.pl.bak Sat Jul 19 14:40:21 2003 ++++ pflogstats.pl Sat Jul 19 14:50:58 2003 @@ -1,4 +1,4 @@ --#!/usr/bin/perl -W +-#!/usr/bin/perl -w +#!/usr/bin/perl ### # Project: pflogstats -@@ -30,10 +30,7 @@ - # ***** Sorry for some coding confusion, this is a developer version ***** - - # Minium required Perl version --require 5.6.0; -- --#use warnings; # to be done later --#use strict; # to be done later -+require 5.00503; - - # Global used Perl modules - use Time::Local; -@@ -43,8 +40,9 @@ - - - ## Name and version --my $release = "20030404.AERAsec"; --our $progName = "pflogstats.pl"; -+use vars qw{$release $progName}; -+$release = "20030404.AERAsec"; -+$progName = "pflogstats.pl"; - - - ## Defines before module loader -@@ -62,9 +60,7 @@ - ## Define global variables - - # option handling --our %options; --our %opts; --our %types; -+use vars qw{%options %opts %types}; - - # Default value - $types{'default'} = 0; -@@ -73,11 +69,12 @@ - $types{'test_verp_mung'} = 0; - - # module hooks --our %hooks; -+use vars qw{%hooks}; - - # Format options --our @opt_format; # from option parsing --our %format; # used format -+use vars qw{@opt_format %format}; -+# @opt_format; # from option parsing -+# %format; # used format - - my @opt_types; - my $isoDateTime; -@@ -143,10 +140,10 @@ - #exit 0; - - # Number formats --our %numberformat; -+use vars qw{%numberformat}; - - # Time range of logdata --our ($timemin, $timemax); -+use vars qw{$timemin, $timemax}; - my ($time); - - diff --git a/mail/pflogstats/files/patch-sqwmstats.pl b/mail/pflogstats/files/patch-sqwmstats.pl index ce584bf269b3..ab9983c386a2 100644 --- a/mail/pflogstats/files/patch-sqwmstats.pl +++ b/mail/pflogstats/files/patch-sqwmstats.pl @@ -1,43 +1,8 @@ ---- sqwmstats.pl.orig Fri Apr 4 15:29:35 2003 -+++ sqwmstats.pl Mon May 12 10:38:01 2003 +--- sqwmstats.pl.bak Sat Jul 19 14:40:21 2003 ++++ sqwmstats.pl Sat Jul 19 14:52:04 2003 @@ -1,4 +1,4 @@ --#!/usr/bin/perl -W +-#!/usr/bin/perl -w +#!/usr/bin/perl ### # Project: pflogstats -@@ -32,28 +32,27 @@ - ### - - --use warnings; - use strict; - - ## Name and version --my $release = "0.03"; --our $progName = "sqwmstats.pl"; -+use vars qw{$release $progName}; -+$release = "0.03"; -+$progName = "sqwmstats.pl"; - - - ## Define global variables - - # option handling --our %options; --our %opts; -+use vars qw{%options %opts}; - - $options{'help|h|?'} = \$opts{'help'}; - $options{"version"} = \$opts{'version'}; - - # module hooks --our %hooks; -+use vars qw{%hooks}; - - # Number formats --our %numberformat; -+use vars qw{%numberformat}; - - ## Module loader - # General diff --git a/mail/pflogstats/pkg-plist b/mail/pflogstats/pkg-plist index 22a9f91ac447..089fab03671c 100644 --- a/mail/pflogstats/pkg-plist +++ b/mail/pflogstats/pkg-plist @@ -8,6 +8,7 @@ bin/pflogstats %%SITE_PERL%%/Pflogstats/pflogstats-statistics-accpopimap.pm %%SITE_PERL%%/Pflogstats/pflogstats-statistics-antivirus.pm %%SITE_PERL%%/Pflogstats/pflogstats-statistics-reject.pm +%%SITE_PERL%%/Pflogstats/pflogstats-statistics-spamassassin.pm %%SITE_PERL%%/Pflogstats/pflogstats-statistics-uce.pm %%SITE_PERL%%/Pflogstats/pflogstats-template.pm %%PORTDOCS%%%%DOCSDIR%%/BUGS