Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2005 11:41:51 +0100 (CET)
From:      GomoR <gomor@enslaved.homeunix.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77095: New port: net/p5-Net-Packet [requires ports/76979] a framework to easily send and receive frames from layer 2 to layer 7
Message-ID:  <200502041041.j14AfpT1047765@enslaved.homeunix.org>
Resent-Message-ID: <200502041050.j14AoNkH051210@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77095
>Category:       ports
>Synopsis:       New port: net/p5-Net-Packet [requires ports/76979] a framework to easily send and receive frames from layer 2 to layer 7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 04 10:50:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     GomoR
>Release:        FreeBSD 5.3-RELEASE-p4 i386
>Organization:
myself
>Environment:
System: FreeBSD dani.enslaved.lan 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #9: Mon Jan 10 15:23:56 CET 2005 gomor@dani.enslaved.lan:/usr/obj/usr/src/sys/DANI i386

>Description:
This module is a unified framework to craft, send and receive packets at
layers 2, 3, 4 and 7.

Basically, you forge each layer of a frame (Net::Packet::IPv4 for layer 3,
Net::Packet::TCP for layer 4 ; for example), and pack all of this into a
Net::Packet::Frame object. Then, you can send the frame to the network, and
receive it easily, since the response is automatically searched for and
matched against the request.
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/net/p5-Net-Packet
#	/usr/ports/net/p5-Net-Packet/Makefile
#	/usr/ports/net/p5-Net-Packet/distinfo
#	/usr/ports/net/p5-Net-Packet/pkg-descr
#	/usr/ports/net/p5-Net-Packet/pkg-plist
#
echo c - /usr/ports/net/p5-Net-Packet
mkdir -p /usr/ports/net/p5-Net-Packet > /dev/null 2>&1
echo x - /usr/ports/net/p5-Net-Packet/Makefile
sed 's/^X//' >/usr/ports/net/p5-Net-Packet/Makefile << 'END-of-/usr/ports/net/p5-Net-Packet/Makefile'
X# New ports collection makefile for:	Net-Packet
X# Date created:							01 Feb 2005
X# Whom:									GomoR <netpkt@gomor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=			Net-Packet
XPORTVERSION=		2.03
XCATEGORIES=			net perl5
XMASTER_SITES=		${MASTER_SITE_PERL_CPAN} http://www.gomor.org/netpkt/
XMASTER_SITE_SUBDIR=	Net
XPKGNAMEPREFIX=		p5-
XONLY_FOR_ARCHS=		i386
X
XBUILD_DEPENDS+= ${SITE_PERL}/Class/Gomor/Hash.pm:${PORTSDIR}/devel/p5-Class-Gomor-Hash
XBUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Interface.pm:${PORTSDIR}/net/p5-IO-Interface
XBUILD_DEPENDS+= ${SITE_PERL}/Net/IPv6Addr.pm:${PORTSDIR}/net-mgmt/p5-Net-IPv6Addr
XBUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/Pcap.pm:${PORTSDIR}/net/p5-Net-Pcap
XBUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6
XBUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
X
XRUN_DEPENDS+=	${SITE_PERL}/Class/Gomor/Hash.pm:${PORTSDIR}/devel/p5-Class-Gomor-Hash
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Interface.pm:${PORTSDIR}/net/p5-IO-Interface
XRUN_DEPENDS+=	${SITE_PERL}/Net/IPv6Addr.pm:${PORTSDIR}/net-mgmt/p5-Net-IPv6Addr
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Net/Pcap.pm:${PORTSDIR}/net/p5-Net-Pcap
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
X
XMAINTAINER=	netpkt@gomor.org
XCOMMENT=	A framework to easily send and receive frames from layer 2 to layer 7
X
XPERL_CONFIGURE=	yes
X
XMAN3=	Net::Packet.3 \
X		Net::Packet::ARP.3 \
X		Net::Packet::Consts.3 \
X		Net::Packet::Desc.3 \
X		Net::Packet::DescL2.3 \
X		Net::Packet::DescL3.3 \
X		Net::Packet::DescL4.3 \
X		Net::Packet::Dump.3 \
X		Net::Packet::ETH.3 \
X		Net::Packet::Env.3 \
X		Net::Packet::Frame.3 \
X		Net::Packet::ICMPv4.3 \
X		Net::Packet::IPv4.3 \
X		Net::Packet::IPv6.3 \
X		Net::Packet::Layer.3 \
X		Net::Packet::Layer2.3 \
X		Net::Packet::Layer3.3 \
X		Net::Packet::Layer4.3 \
X		Net::Packet::Layer7.3 \
X		Net::Packet::NULL.3 \
X		Net::Packet::RAW.3 \
X		Net::Packet::SLL.3 \
X		Net::Packet::TCP.3 \
X		Net::Packet::UDP.3 \
X		Net::Packet::Utils.3 \
X		Net::Packet::VLAN.3 \
X		Net::Pkt.3
X
X.include <bsd.port.mk>
END-of-/usr/ports/net/p5-Net-Packet/Makefile
echo x - /usr/ports/net/p5-Net-Packet/distinfo
sed 's/^X//' >/usr/ports/net/p5-Net-Packet/distinfo << 'END-of-/usr/ports/net/p5-Net-Packet/distinfo'
XMD5 (Net-Packet-2.03.tar.gz) = 4af49a8b8c293d47fa3abf3bed3cd008
XSIZE (Net-Packet-2.03.tar.gz) = 50976
END-of-/usr/ports/net/p5-Net-Packet/distinfo
echo x - /usr/ports/net/p5-Net-Packet/pkg-descr
sed 's/^X//' >/usr/ports/net/p5-Net-Packet/pkg-descr << 'END-of-/usr/ports/net/p5-Net-Packet/pkg-descr'
XThis module is a unified framework to craft, send and receive packets at
Xlayers 2, 3, 4 and 7.
X
XBasically, you forge each layer of a frame (Net::Packet::IPv4 for layer 3,
XNet::Packet::TCP for layer 4 ; for example), and pack all of this into a
XNet::Packet::Frame object. Then, you can send the frame to the network, and
Xreceive it easily, since the response is automatically searched for and
Xmatched against the request.
X
XWWW: http://search.cpan.org/~gomor/
X
X- GomoR
Xnetpkt@gomor.org
END-of-/usr/ports/net/p5-Net-Packet/pkg-descr
echo x - /usr/ports/net/p5-Net-Packet/pkg-plist
sed 's/^X//' >/usr/ports/net/p5-Net-Packet/pkg-plist << 'END-of-/usr/ports/net/p5-Net-Packet/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ARP.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Consts.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Desc.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL2.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL3.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL4.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Dump.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ETH.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Env.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Frame.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ICMPv4.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/IPv4.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/IPv6.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer2.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer3.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer4.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer7.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/NULL.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/RAW.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/SLL.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/TCP.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/UDP.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Utils.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/VLAN.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Net/Pkt.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/.packlist
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/Packet.bs
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/Packet.so
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/autosplit.ix
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Net 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net 2>/dev/null || true
END-of-/usr/ports/net/p5-Net-Packet/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502041041.j14AfpT1047765>