From T.D.Bishop@kent.ac.uk  Sat Jul 30 20:23:05 2005
Return-Path: <T.D.Bishop@kent.ac.uk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4083916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Jul 2005 20:23:05 +0000 (GMT)
	(envelope-from T.D.Bishop@kent.ac.uk)
Received: from mx6.kent.ac.uk (mx6.kent.ac.uk [129.12.21.37])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CECC843D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 30 Jul 2005 20:23:04 +0000 (GMT)
	(envelope-from T.D.Bishop@kent.ac.uk)
Received: from hathor.ukc.ac.uk ([129.12.4.12])
	by mx6.kent.ac.uk with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.50)
	id 1DyxrH-0001rj-4x; Sat, 30 Jul 2005 21:22:59 +0100
Received: from pendennis.ukc.ac.uk ([129.12.3.232])
	by hathor.ukc.ac.uk with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.50)
	id 1DyxrH-0006Mf-0i; Sat, 30 Jul 2005 21:22:59 +0100
Received: from tdb by pendennis.ukc.ac.uk with local (Exim 4.50 (FreeBSD))
	id 1DyxrG-000PlM-SA; Sat, 30 Jul 2005 21:22:58 +0100
Message-Id: <E1DyxrG-000PlM-SA@pendennis.ukc.ac.uk>
Date: Sat, 30 Jul 2005 21:22:58 +0100
From: Tim Bishop <tim@bishnet.net>
Sender: "T.D.Bishop" <T.D.Bishop@kent.ac.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: tim@bishnet.net
Subject: [MAINTAINER] devel/p5-Unix-Statgrab: Chase libstatgrab update
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84357
>Category:       ports
>Synopsis:       [MAINTAINER] devel/p5-Unix-Statgrab: Chase libstatgrab update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sem
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 30 20:30:24 GMT 2005
>Closed-Date:    Sun Jul 31 10:16:37 GMT 2005
>Last-Modified:  Sun Jul 31 10:16:37 GMT 2005
>Originator:     Tim Bishop
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD pendennis.ukc.ac.uk 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Wed May 11 11:41:59 BST 2005
>Description:
- Chase devel/libstatgrab shlib update.

- Patch around API changes until new version of Unix-Statgrab released:

Added file(s):
- files/patch-libstatgrab-0.12

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- p5-Unix-Statgrab-0.03_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /u1/freebsd/cvs/ports/devel/p5-Unix-Statgrab/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	11 Apr 2005 17:08:41 -0000	1.4
+++ Makefile	30 Jul 2005 19:38:10 -0000
@@ -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 @@
 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 @@
 
 .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>
Index: files/patch-libstatgrab-0.12
===================================================================
RCS file: files/patch-libstatgrab-0.12
diff -N files/patch-libstatgrab-0.12
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-libstatgrab-0.12	30 Jul 2005 11:11:56 -0000
@@ -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/ ],
--- p5-Unix-Statgrab-0.03_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: sem 
Responsible-Changed-When: Sun Jul 31 09:16:18 GMT 2005 
Responsible-Changed-Why:  
take it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84357 
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Sun Jul 31 10:16:29 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84357 
>Unformatted:
