aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2013-01-22 01:01:34 +0800
committergirgen <girgen@FreeBSD.org>2013-01-22 01:01:34 +0800
commitcb3dd9b7d244eb70374be7a9a66f6d9dc1be1d8d (patch)
treeeccb55484397d7321ec3b7afa420a0903982020a
parentf1d676345586f269466e522ebc504a3369c11e92 (diff)
downloadfreebsd-ports-gnome-cb3dd9b7d244eb70374be7a9a66f6d9dc1be1d8d.tar.gz
freebsd-ports-gnome-cb3dd9b7d244eb70374be7a9a66f6d9dc1be1d8d.tar.zst
freebsd-ports-gnome-cb3dd9b7d244eb70374be7a9a66f6d9dc1be1d8d.zip
Update to pgbadger 2.3
-rw-r--r--databases/pgbadger/Makefile7
-rw-r--r--databases/pgbadger/distinfo4
-rw-r--r--databases/pgbadger/files/patch-bzip-size49
3 files changed, 5 insertions, 55 deletions
diff --git a/databases/pgbadger/Makefile b/databases/pgbadger/Makefile
index ca0f8256e85b..ef9d401d84ab 100644
--- a/databases/pgbadger/Makefile
+++ b/databases/pgbadger/Makefile
@@ -2,11 +2,10 @@
# $FreeBSD$
PORTNAME= pgbadger
-PORTVERSION= 2.2
-PORTREVISION= 1
+PORTVERSION= 2.3
CATEGORIES= databases
-MASTER_SITES= http://cloud.github.com/downloads/dalibo/pgbadger/
-DISTFILES= ${DISTNAME}-1${EXTRACT_SUFX}
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=${PORTNAME}/${PORTVERSION}
MAINTAINER= girgen@FreeBSD.org
COMMENT= Very comptent log analyzer for PostgreSQL
diff --git a/databases/pgbadger/distinfo b/databases/pgbadger/distinfo
index 884e2cc9c10a..698302cfa145 100644
--- a/databases/pgbadger/distinfo
+++ b/databases/pgbadger/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pgbadger-2.2-1.tar.gz) = c79247314adbbdadc2f59f054e96080e33e0166f926fb01a93eb16060a246d6e
-SIZE (pgbadger-2.2-1.tar.gz) = 79363
+SHA256 (pgbadger-2.3.tar.gz) = 6d552836fb518c8fc7a9a153f2542c7b4434975fce857d0607ba89c167bed359
+SIZE (pgbadger-2.3.tar.gz) = 86350
diff --git a/databases/pgbadger/files/patch-bzip-size b/databases/pgbadger/files/patch-bzip-size
deleted file mode 100644
index 99b0ed4a32bc..000000000000
--- a/databases/pgbadger/files/patch-bzip-size
+++ /dev/null
@@ -1,49 +0,0 @@
---- /usr/local/bin/pgbadger 2013-01-09 16:38:48.000000000 +0100
-+++ pgbadger 2013-01-09 16:42:11.000000000 +0100
-@@ -51,6 +51,7 @@
- my $bzcat = 'bunzip2 -c';
- my $ucat = 'unzip -p';
- my $uncompress_size = "gunzip -l %f | grep -E '^\\s*[0-9]+' | awk '{print \$2}'";
-+my $uncompress_size_bz2 = "$bzcat %f | wc -c";
- my $format = '';
- my $outfile = '';
- my $outdir = '';
-@@ -536,8 +537,10 @@
- open($io, "<", $logfile) or die "FATAL: cannot read csvlog file $logfile. $!\n";
- } else {
- my $uncompress = $zcat;
-+ my $cmd_file_size = $uncompress_size;
- if (($logfile =~ /\.bz2/i) && ($zcat =~ /^zcat$/)) {
- $uncompress = $bzcat;
-+ $cmd_file_size = $uncompress_size_bz2;
- } elsif (($logfile =~ /\.zip/i) && ($zcat =~ /^zcat$/)) {
- $uncompress = $ucat;
- }
-@@ -545,7 +548,7 @@
- open($io, "$uncompress $logfile |") or die "FATAL: cannot open pipe to $uncompress $logfile. $!\n";
-
- # Real size of the file is unknow, try to find it
-- my $cmd_file_size = $uncompress_size;
-+ &logmsg("INFO", "$cmd_file_size");
- $cmd_file_size =~ s/\%f/$logfile/g;
- $totalsize = `$cmd_file_size`;
- chomp($totalsize);
-@@ -646,8 +649,10 @@
- } else {
-
- my $uncompress = $zcat;
-+ my $cmd_file_size = $uncompress_size;
- if (($logfile =~ /\.bz2/i) && ($zcat =~ /^zcat$/)) {
- $uncompress = $bzcat;
-+ $cmd_file_size = $uncompress_size_bz2;
- } elsif (($logfile =~ /\.zip/i) && ($zcat =~ /^zcat$/)) {
- $uncompress = $ucat;
- }
-@@ -657,7 +662,6 @@
- $lfile->open("$uncompress $logfile |") || die "FATAL: cannot read from pipe to $uncompress $logfile. $!\n";
-
- # Real size of the file is unknow, try to find it
-- my $cmd_file_size = $uncompress_size;
- $cmd_file_size =~ s/\%f/$logfile/g;
- $totalsize = `$cmd_file_size`;
- chomp($totalsize);