summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-01 08:36:08 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-01 08:36:51 +0200
commitac5aed68fd7b5cf55b1a22cfa417b65ae29c400c (patch)
tree4dd3b356d59474ad78d9b06b2fea09364b8213de /net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild
parentpackage.mask: Last rite app-text/fbless (diff)
downloadgentoo-ac5aed68fd7b5cf55b1a22cfa417b65ae29c400c.tar.gz
gentoo-ac5aed68fd7b5cf55b1a22cfa417b65ae29c400c.tar.bz2
gentoo-ac5aed68fd7b5cf55b1a22cfa417b65ae29c400c.zip
net-analyzer/trafshow: Fix building against libpcap-1.10.0
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild')
-rw-r--r--net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild b/net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild
new file mode 100644
index 000000000000..ce61398d05f8
--- /dev/null
+++ b/net-analyzer/trafshow/trafshow-5.2.3-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Full screen visualization of the network traffic"
+HOMEPAGE="http://soft.risp.ru/trafshow/index_en.shtml"
+SRC_URI="ftp://ftp.nsk.su/pub/RinetSoftware/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="3"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="slang"
+
+DEPEND="
+ net-libs/libpcap
+ !slang? ( sys-libs/ncurses )
+ slang? ( >=sys-libs/slang-1.4 )
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc44.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-pcap_init.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+)
+
+src_prepare() {
+ default
+ cat /usr/share/aclocal/pkg.m4 >> aclocal.m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ if ! use slang; then
+ # No command-line option so pre-cache instead
+ export ac_cv_have_curses=ncurses
+ export LIBS=-lncurses
+ fi
+
+ default
+}