pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

go-gopacket: Import version 1.1.14



Module Name:	pkgsrc-wip
Committed By:	Min Sik Kim <minskim%NetBSD.org@localhost>
Pushed By:	minskim
Date:		Fri Aug 31 15:36:20 2018 -0700
Changeset:	31ca33f0e3d17019665811c35735d2574c598acc

Modified Files:
	Makefile
Added Files:
	go-gopacket/DESCR
	go-gopacket/Makefile
	go-gopacket/PLIST
	go-gopacket/TODO
	go-gopacket/distinfo

Log Message:
go-gopacket: Import version 1.1.14

Package gopacket provides packet decoding for the Go language.

gopacket contains many sub-packages with additional functionality you
may find useful, including:

* layers: You'll probably use this every time.  This contains of the
    logic built into gopacket for decoding packet protocols.  Note
    that all example code below assumes that you have imported both
    gopacket and gopacket/layers.
* pcap: C bindings to use libpcap to read packets off the wire.
* pfring: C bindings to use PF_RING to read packets off the wire.
* afpacket: C bindings for Linux's AF_PACKET to read packets off the
    wire.
* tcpassembly: TCP stream reassembly

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=31ca33f0e3d17019665811c35735d2574c598acc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile             |   1 +
 go-gopacket/DESCR    |  14 ++++
 go-gopacket/Makefile |  29 +++++++++
 go-gopacket/PLIST    | 178 +++++++++++++++++++++++++++++++++++++++++++++++++++
 go-gopacket/TODO     |   1 +
 go-gopacket/distinfo |   6 ++
 6 files changed, 229 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index bf1c9968d3..d157860d63 100644
--- a/Makefile
+++ b/Makefile
@@ -1026,6 +1026,7 @@ SUBDIR+=	go-collectd
 SUBDIR+=	go-flags
 SUBDIR+=	go-fsnotify
 SUBDIR+=	go-ghodss-yaml
+SUBDIR+=	go-gopacket
 SUBDIR+=	go-humanize
 SUBDIR+=	go-kr-text
 SUBDIR+=	go-log
