1 |
commit: 5604fa98bd62965b33f1ff0f242be18393fee5b6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 30 19:27:37 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 19:27:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5604fa98 |
7 |
|
8 |
net-analyzer/tcptrace: Pull in Debian patch to replace private pcap_offline_read() call (bug #590076). |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-analyzer/tcptrace/Manifest | 1 + |
13 |
net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild | 64 +++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/tcptrace/Manifest b/net-analyzer/tcptrace/Manifest |
17 |
index 4a7145e..9c4916d 100644 |
18 |
--- a/net-analyzer/tcptrace/Manifest |
19 |
+++ b/net-analyzer/tcptrace/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST tcptrace-6.6.7.tar.gz 3773308 SHA256 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd SHA512 3638770c342aea6c71aa556e758ed22e1fd44730f6c652cf82d3861eb1c31b186952c660071bd1df45020b80eaf9dd090a4ff58c979cc907eb8154dcb7b9b432 WHIRLPOOL b7eb2373b9a26789c47bb05e1e45047164648ff6f5cb3b57ba552d205443ca1fba7df9dd983a68f712a3e7398e776d97b328463f2497e7e39ba2b7db789c14b0 |
22 |
+DIST tcptrace_6.6.7-4.1.diff.gz 29161 SHA256 8d146edf2763badd92813404240c996613e256f1300c801f0dad02b842bf3ed4 SHA512 2f6dfeb8e15faa0151bdbb18194587e51de040f63117eb1b469a826091d5c1e5eb41a306bdc94e89ce993d0d04ec31324e5f7eea0a1a52852e07ee80006b2087 WHIRLPOOL 56af4f8ca7f5efbe5fd57acc2e7a881c315b245f5a10e4e4ce7eee9101554e53694e576129a8a997b4bbf89c2a0a92a2eab2f7efeca401808399524979cd2b17 |
23 |
|
24 |
diff --git a/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild b/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..3493016 |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/tcptrace/tcptrace-6.6.7_p4_p1.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+inherit autotools eutils flag-o-matic versionator |
36 |
+ |
37 |
+TT_DEB_MAJOR=$(get_version_component_range 4) |
38 |
+TT_DEB_MAJOR=${TT_DEB_MAJOR/p} |
39 |
+TT_DEB_MINOR=$(get_version_component_range 5) |
40 |
+TT_DEB_MINOR=${TT_DEB_MINOR/p} |
41 |
+TT_VER=$(get_version_component_range 1-3) |
42 |
+ |
43 |
+DESCRIPTION="A Tool for analyzing network packet dumps" |
44 |
+HOMEPAGE="http://www.tcptrace.org/" |
45 |
+SRC_URI=" |
46 |
+ http://www.tcptrace.org/download/${PN}-${TT_VER}.tar.gz |
47 |
+ http://www.tcptrace.org/download/old/6.6/${PN}-${TT_VER}.tar.gz |
48 |
+ mirror://debian/pool/main/t/${PN}/${PN}_${TT_VER}-${TT_DEB_MAJOR}.${TT_DEB_MINOR}.diff.gz |
49 |
+" |
50 |
+ |
51 |
+SLOT="0" |
52 |
+LICENSE="GPL-2" |
53 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ net-libs/libpcap |
57 |
+" |
58 |
+RDEPEND=" |
59 |
+ ${DEPEND} |
60 |
+" |
61 |
+ |
62 |
+S=${WORKDIR}/${PN}-${TT_VER} |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ eapply "${FILESDIR}"/${PN}-${TT_VER}-cross-compile.patch |
66 |
+ eapply "${WORKDIR}"/${PN}_${TT_VER}-${TT_DEB_MAJOR}.${TT_DEB_MINOR}.diff |
67 |
+ |
68 |
+ eapply_user |
69 |
+ |
70 |
+ append-cppflags -D_DEFAULT_SOURCE |
71 |
+ |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ emake CCOPT="${CFLAGS}" |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ dobin tcptrace xpl2gpl |
81 |
+ |
82 |
+ newman tcptrace.man tcptrace.1 |
83 |
+ dodoc CHANGES COPYRIGHT FAQ README* THANKS WWW |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ if ! has_version ${CATEGORY}/${PN}; then |
88 |
+ elog "Note: tcptrace outputs its graphs in the xpl (xplot)" |
89 |
+ elog "format. Since xplot is unavailable, you will have to" |
90 |
+ elog "use the included xpl2gpl utility to convert it to" |
91 |
+ elog "the gnuplot format." |
92 |
+ fi |
93 |
+} |