From e5a51eb7b896ec2bd2b98471177c04e880bfbbef Mon Sep 17 00:00:00 2001 From: Olivier Cochard Date: Mon, 3 Aug 2020 20:34:18 +0000 Subject: [PATCH] New port: net/tcplog_dumper Dump data from the tcp_log device. Sponsored by: Netflix --- net/Makefile | 1 + net/tcplog_dumper/Makefile | 33 +++++++++++++++++++++++++++++++++ net/tcplog_dumper/distinfo | 3 +++ net/tcplog_dumper/pkg-descr | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 net/tcplog_dumper/Makefile create mode 100644 net/tcplog_dumper/distinfo create mode 100644 net/tcplog_dumper/pkg-descr diff --git a/net/Makefile b/net/Makefile index 4c04de9b0129..f2b7953d8dd7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1432,6 +1432,7 @@ SUBDIR += tcpillust SUBDIR += tcping SUBDIR += tcpkali + SUBDIR += tcplog_dumper SUBDIR += tcpmssd SUBDIR += tcpproxy SUBDIR += tcpreen diff --git a/net/tcplog_dumper/Makefile b/net/tcplog_dumper/Makefile new file mode 100644 index 000000000000..f40beea40e76 --- /dev/null +++ b/net/tcplog_dumper/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= tcplog_dumper +PORTVERSION= 0.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= olivier@FreeBSD.org +COMMENT= Dump data from the tcp_log device + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= amd64 + +USE_GITHUB= yes +GH_ACCOUNT= Netflix + +PLIST_FILES= sbin/tcplog_dumper \ + man/man1/tcplog_dumper.1.gz + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300076 +IGNORE= builds only on FreeBSD 13-head with minimum revision 356414 +.endif + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/tcplog_dumper ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/tcplog_dumper.1.gz ${STAGEDIR}${PREFIX}/man/man1 + +.include diff --git a/net/tcplog_dumper/distinfo b/net/tcplog_dumper/distinfo new file mode 100644 index 000000000000..3fc171c68fb5 --- /dev/null +++ b/net/tcplog_dumper/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1595634460 +SHA256 (Netflix-tcplog_dumper-v0.1.0_GH0.tar.gz) = 388ea1dbd5f47ee6141950bbfd414f3f610f2d3a91b1dedef630cddcd5d134b0 +SIZE (Netflix-tcplog_dumper-v0.1.0_GH0.tar.gz) = 19824 diff --git a/net/tcplog_dumper/pkg-descr b/net/tcplog_dumper/pkg-descr new file mode 100644 index 000000000000..d2a1bf2574de --- /dev/null +++ b/net/tcplog_dumper/pkg-descr @@ -0,0 +1,4 @@ +The tcplog_dumper utility pulls data from the tcp_log device and writes +it to disk. net/read_bbrlog can be use to read those pcapng files. + +WWW: https://github.com/Netflix/tcplog_dumper