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-wireless/airtraf/airtraf-1.1.ebuild

46 lines
1017 B

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/airtraf/airtraf-1.1.ebuild,v 1.8 2010/09/17 03:23:44 jer Exp $
inherit eutils toolchain-funcs
DESCRIPTION="AirTraf 802.11b Wireless traffic sniffer"
HOMEPAGE="http://www.elixar.com/"
SRC_URI="http://www.elixar.com/${P}.tar.gz"
IUSE=""
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ppc x86"
DEPEND="net-libs/libpcap"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}.patch
}
src_compile() {
cd ${S}/src
# Do some sedding to make compile flags work
mv Makefile.rules ${T}
sed -e "s:gcc:$(tc-getCC):" \
-e "s:CFLAGS = -Wall -O2:CFLAGS = ${CFLAGS} -Wall:" \
-e "s:c++:$(tc-getCXX):" \
-e "s:CXXFLAGS = -Wall -O2:CXXFLAGS = ${CXXFLAGS} -Wall:" \
${T}/Makefile.rules > Makefile.rules
# bug #297331
emake -j1 || die
}
src_install () {
newdoc ${S}/docs/airtraf_doc.html airtraf_documentation.html
dobin ${S}/src/airtraf || die
}