From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/chaosreader/Manifest | 11 ++++++++ .../chaosreader/chaosreader-0.94-r1.ebuild | 31 ++++++++++++++++++++++ net-analyzer/chaosreader/chaosreader-0.94.ebuild | 24 +++++++++++++++++ .../files/chaosreader-0.94-chunkcheck.patch | 27 +++++++++++++++++++ .../files/chaosreader-0.94-darwin.patch | 11 ++++++++ .../files/chaosreader-0.94-divisionbyzero.patch | 18 +++++++++++++ .../files/chaosreader-0.94-oldmultiline.patch | 15 +++++++++++ .../files/chaosreader-0.94-zombies.patch | 11 ++++++++ net-analyzer/chaosreader/metadata.xml | 14 ++++++++++ 9 files changed, 162 insertions(+) create mode 100644 net-analyzer/chaosreader/Manifest create mode 100644 net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild create mode 100644 net-analyzer/chaosreader/chaosreader-0.94.ebuild create mode 100644 net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch create mode 100644 net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch create mode 100644 net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch create mode 100644 net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch create mode 100644 net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch create mode 100644 net-analyzer/chaosreader/metadata.xml (limited to 'net-analyzer/chaosreader') diff --git a/net-analyzer/chaosreader/Manifest b/net-analyzer/chaosreader/Manifest new file mode 100644 index 000000000000..80d668049eea --- /dev/null +++ b/net-analyzer/chaosreader/Manifest @@ -0,0 +1,11 @@ +AUX chaosreader-0.94-chunkcheck.patch 1049 SHA256 b2b748b9036cdabf878bff477eeb1b804479f106955aed5ec33ea9efaf796904 SHA512 0adb728d87e9d0812d1f30c22d682d68040ee992b07c52a3452bbca8416fd8c6b4d51adf7b16441d5595f12066799029289bdd29e0cadd379980d187a0ff4f83 WHIRLPOOL e88d5a4e015bf7228d3f2fbd770044989b0c96d2c0be98c60b922cb8498484a77a25a6dd3aad9f79785aa3f4522d0a93963f27575d5402e24c7b62adeef80d53 +AUX chaosreader-0.94-darwin.patch 416 SHA256 662f47776c92b4345e10f80b105e424e92612ed8f543a7faace9e60a4c64a540 SHA512 8cd587715e6dc8b09ee93bea452d92b6570bcaca6601adb7f1e59842ed3ac42d3a6bb9621c29b0524b475a6953ac17be0082baadfbc1acfeb1e05c4175108a9f WHIRLPOOL 1e920f2ddf634787c6153c6e9a79b11841fea08eea93d1ac675669a5b5b90b6f5932f798b10352ed5cb06e43dbfdc2114c0fb6bf7fb5d3eb603d2e01e04ccf54 +AUX chaosreader-0.94-divisionbyzero.patch 640 SHA256 0f4746e5763e9c6cb9fc6a3f1c1a7e54344a596f9503a0529a72b4980d009200 SHA512 04afa8959847fc52ba8bc546b7f2f134efcc8283b5b99c2af24af27bae73922ea4df4ff5f55308f075e1c77a29718c63345bceca3da3014611cf8b1f06e48ed8 WHIRLPOOL f2c680abc67cc7bcdc44dfb9bb985fa1446c8dcdfaa055c274e2ec21c60d9c61eb18bd582cdc02d33b39b7328c21c37e5ad4b8b6d259c74a466c3619659e0d9b +AUX chaosreader-0.94-oldmultiline.patch 487 SHA256 e9d34aed4170470fb02c646398f62bd54f013c96166c7c154ccb9c547432f1a1 SHA512 dcb98d8e5000fd0d130217e582ae21a519fd6e1554cd1e4902db632e7760c1708c9754f97f28f90d3371ccf76bb7b499b023d0985c27e799c27205f410515941 WHIRLPOOL fe4ec808dd11803ee0c79c998fdedc45356a35a7b2c148d8bbe3dd0171c340977ad67acf95add444e2f92634e0275d5bbb106b4abd6353f66b621465ba5c7aee +AUX chaosreader-0.94-zombies.patch 349 SHA256 bbb03272d9d8970ab9c4c7a7f5b263142424f848c114b6108b6604887eb80421 SHA512 d3348cd6f29d01b1e94e4aa7f89b7f76fa9a4c8a557c437d0495ae32c6a6399019fe3affed5f1611a77a6b70fd1f30d011c87e00b614640c155f3afd8470a0f3 WHIRLPOOL d145b43563d6bea77ea0e4c8209614fa97fd3542289f0397f95aa3c494f013a56176e79c757e0cc8cefd5e6f6d77993fc8e15671a7b062b0dd39626a03479a46 +DIST chaosreader-0.94.bz2 41039 SHA256 523f2107502dda9a1a9c73d8bc14605046f7352ada442bfcafec39a81b41f35b SHA512 f2c2b31e6f7fc27c5cb59a43ce9cdea67de520c79f6354c9a0f627c098d73f4666461fb4f3c393a0a9ac36105979fe36b08035c4404371db2f573dd534e1adad WHIRLPOOL f636aa42bc1b2c3be7283e450525c7fddf2dd063b90beb36a42df03757b17409df32323728303700223e62054083b895302e0807ed8587b073e649fd1908283a +EBUILD chaosreader-0.94-r1.ebuild 835 SHA256 7e4e87ee7ef7887d43facf2b0d41d59aa7bd56d4cb39210780413d5a108ef544 SHA512 bea69c2030aac85d3833c10cceac8ccf5c9b7d9235a0b98d30498f974f16e8d074dd3cbd071c627194fdffd917914d28196f4ffb3a4dce7f1573fbdea33cc0af WHIRLPOOL c246e572e78b1318014fd22d21d4384f3dd213e0767887446d542e4a64c72ba7aee7fce658fcd36301c1d2fa98d2a5aa17a581091e6dba0a27783d2a13122bd5 +EBUILD chaosreader-0.94.ebuild 627 SHA256 a08ef73588cded93f3f7cac27fc1164f9825b087d7c981a592460d6e3142613b SHA512 a3c02531f157406507f8d7185327993f3410a4744ebaad6eb396a14fa06c8bcae2f62a6ddf658a82440f6fb3a46ce4286d34c7a6de03439e1894464b3cd77bab WHIRLPOOL cbfcbc106f8aa7f3b876e1d9f0a7ea66046ae2bf7237ccfc8fa26b485d3723f961b79d1b874d8dc3fea01964f64c064aadb66721bf734c4a3364f8fda48ff5f6 +MISC ChangeLog 3503 SHA256 e70b4face4a7f724166cfaeb3a028f2b0056816c5f56bdc3ecc0cfc6de023ac4 SHA512 3e83201d421c2e632feaf63f01b4d5bbdc9d6a83d7ec2791712b132e7c48db96fae6d80f362f8bde174e6519446315b570485f1b3aa3ed14c15317fe9711d2c4 WHIRLPOOL 0b2e7ed69be79f7f33b6386b37d2b2cb440bd39daea7b6240df580197f58bd7c65fd0a01c85e5554ee3b2b9b64e728e3ffadb70e52223908fd55b5eece6be989 +MISC ChangeLog-2015 2515 SHA256 1ad76984993ec0e569360798cd6e178b1a50acb93fcd5ccabce4ef9f25de91e0 SHA512 8097ce402fcbcb00593ecc88f3e1798c03506502dde3d72e2ea493c539f65c516fcecac75f680348af922a7c25612ea4c2bac9d94a9aa09edb25d28d15b587f5 WHIRLPOOL 2f67df025d43c89dfcfd6240de5c2690593bcc41cc4f31053f4228ad1af4f10a083dafbc7ce6393852fb7d78bde2534bec321d25da2a53bfdd1984d90b9e8be7 +MISC metadata.xml 412 SHA256 d1c813ea0ecdb2d18f3c53e5611989e4bea973e82e1be369c4a6344fcffc042c SHA512 fe8a71cba4549b081b24d302c3b97cfbce59e5c338089fd12f706320fd9752fe2ca7f8875a768da68a9ef9c8e36a3e291a29b5a79e414586c38c21e6d54d340c WHIRLPOOL d8dd8e669437a81c08d1e67e20ddc2ead31abd76c8030047a20a221b44439fb7a0c736a8c316e4c6b61c9389c9e7460e7b753c8f5036891ad20bd4b5de5c6a55 diff --git a/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild b/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild new file mode 100644 index 000000000000..4d703c86b826 --- /dev/null +++ b/net-analyzer/chaosreader/chaosreader-0.94-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +DESCRIPTION="A tool to trace TCP/UDP/... sessions and fetch application data from snoop or tcpdump logs" +HOMEPAGE="http://chaosreader.sourceforge.net" +SRC_URI="https://dev.gentoo.org/~spock/portage/distfiles/${P}.bz2" +SLOT="0" + +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +LICENSE="GPL-2" + +IUSE="" + +DEPEND=">=dev-lang/perl-5.8.0" +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/chaosreader-0.94-zombies.patch + epatch "${FILESDIR}"/chaosreader-0.94-chunkcheck.patch + epatch "${FILESDIR}"/chaosreader-0.94-darwin.patch + epatch "${FILESDIR}"/chaosreader-0.94-divisionbyzero.patch + epatch "${FILESDIR}"/chaosreader-0.94-oldmultiline.patch +} + +src_install() { + newbin ${P} chaosreader +} diff --git a/net-analyzer/chaosreader/chaosreader-0.94.ebuild b/net-analyzer/chaosreader/chaosreader-0.94.ebuild new file mode 100644 index 000000000000..62cf4fe05999 --- /dev/null +++ b/net-analyzer/chaosreader/chaosreader-0.94.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils + +DESCRIPTION="A tool to trace TCP/UDP/... sessions and fetch application data from snoop or tcpdump logs" +HOMEPAGE="http://users.tpg.com.au/bdgcvb/chaosreader.html" +SRC_URI="https://dev.gentoo.org/~spock/portage/distfiles/${P}.bz2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux ~x86-macos" +LICENSE="GPL-2" +IUSE="" +DEPEND=">=dev-lang/perl-5.8.0" +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/chaosreader-0.94-zombies.patch +} + +src_install() { + newbin ${P} chaosreader || die +} diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch new file mode 100644 index 000000000000..4d38eb17a2e6 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-chunkcheck.patch @@ -0,0 +1,27 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 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.94-darwin.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch new file mode 100644 index 000000000000..2eaca80909ae --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-darwin.patch @@ -0,0 +1,11 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 +@@ -6233,6 +6254,8 @@ + $command = "tcpdump -s9999 -w"; + } elsif ($^O eq "solaris") { + $command = "snoop -o"; ++ } elsif ($^O eq "darwin") { ++ $command = "tcpdump -i en1 -s9999 -w"; + } else { + die "ERROR54: Can't find the sniffer command for \"$^O\".\n" . + "\t Please use log mode instead.\n"; diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch new file mode 100644 index 000000000000..db9d3c6fd158 --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-divisionbyzero.patch @@ -0,0 +1,18 @@ +--- chaosreader 2011-11-10 19:17:50.000000000 +0100 ++++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 +@@ -4028,7 +4024,14 @@ + ### This causes the replay program to pause + print REPLAY "ms($timediff1);\n"; + } +- $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.94-oldmultiline.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch new file mode 100644 index 000000000000..1fada077058e --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-oldmultiline.patch @@ -0,0 +1,15 @@ +--- chaosreader 2012-01-18 21:47:02.000000000 +0100 ++++ chaosreader-0.94 2012-03-13 12:10:44.740136742 +0100 +@@ -259,12 +259,6 @@ + $| = 1; # flush output + + # +-# The following is needed for old perl5 multiline matching. New perl5 uses +-# a "/s" on the RE (which is used in this program as well). +-# +-$* = 1; # old perl5 +- +-# + # These ports have been selected to be saved as coloured 2-way HTML files + # + @Save_As_HTML_TCP_Ports = (21,23,25,79,80,109,110,119,143,513,514,1080, diff --git a/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch b/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch new file mode 100644 index 000000000000..8f7dd04e50ed --- /dev/null +++ b/net-analyzer/chaosreader/files/chaosreader-0.94-zombies.patch @@ -0,0 +1,11 @@ +--- chaosreader-orig 2006-12-24 15:12:23.000000000 +0100 ++++ chaosreader-0.94 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 --- + # diff --git a/net-analyzer/chaosreader/metadata.xml b/net-analyzer/chaosreader/metadata.xml new file mode 100644 index 000000000000..cbd0ba6214ed --- /dev/null +++ b/net-analyzer/chaosreader/metadata.xml @@ -0,0 +1,14 @@ + + + + + rainbow@irh.it + + + proxy-maint@gentoo.org + Proxy Maintainers + + + chaosreader + + -- cgit v1.2.3