Index: head/security/chaosreader/Makefile =================================================================== --- head/security/chaosreader/Makefile (revision 429912) +++ head/security/chaosreader/Makefile (revision 429913) @@ -1,31 +1,31 @@ # Created by: pauls # $FreeBSD$ PORTNAME= chaosreader -PORTVERSION= 0.94 -PORTREVISION= 1 +PORTVERSION= 0.96 CATEGORIES= security -MASTER_SITES= SF -DISTFILES= ${PORTNAME}${PORTVERSION} sshkeydata0.20 -EXTRACT_ONLY= -MAINTAINER= ports@FreeBSD.org +MAINTAINER= dbaio@bsd.com.br COMMENT= Tool to extract data from tcpdump logs +LICENSE= GPLv3+ + +RUN_DEPENDS= p5-Net-DNS>=0:dns/p5-Net-DNS + NO_BUILD= yes USES= perl5 shebangfix USE_PERL5= run +NO_ARCH= yes -NO_WRKSUBDIR= yes -PLIST_FILES= bin/${PORTNAME} bin/sshkeydata -SHEBANG_FILES= chaosreader sshkeydata +USE_GITHUB= yes +GH_ACCOUNT= brendangregg +GH_PROJECT= Chaosreader +GH_TAGNAME= 027a5e24abf399f4c1ebf199c0cd95d5888bebec -post-extract: - @${CP} ${DISTDIR}/${PORTNAME}${PORTVERSION} ${WRKSRC}/${PORTNAME} - @${CP} ${DISTDIR}/sshkeydata0.20 ${WRKSRC}/sshkeydata +PLIST_FILES= bin/${PORTNAME} +SHEBANG_FILES= chaosreader do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/sshkeydata ${STAGEDIR}${PREFIX}/bin .include Index: head/security/chaosreader/distinfo =================================================================== --- head/security/chaosreader/distinfo (revision 429912) +++ head/security/chaosreader/distinfo (revision 429913) @@ -1,4 +1,3 @@ -SHA256 (chaosreader0.94) = e84e2044aec3371ea5505d7d7db2c746d62ee1d24c970b90775e25c3625ab982 -SIZE (chaosreader0.94) = 185986 -SHA256 (sshkeydata0.20) = 324b6b7b4110dbfbb9ca93309853b651d290018b4d0d3fe68ae3078fca27e36d -SIZE (sshkeydata0.20) = 11341 +TIMESTAMP = 1482846482 +SHA256 (brendangregg-Chaosreader-0.96-027a5e24abf399f4c1ebf199c0cd95d5888bebec_GH0.tar.gz) = dfe81ad7143315e472aeb3e3c37ebaf23a612e1bca7f28cf58162673376cc5c3 +SIZE (brendangregg-Chaosreader-0.96-027a5e24abf399f4c1ebf199c0cd95d5888bebec_GH0.tar.gz) = 99157 Index: head/security/chaosreader/files/patch-chaosreader =================================================================== --- head/security/chaosreader/files/patch-chaosreader (revision 429912) +++ head/security/chaosreader/files/patch-chaosreader (revision 429913) @@ -1,15 +1,15 @@ ---- chaosreader.orig 2010-07-23 11:18:46.000000000 +0300 -+++ chaosreader 2010-07-23 11:21:34.000000000 +0300 -@@ -4028,7 +4028,11 @@ - ### This causes the replay program to pause +--- chaosreader.orig 2014-06-15 19:30:11 UTC ++++ chaosreader +@@ -4275,7 +4275,11 @@ END print REPLAY "ms($timediff1);\n"; } + $duration = 0.01 if $duration == 0; # avoid divide by 0, - $speed = sprintf("%.2f",$bytes / (1024 * $duration)); + if ( $duration > 0 ) { + $speed = sprintf("%.2f",$bytes / (1024 * $duration)); + } else { + $speed = "unknown"; + } print REPLAY "print \"\n\n" . "Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";"; close REPLAY;