diff options
author | clsung <clsung@FreeBSD.org> | 2005-01-25 07:00:40 +0000 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2005-01-25 07:00:40 +0000 |
commit | 90b3eb6f326773f5a1c2aeada32b299b1d6ff678 (patch) | |
tree | 206f8eb35d096de5c2143ddba61e806e858c5428 /devel | |
parent | c03c3c77fd5617c69e3a127ffcba3978acee0bd3 (diff) | |
download | FreeBSD-ports-90b3eb6f326773f5a1c2aeada32b299b1d6ff678.zip FreeBSD-ports-90b3eb6f326773f5a1c2aeada32b299b1d6ff678.tar.gz |
- This Perl module generate accounting statistic for general logs
PR: ports/73488
Submitted by: Yuan-Chung Hsiao <ychsiao AT ychsiao dot org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Algorithm-Accounting/Makefile | 31 | ||||
-rw-r--r-- | devel/p5-Algorithm-Accounting/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-Algorithm-Accounting/pkg-descr | 13 | ||||
-rw-r--r-- | devel/p5-Algorithm-Accounting/pkg-plist | 5 |
5 files changed, 52 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 81ec461..c8146e4 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -605,6 +605,7 @@ SUBDIR += p4v SUBDIR += p5-AI-Pathfinding-AStar SUBDIR += p5-Agent + SUBDIR += p5-Algorithm-Accounting SUBDIR += p5-Algorithm-Annotate SUBDIR += p5-Algorithm-Cluster SUBDIR += p5-Algorithm-Diff diff --git a/devel/p5-Algorithm-Accounting/Makefile b/devel/p5-Algorithm-Accounting/Makefile new file mode 100644 index 0000000..7768a23 --- /dev/null +++ b/devel/p5-Algorithm-Accounting/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: devel/p5-Algorithm-Accounting +# Date created: 25 Oct 2004 +# Whom: Yuan-Chung Hsiao <ychsiao@ychsiao.idv.tw> +# +# $FreeBSD$ +# + +PORTNAME= Algorithm-Accounting +PORTVERSION= 0.05 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../../authors/id/G/GU/GOD +PKGNAMEPREFIX= p5- + +MAINTAINER= ychsiao@ychsiao.org +COMMENT= Generate accounting statistic for general logs + +BUILD_DEPENDS= ${SITE_PERL}/Spiffy.pm:${PORTSDIR}/devel/p5-Spiffy \ + ${SITE_PERL}/Perl6/Form.pm:${PORTSDIR}/devel/p5-Perl6-Form \ + ${SITE_PERL}/FreezeThaw.pm:${PORTSDIR}/devel/p5-FreezeThaw \ + ${SITE_PERL}/Array/Compare.pm:${PORTSDIR}/misc/p5-Array-Compare \ + ${SITE_PERL}/Array/Iterator/Reusable.pm:${PORTSDIR}/devel/p5-Array-Iterator \ + ${SITE_PERL}/${PERL_ARCH}/Clone.pm:${PORTSDIR}/devel/p5-Clone \ + ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Algorithm::Accounting.3 + +.include <bsd.port.mk> diff --git a/devel/p5-Algorithm-Accounting/distinfo b/devel/p5-Algorithm-Accounting/distinfo new file mode 100644 index 0000000..dba4658 --- /dev/null +++ b/devel/p5-Algorithm-Accounting/distinfo @@ -0,0 +1,2 @@ +MD5 (Algorithm-Accounting-0.05.tar.gz) = f33ab7b352fcfd491346befffe5b8556 +SIZE (Algorithm-Accounting-0.05.tar.gz) = 10576 diff --git a/devel/p5-Algorithm-Accounting/pkg-descr b/devel/p5-Algorithm-Accounting/pkg-descr new file mode 100644 index 0000000..7cdaf92 --- /dev/null +++ b/devel/p5-Algorithm-Accounting/pkg-descr @@ -0,0 +1,13 @@ +Algorithm::Accounting provide simple aggregation method to make log +accounting easier. It accepts data in rows, each rows can have many +fields, and each field is a scalar or a list(arrayref). + +The basic usage is you walk through all your logs, and use append_data() +to insert each rows, (you'll have to split the line into fields), and +then call result() to retrieve the result, or report() to immediatly +see simple result. + +You may specify a filed_groups parameter (arrayref of arrayref), and +Algorithm::Accounting will account these fields in groups. + +WWW: http://search.cpan.org/dist/Algorithm-Accounting diff --git a/devel/p5-Algorithm-Accounting/pkg-plist b/devel/p5-Algorithm-Accounting/pkg-plist new file mode 100644 index 0000000..d9c6460 --- /dev/null +++ b/devel/p5-Algorithm-Accounting/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Algorithm/Accounting.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Accounting/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Accounting +@unexec rmdir %D/%%SITE_PERL%%/Algorithm/Accounting 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/Accounting 2>/dev/null || true |