Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcptrace/
Date: Wed, 30 Sep 2020 09:49:35
Message-Id: 1601459370.90ef900223244786e7b7a07ce9c47978ba075dd0.jer@gentoo
1 commit: 90ef900223244786e7b7a07ce9c47978ba075dd0
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 30 09:49:23 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 30 09:49:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90ef9002
7
8 net-analyzer/tcptrace: Version 6.6.7_p6
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/tcptrace/Manifest | 1 +
14 net-analyzer/tcptrace/tcptrace-6.6.7_p6.ebuild | 58 ++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/net-analyzer/tcptrace/Manifest b/net-analyzer/tcptrace/Manifest
18 index 38a5487049c..9d4cc81f600 100644
19 --- a/net-analyzer/tcptrace/Manifest
20 +++ b/net-analyzer/tcptrace/Manifest
21 @@ -1,3 +1,4 @@
22 DIST tcptrace-6.6.7.tar.gz 3773308 BLAKE2B cae5816cb25c33f71c316d14de3c18ff26f0e7452375a962b88c4818ca7c43425e7298e788bd8cb43f2e22ac7dc9b89ed1921b7bd70d0e8befab3ee791453fb1 SHA512 3638770c342aea6c71aa556e758ed22e1fd44730f6c652cf82d3861eb1c31b186952c660071bd1df45020b80eaf9dd090a4ff58c979cc907eb8154dcb7b9b432
23 DIST tcptrace_6.6.7-4.1.diff.gz 29161 BLAKE2B 83768d0a6f14525f20b484421181078a3cf7ac3adeada3cf02a7441530593632743c6e515dd8738f5a4692422d97f4eb718dda076a234489096a10defb97dd5f SHA512 2f6dfeb8e15faa0151bdbb18194587e51de040f63117eb1b469a826091d5c1e5eb41a306bdc94e89ce993d0d04ec31324e5f7eea0a1a52852e07ee80006b2087
24 DIST tcptrace_6.6.7-5.debian.tar.xz 6236 BLAKE2B 21d35b625fdc7b94c29b2be595ac39488578f08c53e5dde98953bbebaa2d8d96de968b746dd107ea78365a77f1fe7aa5abfeb3aeef4473c9020587f93066000c SHA512 6265d0bfb25f256c8f356cda731c48f869fe3e9d9504ed6afd0e98a3c2caf5dbcff73373c338be111712713b9a501fae886bb06723796103bac4dec5d8fcfaf6
25 +DIST tcptrace_6.6.7-6.debian.tar.xz 6056 BLAKE2B a46a8a8a8f804066486566bccd10e33dc372a1fc30f37f401913c2b3038cf917891472e93a509cac8bdd2928d473c3ce21d0c4048c96ae54967fc48780384221 SHA512 82eebc2e297130cbafab0bb1757402d8b210885320ded1cd9b7ff064248d145c93196820564d4d1d7f1b1f7391cc5f734a0e0bf6275ddcae106d0bd540e32b61
26
27 diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7_p6.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7_p6.ebuild
28 new file mode 100644
29 index 00000000000..f08f5f8fd7d
30 --- /dev/null
31 +++ b/net-analyzer/tcptrace/tcptrace-6.6.7_p6.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit autotools
38 +
39 +DESCRIPTION="A Tool for analyzing network packet dumps"
40 +HOMEPAGE="http://www.tcptrace.org/"
41 +SRC_URI="
42 + http://www.tcptrace.org/download/${P/_p*}.tar.gz
43 + http://www.tcptrace.org/download/old/6.6/${P/_p*}.tar.gz
44 + mirror://debian/pool/main/t/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
45 +"
46 +
47 +SLOT="0"
48 +LICENSE="GPL-2"
49 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
50 +
51 +DEPEND="
52 + net-libs/libpcap
53 +"
54 +RDEPEND="
55 + ${DEPEND}
56 +"
57 +PATCHES=(
58 + "${FILESDIR}"/${P/_p*}-cross-compile.patch
59 + "${FILESDIR}"/${P/_p*}-_DEFAULT_SOURCE.patch
60 +)
61 +S=${WORKDIR}/${P/_p*}
62 +
63 +src_prepare() {
64 + default
65 +
66 + eapply \
67 + $(awk '{ print "'"${WORKDIR}"'/debian/patches/" $0; }' < "${WORKDIR}"/debian/patches/series)
68 +
69 + eautoreconf
70 +}
71 +
72 +src_compile() {
73 + emake CCOPT="${CFLAGS}"
74 +}
75 +
76 +src_install() {
77 + dobin tcptrace xpl2gpl
78 +
79 + newman tcptrace.man tcptrace.1
80 + dodoc CHANGES COPYRIGHT FAQ README* THANKS WWW
81 +}
82 +
83 +pkg_postinst() {
84 + if ! has_version ${CATEGORY}/${PN}; then
85 + elog "Note: tcptrace outputs its graphs in the xpl (xplot)"
86 + elog "format. Since xplot is unavailable, you will have to"
87 + elog "use the included xpl2gpl utility to convert it to"
88 + elog "the gnuplot format."
89 + fi
90 +}