diff --git a/go-gopacket/DESCR b/go-gopacket/DESCR
new file mode 100644
index 0000000000..7a80a3ae26
--- /dev/null
+++ b/go-gopacket/DESCR
@@ -0,0 +1,14 @@
+Package gopacket provides packet decoding for the Go language.
+
+gopacket contains many sub-packages with additional functionality you
+may find useful, including:
+
+* layers: You'll probably use this every time.  This contains of the
+    logic built into gopacket for decoding packet protocols.  Note
+    that all example code below assumes that you have imported both
+    gopacket and gopacket/layers.
+* pcap: C bindings to use libpcap to read packets off the wire.
+* pfring: C bindings to use PF_RING to read packets off the wire.
+* afpacket: C bindings for Linux's AF_PACKET to read packets off the
+    wire.
+* tcpassembly: TCP stream reassembly
diff --git a/go-gopacket/Makefile b/go-gopacket/Makefile
new file mode 100644
index 0000000000..a24035fb03
--- /dev/null
+++ b/go-gopacket/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=	gopacket-1.1.14
+PKGNAME=	go-${DISTNAME}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=google/}
+CATEGORIES=	net
+GITHUB_PROJECT=	${PKGBASE:S/^go-//}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	minskim%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/google/gopacket
+COMMENT=	Packet processing capabilities for Go
+LICENSE=	modified-bsd
+
+GO_DIST_BASE=	${DISTNAME}
+GO_SRCPATH=	${HOMEPAGE:S,https://,,}
+
+.include "../../devel/go-sys/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+
+.PHONY: post-extract
+post-extract: exclude-subpackages
+exclude-subpackages:
+.for p in examples/pfdump pfring
+	${RM} -r ${WRKDIR}/${DISTNAME}/${p}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/go-gopacket/PLIST b/go-gopacket/PLIST
new file mode 100644
index 0000000000..fd25da8b6a
--- /dev/null
+++ b/go-gopacket/PLIST
@@ -0,0 +1,178 @@
+@comment $NetBSD$
+bin/arpscan
+bin/bidirectional
+bin/bytediff
+bin/gopacket_benchmark
+bin/httpassembly
+bin/pcapdump
+bin/pcaplay
+bin/reassemblydump
+bin/statsassembly
+bin/synscan
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/bsdbpf.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/bytediff.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/dumpcommand.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/examples/util.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/ip4defrag.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/layers.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/macs.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/pcap.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/pcapgo.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/reassembly.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/routing.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/tcpassembly.a
+gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/tcpassembly/tcpreader.a
+gopkg/src/github.com/google/gopacket/AUTHORS
+gopkg/src/github.com/google/gopacket/CONTRIBUTING.md
+gopkg/src/github.com/google/gopacket/LICENSE
+gopkg/src/github.com/google/gopacket/README.md
+gopkg/src/github.com/google/gopacket/afpacket/afpacket.go
+gopkg/src/github.com/google/gopacket/afpacket/afpacket_test.go
+gopkg/src/github.com/google/gopacket/afpacket/header.go
+gopkg/src/github.com/google/gopacket/afpacket/options.go
+gopkg/src/github.com/google/gopacket/afpacket/sockopt_linux.go
+gopkg/src/github.com/google/gopacket/afpacket/sockopt_linux_386.go
+gopkg/src/github.com/google/gopacket/afpacket/sockopt_linux_386.s
+gopkg/src/github.com/google/gopacket/base.go
+gopkg/src/github.com/google/gopacket/benchmark_test.go
+gopkg/src/github.com/google/gopacket/bsdbpf/bsd_bpf_sniffer.go
+gopkg/src/github.com/google/gopacket/bytediff/bytediff.go
+gopkg/src/github.com/google/gopacket/bytediff/bytediff_test.go
+gopkg/src/github.com/google/gopacket/decode.go
+gopkg/src/github.com/google/gopacket/doc.go
+gopkg/src/github.com/google/gopacket/dumpcommand/tcpdump.go
+gopkg/src/github.com/google/gopacket/examples/arpscan/arpscan.go
+gopkg/src/github.com/google/gopacket/examples/bidirectional/main.go
+gopkg/src/github.com/google/gopacket/examples/bytediff/bytediff.png
+gopkg/src/github.com/google/gopacket/examples/bytediff/main.go
+gopkg/src/github.com/google/gopacket/examples/httpassembly/main.go
+gopkg/src/github.com/google/gopacket/examples/pcapdump/main.go
+gopkg/src/github.com/google/gopacket/examples/pcaplay/main.go
+gopkg/src/github.com/google/gopacket/examples/reassemblydump/compare.sh
+gopkg/src/github.com/google/gopacket/examples/reassemblydump/main.go
+gopkg/src/github.com/google/gopacket/examples/statsassembly/main.go
+gopkg/src/github.com/google/gopacket/examples/synscan/main.go
+gopkg/src/github.com/google/gopacket/examples/util/util.go
+gopkg/src/github.com/google/gopacket/flows.go
+gopkg/src/github.com/google/gopacket/gc
+gopkg/src/github.com/google/gopacket/ip4defrag/defrag.go
+gopkg/src/github.com/google/gopacket/ip4defrag/defrag_test.go
+gopkg/src/github.com/google/gopacket/layerclass.go
+gopkg/src/github.com/google/gopacket/layers/.linted
+gopkg/src/github.com/google/gopacket/layers/arp.go
+gopkg/src/github.com/google/gopacket/layers/base.go
+gopkg/src/github.com/google/gopacket/layers/base_test.go
+gopkg/src/github.com/google/gopacket/layers/cdp.go
+gopkg/src/github.com/google/gopacket/layers/ctp.go
+gopkg/src/github.com/google/gopacket/layers/decode_test.go
+gopkg/src/github.com/google/gopacket/layers/dhcp_test.go
+gopkg/src/github.com/google/gopacket/layers/dhcpv4.go
+gopkg/src/github.com/google/gopacket/layers/dns.go
+gopkg/src/github.com/google/gopacket/layers/dns_test.go
+gopkg/src/github.com/google/gopacket/layers/doc.go
+gopkg/src/github.com/google/gopacket/layers/dot11.go
+gopkg/src/github.com/google/gopacket/layers/dot11_test.go
+gopkg/src/github.com/google/gopacket/layers/dot1q.go
+gopkg/src/github.com/google/gopacket/layers/dot1q_test.go
+gopkg/src/github.com/google/gopacket/layers/eap.go
+gopkg/src/github.com/google/gopacket/layers/eapol.go
+gopkg/src/github.com/google/gopacket/layers/endpoints.go
+gopkg/src/github.com/google/gopacket/layers/endpoints_test.go
+gopkg/src/github.com/google/gopacket/layers/enums.go
+gopkg/src/github.com/google/gopacket/layers/etherip.go
+gopkg/src/github.com/google/gopacket/layers/ethernet.go
+gopkg/src/github.com/google/gopacket/layers/fddi.go
+gopkg/src/github.com/google/gopacket/layers/gen.go
+gopkg/src/github.com/google/gopacket/layers/gen_linted.sh
+gopkg/src/github.com/google/gopacket/layers/geneve.go
+gopkg/src/github.com/google/gopacket/layers/geneve_test.go
+gopkg/src/github.com/google/gopacket/layers/gre.go
+gopkg/src/github.com/google/gopacket/layers/gre_test.go
+gopkg/src/github.com/google/gopacket/layers/iana_ports.go
+gopkg/src/github.com/google/gopacket/layers/icmp4.go
+gopkg/src/github.com/google/gopacket/layers/icmp6.go
+gopkg/src/github.com/google/gopacket/layers/icmp6_test.go
+gopkg/src/github.com/google/gopacket/layers/igmp.go
+gopkg/src/github.com/google/gopacket/layers/igmp_test.go
+gopkg/src/github.com/google/gopacket/layers/ip4.go
+gopkg/src/github.com/google/gopacket/layers/ip4_test.go
+gopkg/src/github.com/google/gopacket/layers/ip6.go
+gopkg/src/github.com/google/gopacket/layers/ip6_test.go
+gopkg/src/github.com/google/gopacket/layers/ipsec.go
+gopkg/src/github.com/google/gopacket/layers/ipsec_test.go
+gopkg/src/github.com/google/gopacket/layers/layertypes.go
+gopkg/src/github.com/google/gopacket/layers/linux_sll.go
+gopkg/src/github.com/google/gopacket/layers/llc.go
+gopkg/src/github.com/google/gopacket/layers/lldp.go
+gopkg/src/github.com/google/gopacket/layers/loopback.go
+gopkg/src/github.com/google/gopacket/layers/mpls.go
+gopkg/src/github.com/google/gopacket/layers/mpls_test.go
+gopkg/src/github.com/google/gopacket/layers/ndp.go
+gopkg/src/github.com/google/gopacket/layers/ntp.go
+gopkg/src/github.com/google/gopacket/layers/ntp_test.go
+gopkg/src/github.com/google/gopacket/layers/pflog.go
+gopkg/src/github.com/google/gopacket/layers/ports.go
+gopkg/src/github.com/google/gopacket/layers/ppp.go
+gopkg/src/github.com/google/gopacket/layers/pppoe.go
+gopkg/src/github.com/google/gopacket/layers/prism.go
+gopkg/src/github.com/google/gopacket/layers/prism_test.go
+gopkg/src/github.com/google/gopacket/layers/radiotap.go
+gopkg/src/github.com/google/gopacket/layers/radiotap_test.go
+gopkg/src/github.com/google/gopacket/layers/rudp.go
+gopkg/src/github.com/google/gopacket/layers/sctp.go
+gopkg/src/github.com/google/gopacket/layers/sflow.go
+gopkg/src/github.com/google/gopacket/layers/sflow_test.go
+gopkg/src/github.com/google/gopacket/layers/stp.go
+gopkg/src/github.com/google/gopacket/layers/tcp.go
+gopkg/src/github.com/google/gopacket/layers/tcp_test.go
+gopkg/src/github.com/google/gopacket/layers/tcpip.go
+gopkg/src/github.com/google/gopacket/layers/tcpip_test.go
+gopkg/src/github.com/google/gopacket/layers/test_creator.py
+gopkg/src/github.com/google/gopacket/layers/udp.go
+gopkg/src/github.com/google/gopacket/layers/udp_test.go
+gopkg/src/github.com/google/gopacket/layers/udplite.go
+gopkg/src/github.com/google/gopacket/layers/usb.go
+gopkg/src/github.com/google/gopacket/layers/usb_test.go
+gopkg/src/github.com/google/gopacket/layers/vrrp.go
+gopkg/src/github.com/google/gopacket/layers/vrrp_test.go
+gopkg/src/github.com/google/gopacket/layers/vxlan.go
+gopkg/src/github.com/google/gopacket/layers/vxlan_test.go
+gopkg/src/github.com/google/gopacket/layertype.go
+gopkg/src/github.com/google/gopacket/macs/benchmark_test.go
+gopkg/src/github.com/google/gopacket/macs/doc.go
+gopkg/src/github.com/google/gopacket/macs/gen.go
+gopkg/src/github.com/google/gopacket/macs/valid_mac_prefixes.go
+gopkg/src/github.com/google/gopacket/packet.go
+gopkg/src/github.com/google/gopacket/packet_test.go
+gopkg/src/github.com/google/gopacket/parser.go
+gopkg/src/github.com/google/gopacket/pcap/doc.go
+gopkg/src/github.com/google/gopacket/pcap/gopacket_benchmark/benchmark.go
+gopkg/src/github.com/google/gopacket/pcap/pcap.go
+gopkg/src/github.com/google/gopacket/pcap/pcap_test.go
+gopkg/src/github.com/google/gopacket/pcap/pcap_tester.go
+gopkg/src/github.com/google/gopacket/pcap/pcap_unix.go
+gopkg/src/github.com/google/gopacket/pcap/pcap_windows.go
+gopkg/src/github.com/google/gopacket/pcap/pcapgo_test.go
+gopkg/src/github.com/google/gopacket/pcap/test_dns.pcap
+gopkg/src/github.com/google/gopacket/pcap/test_ethernet.pcap
+gopkg/src/github.com/google/gopacket/pcap/test_loopback.pcap
+gopkg/src/github.com/google/gopacket/pcapgo/read.go
+gopkg/src/github.com/google/gopacket/pcapgo/read_test.go
+gopkg/src/github.com/google/gopacket/pcapgo/write.go
+gopkg/src/github.com/google/gopacket/pcapgo/write_test.go
+gopkg/src/github.com/google/gopacket/reassembly/cap2test.go
+gopkg/src/github.com/google/gopacket/reassembly/memory.go
+gopkg/src/github.com/google/gopacket/reassembly/tcpassembly.go
+gopkg/src/github.com/google/gopacket/reassembly/tcpassembly_test.go
+gopkg/src/github.com/google/gopacket/reassembly/tcpcheck.go
+gopkg/src/github.com/google/gopacket/reassembly/tcpcheck_test.go
+gopkg/src/github.com/google/gopacket/routing/common.go
+gopkg/src/github.com/google/gopacket/routing/other.go
+gopkg/src/github.com/google/gopacket/routing/routing.go
+gopkg/src/github.com/google/gopacket/tcpassembly/assembly.go
+gopkg/src/github.com/google/gopacket/tcpassembly/assembly_test.go
+gopkg/src/github.com/google/gopacket/tcpassembly/tcpreader/reader.go
+gopkg/src/github.com/google/gopacket/tcpassembly/tcpreader/reader_test.go
+gopkg/src/github.com/google/gopacket/writer.go
+gopkg/src/github.com/google/gopacket/writer_test.go
diff --git a/go-gopacket/TODO b/go-gopacket/TODO
new file mode 100644
index 0000000000..2506748c98
--- /dev/null
+++ b/go-gopacket/TODO
@@ -0,0 +1 @@
+Enable pfring on supported platforms.
diff --git a/go-gopacket/distinfo b/go-gopacket/distinfo
new file mode 100644
index 0000000000..8aaf602fae
--- /dev/null
+++ b/go-gopacket/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/08/17 01:20:57 gavan Exp $
+
+SHA1 (gopacket-1.1.14.tar.gz) = ba94a8caeffa94664d9e6f8dc18c5c26372623de
+RMD160 (gopacket-1.1.14.tar.gz) = 47ccba7e0237b1fee92b5df7f8358a243d4b4992
+SHA512 (gopacket-1.1.14.tar.gz) = fda58ad503e2547b0e09e511a2ffe5b2e6fa7ba1df3cbf26ae6e08075420586f0f1f553914ee969fcfbdd0a344e240a0d11ae85266c926f138d3efe6afa250b2
+Size (gopacket-1.1.14.tar.gz) = 748336 bytes


Home | Main Index | Thread Index | Old Index