ports/52956: Bugfix: net/p5-NetPacket

Foxfair Hu foxfair at drago.fomokka.net
Thu Jun 19 01:20:17 UTC 2003


The following reply was made to PR ports/52956; it has been noted by GNATS.

From: Foxfair Hu <foxfair at drago.fomokka.net>
To: Lars Eggert <larse at ISI.EDU>, freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/52956: Bugfix: net/p5-NetPacket
Date: Thu, 19 Jun 2003 09:19:07 +0800

 --ReaqsoxgOBHFXBhH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hello Lars,
 
 	Here is a patch to upgrade p5-NetPacket to 0.04 included
 the patch (patch-aa).
 
 
 foxfair
 
 
 --ReaqsoxgOBHFXBhH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="patch.p5-NetPacket"
 
 diff -ruN /usr/ports/net/p5-NetPacket/Makefile ./Makefile
 --- /usr/ports/net/p5-NetPacket/Makefile	Fri Feb 21 21:14:57 2003
 +++ ./Makefile	Thu Jun 19 08:51:32 2003
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	NetPacket
 -PORTVERSION=	0.03
 +PORTVERSION=	0.04
  CATEGORIES=	net perl5
  MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
  MASTER_SITE_SUBDIR=	NetPacket
 @@ -16,9 +16,12 @@
  COMMENT=	Modules to assemble/disassemble network packets at the protocol level
  
  PERL_CONFIGURE=	yes
 +#CONFIGURE_ARGS+=	INSTALLSITEMAN3DIR=${PREFIX}/lib/perl5/${PERL_VERSION}/man/man3
  
  MANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 -MAN3=	NetPacket.3 NetPacket::ARP.3 NetPacket::Ethernet.3 NetPacket::ICMP.3 \
 -	NetPacket::IGMP.3 NetPacket::IP.3 NetPacket::TCP.3 NetPacket::UDP.3
 +MAN3=	NetPacket::LACP.3 NetPacket::IGMP.3 NetPacket::IP.3 \
 +	NetPacket::SpanningTree.3 NetPacket::LLC.3 NetPacket::ARP.3 \
 +	NetPacket.3 NetPacket::UDP.3 NetPacket::Ethernet.3 \
 +	NetPacket::ICMP.3 NetPacket::TCP.3
  
  .include <bsd.port.mk>
 diff -ruN /usr/ports/net/p5-NetPacket/Makefile.orig ./Makefile.orig
 --- /usr/ports/net/p5-NetPacket/Makefile.orig	Thu Jan  1 08:00:00 1970
 +++ ./Makefile.orig	Thu Jun 19 08:49:25 2003
 @@ -0,0 +1,24 @@
 +# New ports collection makefile for:	p5-NetPacket
 +# Date created:				8 April 2001
 +# Whom:					Anatoliy Dmytriyev
 +#
 +# $FreeBSD: ports/net/p5-NetPacket/Makefile,v 1.3 2003/02/21 13:14:57 knu Exp $
 +#
 +
 +PORTNAME=	NetPacket
 +PORTVERSION=	0.03
 +CATEGORIES=	net perl5
 +MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 +MASTER_SITE_SUBDIR=	NetPacket
 +PKGNAMEPREFIX=	p5-
 +
 +MAINTAINER=	tolid at plab.ku.dk
 +COMMENT=	Modules to assemble/disassemble network packets at the protocol level
 +
 +PERL_CONFIGURE=	yes
 +
 +MANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 +MAN3=	NetPacket.3 NetPacket::ARP.3 NetPacket::Ethernet.3 NetPacket::ICMP.3 \
 +	NetPacket::IGMP.3 NetPacket::IP.3 NetPacket::TCP.3 NetPacket::UDP.3
 +
 +.include <bsd.port.mk>
 diff -ruN /usr/ports/net/p5-NetPacket/distinfo ./distinfo
 --- /usr/ports/net/p5-NetPacket/distinfo	Thu Oct 18 20:56:34 2001
 +++ ./distinfo	Thu Jun 19 08:49:38 2003
 @@ -1 +1 @@
 -MD5 (NetPacket-0.03.tar.gz) = 10a7614132b43bef5e3097a405fc89ac
 +MD5 (NetPacket-0.04.tar.gz) = 3bf136cd3b555d50ba4b1ce81968f695
 diff -ruN /usr/ports/net/p5-NetPacket/distinfo.orig ./distinfo.orig
 --- /usr/ports/net/p5-NetPacket/distinfo.orig	Thu Jan  1 08:00:00 1970
 +++ ./distinfo.orig	Thu Jun 19 08:49:25 2003
 @@ -0,0 +1 @@
 +MD5 (NetPacket-0.03.tar.gz) = 10a7614132b43bef5e3097a405fc89ac
 diff -ruN /usr/ports/net/p5-NetPacket/patch-aa ./patch-aa
 --- /usr/ports/net/p5-NetPacket/patch-aa	Thu Jan  1 08:00:00 1970
 +++ ./patch-aa	Thu Jun 19 08:49:38 2003
 @@ -0,0 +1,12 @@
 +--- NetPacket/IP.pm	Fri Jan 11 20:10:25 2002
 ++++ NetPacket/IP.pm.new	Fri Jan 11 20:10:35 2002
 +@@ -224,7 +224,7 @@
 + 
 +     # make the entire packet
 +     $packet = pack('CCnnnCCna4a4a*a*', $tmp, $self->{tos},$self->{len}, 
 +-         $self->{id}, $self->{foffset}, $self->{ttl}, $self->{proto}, 
 ++         $self->{id}, $offset, $self->{ttl}, $self->{proto}, 
 +          $self->{cksum}, $src_ip, $dest_ip, $self->{options},
 +          $self->{data});
 + 
 +
 diff -ruN /usr/ports/net/p5-NetPacket/pkg-plist ./pkg-plist
 --- /usr/ports/net/p5-NetPacket/pkg-plist	Sat May 19 22:02:04 2001
 +++ ./pkg-plist	Thu Jun 19 08:51:20 2003
 @@ -1,11 +1,14 @@
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/TCP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/UDP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/IP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/ICMP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/IGMP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/Ethernet.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket/ARP.pm
 -lib/perl5/site_perl/%%PERL_VER%%/NetPacket.pm
 -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/NetPacket/.packlist
 - at dirrm lib/perl5/site_perl/%%PERL_VER%%/NetPacket
 - at dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/NetPacket
 +%%SITE_PERL%%/NetPacket/LACP.pm
 +%%SITE_PERL%%/NetPacket/IGMP.pm
 +%%SITE_PERL%%/NetPacket/IP.pm
 +%%SITE_PERL%%/NetPacket/SpanningTree.pm
 +%%SITE_PERL%%/NetPacket/Ethernet.pm
 +%%SITE_PERL%%/NetPacket/ICMP.pm
 +%%SITE_PERL%%/NetPacket/ARP.pm
 +%%SITE_PERL%%/NetPacket/LLC.pm
 +%%SITE_PERL%%/NetPacket.pm
 +%%SITE_PERL%%/NetPacket/UDP.pm
 +%%SITE_PERL%%/NetPacket/TCP.pm
 +%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetPacket/.packlist
 + at dirrm %%SITE_PERL%%/NetPacket
 + at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetPacket
 diff -ruN /usr/ports/net/p5-NetPacket/pkg-plist.orig ./pkg-plist.orig
 --- /usr/ports/net/p5-NetPacket/pkg-plist.orig	Thu Jan  1 08:00:00 1970
 +++ ./pkg-plist.orig	Thu Jun 19 08:49:25 2003
 @@ -0,0 +1,11 @@
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/TCP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/UDP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/IP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/ICMP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/IGMP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/Ethernet.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket/ARP.pm
 +lib/perl5/site_perl/%%PERL_VER%%/NetPacket.pm
 +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/NetPacket/.packlist
 + at dirrm lib/perl5/site_perl/%%PERL_VER%%/NetPacket
 + at dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/NetPacket
 
 --ReaqsoxgOBHFXBhH--



More information about the freebsd-ports-bugs mailing list