commit:     979e0926594870bc12092e4c02518e4b899e1d84
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 24 10:50:51 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 10:51:52 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=979e0926

net-analyzer/tcpstat: EAPI=7

Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 .../files/tcpstat-1.5-_DEFAULT_SOURCE.patch        | 11 ++++++
 net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild         | 45 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch 
b/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch
new file mode 100644
index 00000000000..e3e0df933d5
--- /dev/null
+++ b/net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -68,7 +68,7 @@
+ case $my_build_os in
+       aix*)           AC_DEFINE(AIX_STRANGENESS, 1, [ defined on AIX systems. 
]) ;;
+       osf1*)          AC_DEFINE(TRU64_STRANGENESS, 1, [ defined on OSF 
systems. ]) ;;
+-      linux*)         AC_DEFINE(_BSD_SOURCE, 1, [ defined usually on linux 
systems ] ) ;;
++      linux*)         AC_DEFINE(_DEFAULT_SOURCE, 1, [ defined usually on 
linux systems ] ) ;;
+       bsd/os*)        ;;
+       freebsd*)       ;;
+       sunos*)         ;;

diff --git a/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild 
b/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild
new file mode 100644
index 00000000000..64128ffed42
--- /dev/null
+++ b/net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools flag-o-matic
+
+DESCRIPTION="Reports network interface statistics"
+HOMEPAGE="https://www.frenchfries.net/paul/tcpstat/";
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6"
+
+DEPEND="
+       net-libs/libpcap
+"
+RDEPEND="
+       ${DEPEND}
+"
+DOCS=( AUTHORS ChangeLog NEWS README doc/Tips_and_Tricks.txt )
+PATCHES=(
+       "${FILESDIR}"/${P}-db.patch
+       "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       append-cflags -Wall -Wextra
+       econf \
+               $(use_enable ipv6) \
+               --with-pcap-include='' \
+               --with-pcap-lib="$( $(tc-getPKG_CONFIG) --libs libpcap)"
+}
+
+src_install() {
+       default
+       dobin src/{catpcap,packetdump}
+       newdoc src/README README.src
+}

Reply via email to