aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/p5-Net-Packet/Makefile58
-rw-r--r--net/p5-Net-Packet/distinfo2
-rw-r--r--net/p5-Net-Packet/pkg-descr13
-rw-r--r--net/p5-Net-Packet/pkg-plist35
5 files changed, 109 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index b82566c0804c..55105915c418 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -485,6 +485,7 @@
SUBDIR += p5-Net-MSN
SUBDIR += p5-Net-MovableType
SUBDIR += p5-Net-OSCAR
+ SUBDIR += p5-Net-Packet
SUBDIR += p5-Net-ParseWhois
SUBDIR += p5-Net-Patricia
SUBDIR += p5-Net-Pcap
diff --git a/net/p5-Net-Packet/Makefile b/net/p5-Net-Packet/Makefile
new file mode 100644
index 000000000000..3475b52c286c
--- /dev/null
+++ b/net/p5-Net-Packet/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: Net-Packet
+# Date created: 01 Feb 2005
+# Whom: GomoR <netpkt@gomor.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Net-Packet
+PORTVERSION= 2.03
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
+ http://www.gomor.org/netpkt/
+MASTER_SITE_SUBDIR= Net
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= netpkt@gomor.org
+COMMENT= A framework to easily send and receive frames from layer 2 to layer 7
+
+BUILD_DEPENDS= ${SITE_PERL}/Class/Gomor/Hash.pm:${PORTSDIR}/devel/p5-Class-Gomor-Hash \
+ ${SITE_PERL}/${PERL_ARCH}/IO/Interface.pm:${PORTSDIR}/net/p5-IO-Interface \
+ ${SITE_PERL}/Net/IPv6Addr.pm:${PORTSDIR}/net-mgmt/p5-Net-IPv6Addr \
+ ${SITE_PERL}/${PERL_ARCH}/Net/Pcap.pm:${PORTSDIR}/net/p5-Net-Pcap \
+ ${SITE_PERL}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6 \
+ ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+ONLY_FOR_ARCHS= i386
+
+MAN3= Net::Packet.3 \
+ Net::Packet::ARP.3 \
+ Net::Packet::Consts.3 \
+ Net::Packet::Desc.3 \
+ Net::Packet::DescL2.3 \
+ Net::Packet::DescL3.3 \
+ Net::Packet::DescL4.3 \
+ Net::Packet::Dump.3 \
+ Net::Packet::ETH.3 \
+ Net::Packet::Env.3 \
+ Net::Packet::Frame.3 \
+ Net::Packet::ICMPv4.3 \
+ Net::Packet::IPv4.3 \
+ Net::Packet::IPv6.3 \
+ Net::Packet::Layer.3 \
+ Net::Packet::Layer2.3 \
+ Net::Packet::Layer3.3 \
+ Net::Packet::Layer4.3 \
+ Net::Packet::Layer7.3 \
+ Net::Packet::NULL.3 \
+ Net::Packet::RAW.3 \
+ Net::Packet::SLL.3 \
+ Net::Packet::TCP.3 \
+ Net::Packet::UDP.3 \
+ Net::Packet::Utils.3 \
+ Net::Packet::VLAN.3 \
+ Net::Pkt.3
+
+.include <bsd.port.mk>
diff --git a/net/p5-Net-Packet/distinfo b/net/p5-Net-Packet/distinfo
new file mode 100644
index 000000000000..d42d28e5e416
--- /dev/null
+++ b/net/p5-Net-Packet/distinfo
@@ -0,0 +1,2 @@
+MD5 (Net-Packet-2.03.tar.gz) = 4af49a8b8c293d47fa3abf3bed3cd008
+SIZE (Net-Packet-2.03.tar.gz) = 50976
diff --git a/net/p5-Net-Packet/pkg-descr b/net/p5-Net-Packet/pkg-descr
new file mode 100644
index 000000000000..3c4ba3a910d6
--- /dev/null
+++ b/net/p5-Net-Packet/pkg-descr
@@ -0,0 +1,13 @@
+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.
+
+WWW: http://search.cpan.org/~gomor/
+
+- GomoR
+netpkt@gomor.org
diff --git a/net/p5-Net-Packet/pkg-plist b/net/p5-Net-Packet/pkg-plist
new file mode 100644
index 000000000000..996c7d4a1862
--- /dev/null
+++ b/net/p5-Net-Packet/pkg-plist
@@ -0,0 +1,35 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ARP.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Consts.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Desc.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL2.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL3.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/DescL4.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Dump.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ETH.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Env.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Frame.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/ICMPv4.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/IPv4.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/IPv6.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer2.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer3.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer4.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Layer7.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/NULL.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/RAW.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/SLL.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/TCP.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/UDP.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/Utils.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet/VLAN.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Net/Pkt.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/Packet.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/Packet.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet/autosplit.ix
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Net/Packet
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Packet
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Net 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net 2>/dev/null || true