Index: head/net/Makefile =================================================================== --- head/net/Makefile +++ head/net/Makefile @@ -1441,6 +1441,7 @@ SUBDIR += tcpmssd SUBDIR += tcpproxy SUBDIR += tcpreen + SUBDIR += tcprtt SUBDIR += tcpsg SUBDIR += tcpshow SUBDIR += tcpslice Index: head/net/tcprtt/Makefile =================================================================== --- head/net/tcprtt/Makefile +++ head/net/tcprtt/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= tcprtt +DISTVERSION= g20191022 +CATEGORIES= net + +MAINTAINER= rs@netflix.com +COMMENT= Measures the TCP handshake RTT using the stats(9) statistics framework + +LICENSE= BSD2CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= KlaraSystems +GH_TAGNAME= 1c857b8bd6e071290d118c96c051fbdf7db40129 + +PLIST_FILES= bin/tcprtt man/man8/${PORTNAME}.8.gz + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300062 +IGNORE= not supported on older CURRENT, no kernel support +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tcprtt ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/tcprtt.8 ${STAGEDIR}${PREFIX}/man/man8 + +.include Index: head/net/tcprtt/distinfo =================================================================== --- head/net/tcprtt/distinfo +++ head/net/tcprtt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1571703393 +SHA256 (KlaraSystems-tcprtt-g20191022-1c857b8bd6e071290d118c96c051fbdf7db40129_GH0.tar.gz) = 40c42bcaa1869ad59f72d6559ec31e0a242ecd2534a0bcbb7b3bf944bca3aae2 +SIZE (KlaraSystems-tcprtt-g20191022-1c857b8bd6e071290d118c96c051fbdf7db40129_GH0.tar.gz) = 3476 Index: head/net/tcprtt/pkg-descr =================================================================== --- head/net/tcprtt/pkg-descr +++ head/net/tcprtt/pkg-descr @@ -0,0 +1,2 @@ +The tcprtt utility reliably measures the TCP handshake round trip time +using the stats(9) statistics framework.