net-analyzer/ipsumdump: Fix includes, set OS headers dependency
authorJeroen Roovers <jer@gentoo.org>
Tue, 20 Aug 2019 07:49:16 +0000 (09:49 +0200)
committerJeroen Roovers <jer@gentoo.org>
Tue, 20 Aug 2019 07:50:32 +0000 (09:50 +0200)
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Fixes: https://bugs.gentoo.org/692550
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch [new file with mode: 0644]
net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild [new file with mode: 0644]
net-analyzer/ipsumdump/ipsumdump-1.86.ebuild

diff --git a/net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch b/net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch
new file mode 100644 (file)
index 0000000..c2f0a74
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/fromdevice.cc
++++ b/src/fromdevice.cc
+@@ -47,6 +47,7 @@
+ #if FROMDEVICE_ALLOW_LINUX
+ # include <sys/socket.h>
++# include <linux/sockios.h>
+ # include <net/if.h>
+ # include <features.h>
+ # include <linux/if_packet.h>
diff --git a/net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild b/net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild
new file mode 100644 (file)
index 0000000..25325a3
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Simple TCP/IP Dump summarizer/analyzer"
+HOMEPAGE="http://read.seas.harvard.edu/~kohler/ipsumdump/"
+SRC_URI="${HOMEPAGE}${P}.tar.gz"
+
+LICENSE="the-Click-license"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ipv6 +nanotimestamp"
+
+RDEPEND="
+       net-libs/libpcap
+"
+DEPEND="
+       ${RDEPEND}
+       dev-lang/perl
+       dev-libs/expat
+       sys-apps/texinfo
+       virtual/os-headers
+"
+DOCS=(
+       NEWS.md
+       README.md
+)
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.86-SIOCGSTAMP.patch
+)
+
+src_configure() {
+       econf \
+               $(use_enable ipv6 ip6) \
+               $(use_enable nanotimestamp)
+}
index 182f6ec8e8f84158e1860b1541566d2ef60c9925..784df50ece56cf5347a0e9abc0464eb5ea08c8a9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,6 +20,7 @@ DEPEND="
        dev-lang/perl
        dev-libs/expat
        sys-apps/texinfo
+       virtual/os-headers
 "
 DOCS=(
        NEWS.md