Add port pgbadger. PostgreSQL log analyzer with fully detailed reports and charts.

Feature safe: yes
This commit is contained in:
Palle Girgensohn
2012-10-31 18:02:55 +00:00
parent 7ef9f699d0
commit e34efbc6a1
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# New ports collection makefile for: pgbadger
# Date created: October 30, 2012
# Whom: Palle Girgensohn <girgen@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pgbadger
PORTVERSION= 2.1
CATEGORIES= databases
MASTER_SITES= http://cloud.github.com/downloads/dalibo/pgbadger/
MAINTAINER= girgen@FreeBSD.org
COMMENT= Very comptent log analyzer for PostgreSQL
PERL_CONFIGURE= yes
MAN1= pgbadger.1
PLIST_FILES= bin/pgbadger
.include <bsd.port.mk>

View File

@@ -0,0 +1,2 @@
SHA256 (pgbadger-2.1.tar.gz) = eeb38ca6bf12c77be6d58247fe0937d708cc2e4c5dfbbccc635627bd4eab3184
SIZE (pgbadger-2.1.tar.gz) = 76040

View File

@@ -0,0 +1,12 @@
--- pgbadger.orig 2012-10-12 17:00:07.000000000 +0200
+++ pgbadger 2012-10-30 11:18:40.000000000 +0100
@@ -47,7 +50,8 @@
my $zcat = 'zcat';
my $bzcat = 'bzcat';
my $ucat = 'unzip -p';
-my $uncompress_size = "gunzip -l %f | grep -E '^\\s*[0-9]+' | awk '{print \$2}'";
+#my $uncompress_size = "gunzip -l %f | grep -E '^\\s*[0-9]+' | awk '{print \$2}'";
+my $uncompress_size = "zcat %f | wc -c | awk '{print \$1}'";
my $format = '';
my $outfile = '';
my $outdir = '';

View File

@@ -0,0 +1,3 @@
PostgreSQL log analyzer with fully detailed reports and charts.
WWW: http://dalibo.github.com/pgbadger/