diff options
author | sem <sem@FreeBSD.org> | 2005-07-31 10:14:40 +0000 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-07-31 10:14:40 +0000 |
commit | fe597dde588edc4bd4143b3445fa04a25747b761 (patch) | |
tree | 60c2234952df54de12ee341386f551316c9af03d /devel/p5-Unix-Statgrab | |
parent | e253662a12b38f67c2da27ce75ad72fe82adb5a2 (diff) | |
download | FreeBSD-ports-fe597dde588edc4bd4143b3445fa04a25747b761.zip FreeBSD-ports-fe597dde588edc4bd4143b3445fa04a25747b761.tar.gz |
- Chase libstatgrab version
- Patch for new API complianting
PR: ports/84357
Submitted by: maintainer
Diffstat (limited to 'devel/p5-Unix-Statgrab')
-rw-r--r-- | devel/p5-Unix-Statgrab/Makefile | 8 | ||||
-rw-r--r-- | devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 | 43 |
2 files changed, 48 insertions, 3 deletions
diff --git a/devel/p5-Unix-Statgrab/Makefile b/devel/p5-Unix-Statgrab/Makefile index ae2d3f3..d1415c5 100644 --- a/devel/p5-Unix-Statgrab/Makefile +++ b/devel/p5-Unix-Statgrab/Makefile @@ -7,6 +7,7 @@ PORTNAME= Unix-Statgrab PORTVERSION= 0.03 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Unix @@ -15,7 +16,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= tim@bishnet.net COMMENT= Perl extension for collecting information about the machine -LIB_DEPENDS= statgrab.6:${PORTSDIR}/devel/libstatgrab +LIB_DEPENDS= statgrab.7:${PORTSDIR}/devel/libstatgrab USE_GNOME= pkgconfig @@ -27,9 +28,10 @@ MAN3= Unix::Statgrab.3 .include <bsd.port.pre.mk> -.if ${PERL_LEVEL} < 500600 post-patch: - ${PERL} -i -pe 's/}\(/}->(/' ${WRKSRC}/lib/Unix/Statgrab.pm +.if ${PERL_LEVEL} < 500600 + @${PERL} -i -pe 's/}\(/}->(/' ${WRKSRC}/lib/Unix/Statgrab.pm .endif + @${RM} ${WRKSRC}/lib/Unix/Statgrab.pm.orig .include <bsd.port.post.mk> diff --git a/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 b/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 new file mode 100644 index 0000000..4f67c0c --- /dev/null +++ b/devel/p5-Unix-Statgrab/files/patch-libstatgrab-0.12 @@ -0,0 +1,43 @@ +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<dup($if)> ++=item * B<duplex($if)> + + One of C<SG_IFACE_DUPLEX_FULL>, C<SG_IFACE_DUPLEX_HALF> and C<SG_IFACE_DUPLEX_UNKNOWN>. 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/ ], |