From 979e0926594870bc12092e4c02518e4b899e1d84 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sat, 24 Aug 2019 12:50:51 +0200 Subject: net-analyzer/tcpstat: EAPI=7 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Jeroen Roovers --- .../files/tcpstat-1.5-_DEFAULT_SOURCE.patch | 11 ++++++ net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 net-analyzer/tcpstat/files/tcpstat-1.5-_DEFAULT_SOURCE.patch create mode 100644 net-analyzer/tcpstat/tcpstat-1.5-r3.ebuild 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 000000000000..e3e0df933d5c --- /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 000000000000..64128ffed42c --- /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 +} -- cgit v1.2.3-65-gdbad