1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

- Update to 0.96

- Project has moved to github, update MASTER_SITES
- Drop sshkeydata binary (it's deprecated)
- Add LICENSE
- Add dependencies: dns/p5-Net-DNS
- Set architecture neutral
- Take maintainership

PR:		215644
Submitted by:	dbaio@bsd.com.br
This commit is contained in:
Dmitry Marakasov 2016-12-29 13:59:20 +00:00
parent 22394f50ad
commit 5424e01988
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=429913
3 changed files with 20 additions and 21 deletions

View File

@ -2,30 +2,30 @@
# $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 <bsd.port.mk>

View File

@ -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

View File

@ -1,9 +1,9 @@
--- 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));