summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/kismet/kismet-2007.01.1b.ebuild')
-rw-r--r--net-wireless/kismet/kismet-2007.01.1b.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/net-wireless/kismet/kismet-2007.01.1b.ebuild b/net-wireless/kismet/kismet-2007.01.1b.ebuild
new file mode 100644
index 000000000000..dd35105b7f03
--- /dev/null
+++ b/net-wireless/kismet/kismet-2007.01.1b.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2007.01.1b.ebuild,v 1.1 2007/01/20 13:04:26 phreak Exp $
+
+inherit toolchain-funcs linux-info eutils
+
+MY_P=${P/\./-}
+MY_P=${MY_P/./-R}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
+HOMEPAGE="http://www.kismetwireless.net/"
+SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ncurses"
+
+DEPEND="${RDEPEND}"
+RDEPEND="net-wireless/wireless-tools
+ net-libs/libpcap
+ ncurses? ( sys-libs/ncurses )"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${P}-Makefile.in.patch
+
+ sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
+ "${S}"/conf/kismet.conf.in
+}
+
+src_compile() {
+ # the configure script only honors '--disable-foo'
+ local myconf="--disable-gpsmap"
+
+ if ! use ncurses; then
+ myconf="${myconf} --disable-curses --disable-panel"
+ fi
+
+ econf ${myconf} \
+ --with-linuxheaders="${KV_DIR}" || die "econf failed"
+
+ emake dep || die "emake dep failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGELOG README TODO docs/*
+
+ newinitd "${FILESDIR}"/${P}-init.d kismet
+ newconfd "${FILESDIR}"/${P}-conf.d kismet
+}