You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/trafshow/trafshow-5.2.3.ebuild

41 lines
983 B

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/trafshow/trafshow-5.2.3.ebuild,v 1.12 2009/07/25 20:55:47 ssuominen Exp $
inherit 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="as-is"
SLOT="3"
KEYWORDS="amd64 hppa ~ppc ppc64 sparc x86"
IUSE="slang"
DEPEND="net-libs/libpcap
sys-libs/ncurses
slang? ( >=sys-libs/slang-1.4 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gentoo.patch \
"${FILESDIR}"/${P}-gcc44.patch
}
src_compile() {
if ! use slang; then
# No command-line option so pre-cache instead
export ac_cv_have_curses=ncurses
export LIBS=-lncurses
fi
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
}