From a4ce109a6bbd8f915a2f3571aafd7181904fa2cf Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Fri, 7 Oct 2005 07:23:28 +0000 Subject: [PATCH] Update devel/p5-Unix-Statgrab to 0.04 PR: 87004 Submitted by: Tim Bishop (maintainer) Approved by: novel (mentor) --- devel/p5-Unix-Statgrab/Makefile | 6 +-- devel/p5-Unix-Statgrab/distinfo | 4 +- .../files/patch-libstatgrab-0.12 | 43 ------------------- 3 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 diff --git a/devel/p5-Unix-Statgrab/Makefile b/devel/p5-Unix-Statgrab/Makefile index d1415c5a0dbe..a5cd55286a1e 100644 --- a/devel/p5-Unix-Statgrab/Makefile +++ b/devel/p5-Unix-Statgrab/Makefile @@ -6,8 +6,7 @@ # PORTNAME= Unix-Statgrab -PORTVERSION= 0.03 -PORTREVISION= 1 +PORTVERSION= 0.04 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Unix @@ -28,10 +27,9 @@ MAN3= Unix::Statgrab.3 .include -post-patch: .if ${PERL_LEVEL} < 500600 +post-patch: @${PERL} -i -pe 's/}\(/}->(/' ${WRKSRC}/lib/Unix/Statgrab.pm .endif - @${RM} ${WRKSRC}/lib/Unix/Statgrab.pm.orig .include diff --git a/devel/p5-Unix-Statgrab/distinfo b/devel/p5-Unix-Statgrab/distinfo index d442dd8fc30c..366a9c89fda2 100644 --- a/devel/p5-Unix-Statgrab/distinfo +++ b/devel/p5-Unix-Statgrab/distinfo @@ -1,2 +1,2 @@ -MD5 (Unix-Statgrab-0.03.tar.gz) = 089380f21fa7e3d4b7a1bc55d658fd9c -SIZE (Unix-Statgrab-0.03.tar.gz) = 23264 +MD5 (Unix-Statgrab-0.04.tar.gz) = 94787010e27183ce5cf354c58c465d0d +SIZE (Unix-Statgrab-0.04.tar.gz) = 23653 diff --git a/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 b/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 deleted file mode 100644 index 4f67c0c1d688..000000000000 --- a/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 +++ /dev/null @@ -1,43 +0,0 @@ -diff -ruN Unix-Statgrab-0.03/Statgrab.xs Unix-Statgrab-0.03.new/Statgrab.xs ---- Statgrab.xs Sun Apr 3 06:32:41 2005 -+++ Statgrab.xs Sat Jul 30 12:10:10 2005 -@@ -1113,13 +1113,13 @@ - RETVAL - - IV --dup (self, num = 0) -+duplex (self, num = 0) - sg_network_iface_stats_my *self; - int num; - CODE: - if (num < 0 || num >= self->nifs) - XSRETURN_UNDEF; -- RETVAL = IF(num)->dup; -+ RETVAL = IF(num)->duplex; - OUTPUT: - RETVAL - -diff -ruN Unix-Statgrab-0.03/lib/Unix/Statgrab.pm Unix-Statgrab-0.03.new/lib/Unix/Statgrab.pm ---- lib/Unix/Statgrab.pm Sun Apr 3 06:45:44 2005 -+++ lib/Unix/Statgrab.pm Sat Jul 30 12:09:53 2005 -@@ -479,7 +479,7 @@ - - The speed of the interface, in megabits/sec - --=item * B -+=item * B - - One of C, C and C. Unknown could mean that duplex hasn't been negotiated yet. - -diff -ruN Unix-Statgrab-0.03/t/Unix-Statgrab.t Unix-Statgrab-0.03.new/t/Unix-Statgrab.t ---- t/Unix-Statgrab.t Sun Apr 3 06:35:08 2005 -+++ t/Unix-Statgrab.t Sat Jul 30 12:09:29 2005 -@@ -50,7 +50,7 @@ - ierrors oerrors collisions systime/ ], - get_network_io_stats_diff => [ qw/num_ifaces interface_name tx rx ipackets opackets - ierrors oerrors collisions systime/ ], -- get_network_iface_stats => [ qw/num_ifaces interface_name speed dup up/ ], -+ get_network_iface_stats => [ qw/num_ifaces interface_name speed duplex up/ ], - get_page_stats => [ qw/pages_pagein pages_pageout systime/ ], - get_page_stats_diff => [ qw/pages_pagein pages_pageout systime/ ], - get_user_stats => [ qw/num_entries name_list/ ],