View | Details | Raw Unified | Return to bug 215644
Collapse All | Expand All

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

Return to bug 215644