1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

update mail/pflogstats: 20030404 -> 20030721

PR:		54641
Submitted by:	Don Croyle <croyle@gelemna.org>
Reviewed by:	A.J.Caines@halplant.com (maintainer)
This commit is contained in:
Daichi GOTO 2003-07-22 13:12:15 +00:00
parent 6a2691acfa
commit e56dd08276
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85368
5 changed files with 9 additions and 113 deletions

View File

@ -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}

View File

@ -1 +1 @@
MD5 (pflogstats-20030404.tar.gz) = ee0efe0a442245622ea68cb3bac6542f
MD5 (pflogstats-20030721.tar.gz) = 9f864977a0d8b9068fcf3cea0e1027c9

View File

@ -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);

View File

@ -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

View File

@ -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