diff options
author | pettai <pettai@pkgsrc.org> | 2010-03-11 11:31:19 +0000 |
---|---|---|
committer | pettai <pettai@pkgsrc.org> | 2010-03-11 11:31:19 +0000 |
commit | c479e33538169efa86450b650bbb59b4687997c9 (patch) | |
tree | 1d650957e61e39aeca1f347cb3101497e18f427f /net | |
parent | f5bba413f2082f42d34ef22e0a9930e7be4fed8c (diff) | |
download | pkgsrc-c479e33538169efa86450b650bbb59b4687997c9.tar.gz |
Fast, simple packet creation / parsing, with definitions for
the basic TCP/IP protocols.
Diffstat (limited to 'net')
-rw-r--r-- | net/py-dpkt/DESCR | 2 | ||||
-rw-r--r-- | net/py-dpkt/Makefile | 22 | ||||
-rw-r--r-- | net/py-dpkt/PLIST | 175 | ||||
-rw-r--r-- | net/py-dpkt/distinfo | 6 | ||||
-rw-r--r-- | net/py-dpkt/patches/patch-aa | 34 |
5 files changed, 239 insertions, 0 deletions
diff --git a/net/py-dpkt/DESCR b/net/py-dpkt/DESCR new file mode 100644 index 00000000000..90848a58c42 --- /dev/null +++ b/net/py-dpkt/DESCR @@ -0,0 +1,2 @@ +Fast, simple packet creation / parsing, with definitions for +the basic TCP/IP protocols. diff --git a/net/py-dpkt/Makefile b/net/py-dpkt/Makefile new file mode 100644 index 00000000000..98185b278d3 --- /dev/null +++ b/net/py-dpkt/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/03/11 11:31:19 pettai Exp $ +# + +DISTNAME= dpkt-1.6 +PKGNAME= ${PYPKGPREFIX}-dpkt-1.6 +CATEGORIES= net python +MASTER_SITES= http://dpkt.googlecode.com/files/ + +MAINTAINER= pettai@NetBSD.org +HOMEPAGE= http://code.google.com/p/dpkt/ +COMMENT= Python packet creation / parsing library +LICENSE= modified-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +PYDISTUTILSPKG= yes + +USE_LANGUAGES= # none + +.include "../../lang/python/extension.mk" +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/py-dpkt/PLIST b/net/py-dpkt/PLIST new file mode 100644 index 00000000000..8988a6ba31b --- /dev/null +++ b/net/py-dpkt/PLIST @@ -0,0 +1,175 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/11 11:31:19 pettai Exp $ +${PYSITELIB}/dpkt/__init__.py +${PYSITELIB}/dpkt/__init__.pyc +${PYSITELIB}/dpkt/__init__.pyo +${PYSITELIB}/dpkt/ah.py +${PYSITELIB}/dpkt/ah.pyc +${PYSITELIB}/dpkt/ah.pyo +${PYSITELIB}/dpkt/aim.py +${PYSITELIB}/dpkt/aim.pyc +${PYSITELIB}/dpkt/aim.pyo +${PYSITELIB}/dpkt/arp.py +${PYSITELIB}/dpkt/arp.pyc +${PYSITELIB}/dpkt/arp.pyo +${PYSITELIB}/dpkt/asn1.py +${PYSITELIB}/dpkt/asn1.pyc +${PYSITELIB}/dpkt/asn1.pyo +${PYSITELIB}/dpkt/bgp.py +${PYSITELIB}/dpkt/bgp.pyc +${PYSITELIB}/dpkt/bgp.pyo +${PYSITELIB}/dpkt/cdp.py +${PYSITELIB}/dpkt/cdp.pyc +${PYSITELIB}/dpkt/cdp.pyo +${PYSITELIB}/dpkt/crc32c.py +${PYSITELIB}/dpkt/crc32c.pyc +${PYSITELIB}/dpkt/crc32c.pyo +${PYSITELIB}/dpkt/dhcp.py +${PYSITELIB}/dpkt/dhcp.pyc +${PYSITELIB}/dpkt/dhcp.pyo +${PYSITELIB}/dpkt/diameter.py +${PYSITELIB}/dpkt/diameter.pyc +${PYSITELIB}/dpkt/diameter.pyo +${PYSITELIB}/dpkt/dns.py +${PYSITELIB}/dpkt/dns.pyc +${PYSITELIB}/dpkt/dns.pyo +${PYSITELIB}/dpkt/dpkt.py +${PYSITELIB}/dpkt/dpkt.pyc +${PYSITELIB}/dpkt/dpkt.pyo +${PYSITELIB}/dpkt/dtp.py +${PYSITELIB}/dpkt/dtp.pyc +${PYSITELIB}/dpkt/dtp.pyo +${PYSITELIB}/dpkt/esp.py +${PYSITELIB}/dpkt/esp.pyc +${PYSITELIB}/dpkt/esp.pyo +${PYSITELIB}/dpkt/ethernet.py +${PYSITELIB}/dpkt/ethernet.pyc +${PYSITELIB}/dpkt/ethernet.pyo +${PYSITELIB}/dpkt/gre.py +${PYSITELIB}/dpkt/gre.pyc +${PYSITELIB}/dpkt/gre.pyo +${PYSITELIB}/dpkt/gzip.py +${PYSITELIB}/dpkt/gzip.pyc +${PYSITELIB}/dpkt/gzip.pyo +${PYSITELIB}/dpkt/h225.py +${PYSITELIB}/dpkt/h225.pyc +${PYSITELIB}/dpkt/h225.pyo +${PYSITELIB}/dpkt/hsrp.py +${PYSITELIB}/dpkt/hsrp.pyc +${PYSITELIB}/dpkt/hsrp.pyo +${PYSITELIB}/dpkt/http.py +${PYSITELIB}/dpkt/http.pyc +${PYSITELIB}/dpkt/http.pyo +${PYSITELIB}/dpkt/icmp.py +${PYSITELIB}/dpkt/icmp.pyc +${PYSITELIB}/dpkt/icmp.pyo +${PYSITELIB}/dpkt/icmp6.py +${PYSITELIB}/dpkt/icmp6.pyc +${PYSITELIB}/dpkt/icmp6.pyo +${PYSITELIB}/dpkt/igmp.py +${PYSITELIB}/dpkt/igmp.pyc +${PYSITELIB}/dpkt/igmp.pyo +${PYSITELIB}/dpkt/ip.py +${PYSITELIB}/dpkt/ip.pyc +${PYSITELIB}/dpkt/ip.pyo +${PYSITELIB}/dpkt/ip6.py +${PYSITELIB}/dpkt/ip6.pyc +${PYSITELIB}/dpkt/ip6.pyo +${PYSITELIB}/dpkt/ipx.py +${PYSITELIB}/dpkt/ipx.pyc +${PYSITELIB}/dpkt/ipx.pyo +${PYSITELIB}/dpkt/loopback.py +${PYSITELIB}/dpkt/loopback.pyc +${PYSITELIB}/dpkt/loopback.pyo +${PYSITELIB}/dpkt/mrt.py +${PYSITELIB}/dpkt/mrt.pyc +${PYSITELIB}/dpkt/mrt.pyo +${PYSITELIB}/dpkt/netbios.py +${PYSITELIB}/dpkt/netbios.pyc +${PYSITELIB}/dpkt/netbios.pyo +${PYSITELIB}/dpkt/netflow.py +${PYSITELIB}/dpkt/netflow.pyc +${PYSITELIB}/dpkt/netflow.pyo +${PYSITELIB}/dpkt/ntp.py +${PYSITELIB}/dpkt/ntp.pyc +${PYSITELIB}/dpkt/ntp.pyo +${PYSITELIB}/dpkt/ospf.py +${PYSITELIB}/dpkt/ospf.pyc +${PYSITELIB}/dpkt/ospf.pyo +${PYSITELIB}/dpkt/pcap.py +${PYSITELIB}/dpkt/pcap.pyc +${PYSITELIB}/dpkt/pcap.pyo +${PYSITELIB}/dpkt/pim.py +${PYSITELIB}/dpkt/pim.pyc +${PYSITELIB}/dpkt/pim.pyo +${PYSITELIB}/dpkt/pmap.py +${PYSITELIB}/dpkt/pmap.pyc +${PYSITELIB}/dpkt/pmap.pyo +${PYSITELIB}/dpkt/ppp.py +${PYSITELIB}/dpkt/ppp.pyc +${PYSITELIB}/dpkt/ppp.pyo +${PYSITELIB}/dpkt/pppoe.py +${PYSITELIB}/dpkt/pppoe.pyc +${PYSITELIB}/dpkt/pppoe.pyo +${PYSITELIB}/dpkt/qq.py +${PYSITELIB}/dpkt/qq.pyc +${PYSITELIB}/dpkt/qq.pyo +${PYSITELIB}/dpkt/radius.py +${PYSITELIB}/dpkt/radius.pyc +${PYSITELIB}/dpkt/radius.pyo +${PYSITELIB}/dpkt/rip.py +${PYSITELIB}/dpkt/rip.pyc +${PYSITELIB}/dpkt/rip.pyo +${PYSITELIB}/dpkt/rpc.py +${PYSITELIB}/dpkt/rpc.pyc +${PYSITELIB}/dpkt/rpc.pyo +${PYSITELIB}/dpkt/rtp.py +${PYSITELIB}/dpkt/rtp.pyc +${PYSITELIB}/dpkt/rtp.pyo +${PYSITELIB}/dpkt/sccp.py +${PYSITELIB}/dpkt/sccp.pyc +${PYSITELIB}/dpkt/sccp.pyo +${PYSITELIB}/dpkt/sctp.py +${PYSITELIB}/dpkt/sctp.pyc +${PYSITELIB}/dpkt/sctp.pyo +${PYSITELIB}/dpkt/sip.py +${PYSITELIB}/dpkt/sip.pyc +${PYSITELIB}/dpkt/sip.pyo +${PYSITELIB}/dpkt/sll.py +${PYSITELIB}/dpkt/sll.pyc +${PYSITELIB}/dpkt/sll.pyo +${PYSITELIB}/dpkt/smb.py +${PYSITELIB}/dpkt/smb.pyc +${PYSITELIB}/dpkt/smb.pyo +${PYSITELIB}/dpkt/ssl.py +${PYSITELIB}/dpkt/ssl.pyc +${PYSITELIB}/dpkt/ssl.pyo +${PYSITELIB}/dpkt/stp.py +${PYSITELIB}/dpkt/stp.pyc +${PYSITELIB}/dpkt/stp.pyo +${PYSITELIB}/dpkt/stun.py +${PYSITELIB}/dpkt/stun.pyc +${PYSITELIB}/dpkt/stun.pyo +${PYSITELIB}/dpkt/tcp.py +${PYSITELIB}/dpkt/tcp.pyc +${PYSITELIB}/dpkt/tcp.pyo +${PYSITELIB}/dpkt/telnet.py +${PYSITELIB}/dpkt/telnet.pyc +${PYSITELIB}/dpkt/telnet.pyo +${PYSITELIB}/dpkt/tftp.py +${PYSITELIB}/dpkt/tftp.pyc +${PYSITELIB}/dpkt/tftp.pyo +${PYSITELIB}/dpkt/tns.py +${PYSITELIB}/dpkt/tns.pyc +${PYSITELIB}/dpkt/tns.pyo +${PYSITELIB}/dpkt/tpkt.py +${PYSITELIB}/dpkt/tpkt.pyc +${PYSITELIB}/dpkt/tpkt.pyo +${PYSITELIB}/dpkt/udp.py +${PYSITELIB}/dpkt/udp.pyc +${PYSITELIB}/dpkt/udp.pyo +${PYSITELIB}/dpkt/vrrp.py +${PYSITELIB}/dpkt/vrrp.pyc +${PYSITELIB}/dpkt/vrrp.pyo +${PYSITELIB}/dpkt/yahoo.py +${PYSITELIB}/dpkt/yahoo.pyc +${PYSITELIB}/dpkt/yahoo.pyo diff --git a/net/py-dpkt/distinfo b/net/py-dpkt/distinfo new file mode 100644 index 00000000000..70f949f96ce --- /dev/null +++ b/net/py-dpkt/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/03/11 11:31:19 pettai Exp $ + +SHA1 (dpkt-1.6.tar.gz) = 2a5ee8b44968b38ad4ee15112212ffc0ed2d8a5a +RMD160 (dpkt-1.6.tar.gz) = e6e5f5a5d439d7c6eb165f5899903c167fd21551 +Size (dpkt-1.6.tar.gz) = 116518 bytes +SHA1 (patch-aa) = 0e85ce2df69538e65a8a4ac933d63da9c27c14c2 diff --git a/net/py-dpkt/patches/patch-aa b/net/py-dpkt/patches/patch-aa new file mode 100644 index 00000000000..2d7a1f4a5b2 --- /dev/null +++ b/net/py-dpkt/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/03/11 11:31:19 pettai Exp $ + +# 'as' became a reserved keyword in newer python versions +# + +--- dpkt/bgp.py.orig 2010-02-13 21:32:43.000000000 +0100 ++++ dpkt/bgp.py 2010-02-13 21:33:17.000000000 +0100 +@@ -140,7 +140,7 @@ + class Open(dpkt.Packet): + __hdr__ = ( + ('v', 'B', 4), +- ('as', 'H', 0), ++ ('AS', 'H', 0), + ('holdtime', 'H', 0), + ('identifier', 'I', 0), + ('param_len', 'B', 0) +@@ -675,7 +675,7 @@ + self.failUnless(a.len == 12) + self.failUnless(len(a.communities.list) == 3) + c = a.communities.list[0] +- self.failUnless(c.as == 65215) ++ self.failUnless(c.AS == 65215) + self.failUnless(c.value == 1) + r = b2.update.announced[0] + self.failUnless(r.len == 22) +@@ -712,7 +712,7 @@ + b4 = BGP(self.bgp4) + self.failUnless(b4.len == 45) + self.failUnless(b4.type == OPEN) +- self.failUnless(b4.open.as == 237) ++ self.failUnless(b4.open.AS == 237) + self.failUnless(b4.open.param_len == 16) + self.failUnless(len(b4.open.parameters) == 3) + p = b4.open.parameters[0] |