From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDD04138334 for ; Wed, 27 Feb 2019 04:25:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50151E08D6; Wed, 27 Feb 2019 04:25:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0ED33E08D6 for ; Wed, 27 Feb 2019 04:25:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7CEF7335CF5 for ; Wed, 27 Feb 2019 04:25:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C25A1566 for ; Wed, 27 Feb 2019 04:25:36 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1551241285.36fd5fe247af567f69cf4acc7c0fcba176b626e7.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/chaosreader/files/, net-analyzer/chaosreader/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/chaosreader/Manifest net-analyzer/chaosreader/chaosreader-0.96.ebuild net-analyzer/chaosreader/files/chaosreader-0.96-chunkcheck.patch net-analyzer/chaosreader/files/chaosreader-0.96-divisionbyzero.patch net-analyzer/chaosreader/files/chaosreader-0.96-zombies.patch X-VCS-Directories: net-analyzer/chaosreader/ net-analyzer/chaosreader/files/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 36fd5fe247af567f69cf4acc7c0fcba176b626e7 X-VCS-Branch: master Date: Wed, 27 Feb 2019 04:25:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bbc4a6f1-57d7-4e85-90ef-05d2c6c810d4 X-Archives-Hash: 61616ade4f6ce57b12b0acd3f6364042 commit: 36fd5fe247af567f69cf4acc7c0fcba176b626e7 Author: Michael Mair-Keimberger gmail com> AuthorDate: Thu Feb 21 18:07:51 2019 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Wed Feb 27 04:21:25 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36fd5fe2 net-analyzer/chaosreader: version bump (0.96), EAPI7 Signed-off-by: Michael Mair-Keimberger gmail.com> Signed-off-by: Aaron Bauman gentoo.org> net-analyzer/chaosreader/Manifest | 1 + net-analyzer/chaosreader/chaosreader-0.96.ebuild | 28 ++++++++++++++++++++++ .../files/chaosreader-0.96-chunkcheck.patch | 27 +++++++++++++++++++++ .../files/chaosreader-0.96-divisionbyzero.patch | 18 ++++++++++++++ .../files/chaosreader-0.96-zombies.patch | 11 +++++++++ 5 files changed, 85 insertions(+) diff --git a/net-analyzer/chaosreader/Manifest b/net-analyzer/chaosreader/Manifest index abd523f211f..a52d4d09f5f 100644 --- a/net-analyzer/chaosreader/Manifest +++ b/net-analyzer/chaosreader/Manifest @@ -1 +1,2 @@ DIST chaosreader-0.94.bz2 41039 BLAKE2B 664ac7de3ea15dcc2942f7d9ffa4a7ffd2066a521345877127594ece197cab8d49d2f3441335c012dc09041543cda31c723d021ae86a512b4d578f958acc3afc SHA512 f2c2b31e6f7fc27c5cb59a43ce9cdea67de520c79f6354c9a0f627c098d73f4666461fb4f3c393a0a9ac36105979fe36b08035c4404371db2f573dd534e1adad +DIST chaosreader-0.96.tar.gz 99124 BLAKE2B 04e9dd45543033bb3d15264fcc9168b7e2cec6f304f10142df36c363e841afc91659d7956bbb60b05cc6ab4e8fd519adaf9a2e69be2efc129fd2f38ca0d99f1f SHA512 46ba4a66152403e150e652bf6fa08af98cd3d709ea2cb834a32411ca5dde5f94a7e972404626787e604c1449c29ab5f335673b305ab83856c0dfff7cbf2f4de4 diff --git a/net-analyzer/chaosreader/chaosreader-0.96.ebuild b/net-analyzer/chaosreader/chaosreader-0.96.ebuild new file mode 100644 index 00000000000..ab29f713b3d --- /dev/null +++ b/net-analyzer/chaosreader/chaosreader-0.96.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Trace TCP/UDP/... sessions and fetch application data." +HOMEPAGE="http://chaosreader.sourceforge.net + https://github.com/brendangregg/Chaosreader" +SRC_URI="https://github.com/brendangregg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SLOT="0" + +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +LICENSE="GPL-2+" + +DEPEND=">=dev-lang/perl-5.8.0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/Chaosreader-${PV}" + +PATCHES=( + "${FILESDIR}"/chaosreader-0.96-zombies.patch + "${FILESDIR}"/chaosreader-0.96-chunkcheck.patch + "${FILESDIR}"/chaosreader-0.96-divisionbyzero.patch +) + +src_install() { + dobin ${PN} +} diff --git a/net-analyzer/chaosreader/files/chaosreader-0.96-chunkcheck.patch b/net-analyzer/chaosreader/files/chaosreader-0.96-chunkcheck.patch new file mode 100644 index 00000000000..6a394d4b308 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.96-chunkcheck.patch @@ -0,0 +1,27 @@ +--- a/chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ b/chaosreader 2012-03-09 18:15:21.096105305 +0100 +@@ -5350,6 +5353,24 @@ + next if length($http_data) < 8; + $partnum++; + $parttext = sprintf("%02d",$partnum); ++ ++ ## from https://sourceforge.net/tracker/?func=detail&aid=2019799&group_id=107384&atid=647491 ++ ### Chunk Check ++ if ( $http_header =~ /Transfer-Encoding: chunked/ ) { ++ my $new_http_data=""; ++ my $chunksize=-1; ++ my $pos=0; ++ until ($chunksize==0) { ++ my $eolpos=index($http_data,"\r\n",$pos); ++ $chunksize=hex(substr($http_data,$pos,$eolpos - $pos)); ++ $pos=($eolpos+2); ++ if ($chunksize > 0) { ++ $new_http_data.=substr($http_data,$pos,$chunksize); ++ } ++ $pos+=($chunksize+2); ++ } ++ $http_data=$new_http_data; ++ } + + ### Part - Checks + $http_type = &File_Type($http_data); diff --git a/net-analyzer/chaosreader/files/chaosreader-0.96-divisionbyzero.patch b/net-analyzer/chaosreader/files/chaosreader-0.96-divisionbyzero.patch new file mode 100644 index 00000000000..58491851306 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.96-divisionbyzero.patch @@ -0,0 +1,18 @@ +--- a/chaosreader 2014-06-15 21:30:11.000000000 +0200 ++++ b/chaosreader 2019-02-21 18:26:00.671756895 +0100 +@@ -4275,7 +4275,14 @@ + print REPLAY "ms($timediff1);\n"; + } + $duration = 0.01 if $duration == 0; # avoid divide by 0, +- $speed = sprintf("%.2f",$bytes / (1024 * $duration)); ++ + # avoid division by zero ++ # from https://sourceforge.net/tracker/?func=detail&aid=2210488&group_id=107384&atid=647489 ++ 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; diff --git a/net-analyzer/chaosreader/files/chaosreader-0.96-zombies.patch b/net-analyzer/chaosreader/files/chaosreader-0.96-zombies.patch new file mode 100644 index 00000000000..40fa6063adf --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.96-zombies.patch @@ -0,0 +1,11 @@ +--- a/chaosreader 2006-12-24 15:12:23.000000000 +0100 ++++ b/chaosreader 2006-12-24 15:11:56.000000000 +0100 +@@ -396,6 +395,8 @@ if ($Arg{normal}) { + + elsif ($Arg{standalone}) { + ++ $SIG{CHLD} = "IGNORE"; ++ + ############################################################ + # --- STANDALONE - Create Packet Logs and Process them --- + #