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/sniffit/sniffit-0.3.7-r1.ebuild

45 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sniffit/sniffit-0.3.7-r1.ebuild,v 1.11 2012/12/05 15:40:36 jer Exp $
inherit eutils toolchain-funcs
MY_P="${P/-/.}.beta"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Interactive Packet Sniffer"
SRC_URI="http://reptile.rug.ac.be/~coder/sniffit/files/${MY_P}.tar.gz
http://www.clan-tva.com/m0rpheus/sniffit_0.3.7.beta-10.diff"
HOMEPAGE="http://reptile.rug.ac.be/~coder/sniffit/sniffit.html"
DEPEND="net-libs/libpcap
>=sys-libs/ncurses-5.2"
SLOT="0"
LICENSE="BSD"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
src_unpack() {
unpack ${MY_P}.tar.gz
cd ${S}
epatch ${DISTDIR}/sniffit_0.3.7.beta-10.diff
# Fix issues with gcc-3.3 (bug #25328)
epatch ${FILESDIR}/${P}-gcc33.patch
epatch ${FILESDIR}/${P}-gentoo.patch
}
src_compile() {
tc-export CC
econf || die
emake CFLAGS="${CFLAGS}" || die
}
src_install () {
dobin sniffit
doman sniffit.5 sniffit.8
dodoc README* PLUGIN-HOWTO BETA* HISTORY LICENSE
}