1 |
commit: 979e0926594870bc12092e4c02518e4b899e1d84 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 24 10:50:51 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 24 10:51:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=979e0926 |
7 |
|
8 |
net-analyzer/tcpstat: EAPI=7 |
9 |
|
10 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
.../files/tcpstat-1.5-_DEFAULT_SOURCE.patch | 11 ++++++ |
14 |
net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild | 45 ++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch b/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..e3e0df933d5 |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/configure.in |
24 |
++++ b/configure.in |
25 |
+@@ -68,7 +68,7 @@ |
26 |
+ case $my_build_os in |
27 |
+ aix*) AC_DEFINE(AIX_STRANGENESS, 1, [ defined on AIX systems. ]) ;; |
28 |
+ osf1*) AC_DEFINE(TRU64_STRANGENESS, 1, [ defined on OSF systems. ]) ;; |
29 |
+- linux*) AC_DEFINE(_BSD_SOURCE, 1, [ defined usually on linux systems ] ) ;; |
30 |
++ linux*) AC_DEFINE(_DEFAULT_SOURCE, 1, [ defined usually on linux systems ] ) ;; |
31 |
+ bsd/os*) ;; |
32 |
+ freebsd*) ;; |
33 |
+ sunos*) ;; |
34 |
|
35 |
diff --git a/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild b/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..64128ffed42 |
38 |
--- /dev/null |
39 |
+++ b/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild |
40 |
@@ -0,0 +1,45 @@ |
41 |
+# Copyright 1999-2019 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+inherit autotools flag-o-matic |
46 |
+ |
47 |
+DESCRIPTION="Reports network interface statistics" |
48 |
+HOMEPAGE="https://www.frenchfries.net/paul/tcpstat/" |
49 |
+SRC_URI="${HOMEPAGE}${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
54 |
+IUSE="ipv6" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ net-libs/libpcap |
58 |
+" |
59 |
+RDEPEND=" |
60 |
+ ${DEPEND} |
61 |
+" |
62 |
+DOCS=( AUTHORS ChangeLog NEWS README doc/Tips_and_Tricks.txt ) |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${P}-db.patch |
65 |
+ "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ eautoreconf |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ append-cflags -Wall -Wextra |
75 |
+ econf \ |
76 |
+ $(use_enable ipv6) \ |
77 |
+ --with-pcap-include='' \ |
78 |
+ --with-pcap-lib="$( $(tc-getPKG_CONFIG) --libs libpcap)" |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ default |
83 |
+ dobin src/{catpcap,packetdump} |
84 |
+ newdoc src/README README.src |
85 |
+} |