diff options
Diffstat (limited to 'net-wireless/kismet/kismet-3.0.1.ebuild')
-rw-r--r-- | net-wireless/kismet/kismet-3.0.1.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/net-wireless/kismet/kismet-3.0.1.ebuild b/net-wireless/kismet/kismet-3.0.1.ebuild new file mode 100644 index 000000000000..fb83e4251e98 --- /dev/null +++ b/net-wireless/kismet/kismet-3.0.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-3.0.1.ebuild,v 1.1 2003/08/19 01:50:37 latexer Exp $ + +ETHEREAL_VERSION="0.9.13" +DESCRIPTION="Kismet is a 802.11b wireless network sniffer." +HOMEPAGE="http://www.kismetwireless.net/" +SRC_URI="http://www.kismetwireless.net/code/${P}.tar.gz + ethereal? (http://www.ethereal.com/distribution/ethereal-${ETHEREAL_VERSION}.tar.bz2)" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="acpi gps ethereal" + +DEPEND="gps? ( >=dev-libs/expat-1.95.4 media-gfx/imagemagick ) + =sys-devel/autoconf-2.57*" +RDEPEND="net-wireless/wireless-tools" + +src_compile() { + local myconf + + # To have kismet build acpi support, you need to be running a kernel + # with acpi enabled at the time of compiling + + myconf="`use_enable acpi`" + use gps || myconf="${myconf} --disable-gps" + + if [ -n "`use ethereal`" ]; then + myconf="${myconf} --with-ethereal=${WORKDIR}/ethereal-${ETHEREAL_VERSION}" + + cd ${WORKDIR}/ethereal-${ETHEREAL_VERSION}/wiretap + econf || die + emake || die + fi + + einfo "Running autoconf-2.57 to fix libpcap borkage" + cd ${S}/libpcap-0.7.2 + autoconf-2.57 || die "Failed to run autoconf-2.57" + + cd ${S} + ./configure \ + --prefix=/usr \ + --host=${CHOST} \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share \ + --sysconfdir=/etc/kismet \ + --localstatedir=/var/lib \ + ${myconf} || die "./configure failed" + + cd ${S}/conf + cp -f kismet.conf kismet.conf.orig + cp -f kismet_ui.conf kismet_ui.conf.orig + sed -e "s:/usr/local:/usr:g; \ + s:=ap_manuf:=/etc/kismet/ap_manuf:g; \ + s:=client_manuf:=/etc/kismet/client_manuf:g" \ + kismet.conf.orig > kismet.conf + sed -e "s:/usr/local:/usr:g" kismet_ui.conf.orig > kismet_ui.conf + rm -f kismet.conf.orig kismet_ui.conf.orig + + cd ${S} + make dep || die "make dep for kismet failed" + emake || die "compile of kismet failed" +} + +src_install () { + dodir /etc/kismet + dodir /usr/bin + make prefix=${D}/usr \ + ETC=${D}/etc/kismet MAN=${D}/usr/share/man \ + SHARE=${D}/usr/share/${PN} install || die + dodoc CHANGELOG FAQ README docs/* + +} |