diff options
Diffstat (limited to 'net-analyzer/trafshow/trafshow-5.2.3.ebuild')
-rw-r--r-- | net-analyzer/trafshow/trafshow-5.2.3.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-analyzer/trafshow/trafshow-5.2.3.ebuild b/net-analyzer/trafshow/trafshow-5.2.3.ebuild new file mode 100644 index 000000000000..40c9101268d2 --- /dev/null +++ b/net-analyzer/trafshow/trafshow-5.2.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +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 ) +" + +src_prepare() { + cat /usr/share/aclocal/pkg.m4 >> aclocal.m4 || die + epatch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-tinfo.patch + 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 + + econf +} |