summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/kismet/ChangeLog8
-rw-r--r--net-wireless/kismet/Manifest4
-rw-r--r--net-wireless/kismet/files/digest-kismet-3.0.1-r11
-rw-r--r--net-wireless/kismet/files/rc-conf-327
-rw-r--r--net-wireless/kismet/files/rc-script-341
-rw-r--r--net-wireless/kismet/kismet-3.0.1-r1.ebuild80
6 files changed, 158 insertions, 3 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog
index bcfb813c0e74..0bd6e039a5b3 100644
--- a/net-wireless/kismet/ChangeLog
+++ b/net-wireless/kismet/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/kismet
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.25 2003/12/18 22:13:29 latexer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.26 2004/02/03 21:00:31 gmsoft Exp $
+
+*kismet-3.0.1-r1 (03 Feb 2004)
+
+ 03 Feb 2003; Guy Martin <gmsoft@gentoo.org> kismet-3.0.1-r1.ebuild,
+ files/rc-script-3 files/rc-conf-3 :
+ Version bump to add/fix rc scripts. Fix #26143.
18 Dec 2003; Peter Johanson <latexer@gentoo.org> metadata.xml:
Added metadata.xml so seemant will still love me
diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest
index 445a20743556..f29ec6108c30 100644
--- a/net-wireless/kismet/Manifest
+++ b/net-wireless/kismet/Manifest
@@ -1,4 +1,4 @@
-MD5 4b3364d0b7625643b9625605109062c6 ChangeLog 3486
+MD5 903110658bbfacfacb1621e2d2ea44f2 ChangeLog 3674
MD5 0a83b6098c9e92acf78997538e812f79 kismet-2.6.2-r1.ebuild 1871
MD5 201ae3fe46f741e9631868461cd1968f kismet-2.8.0.ebuild 1785
MD5 33f3240b3ca1279ed53a697ec6544d97 kismet-2.8.0a.ebuild 1787
@@ -7,7 +7,7 @@ MD5 0b9b1174762dcbd76618dc3b7bbf352e kismet-2.8.1-r1.ebuild 2143
MD5 2ff2dddcf0632ec1970327ce0539b120 kismet-2.8.1.ebuild 1997
MD5 4fffe883c4e580af019bf026bf11f67b kismet-3.0.1.ebuild 2179
MD5 32831d719499c83f7942f6432ef58278 metadata.xml 252
-MD5 1af21a2f8f216ad9fa55fa4828156d1f kismet-3.0.1-r1.ebuild 2296
+MD5 b780272c71670b4dbdffdaf0d3761c24 kismet-3.0.1-r1.ebuild 2299
MD5 0dd1b774ca9564e7e9d620499c3b4a5f files/rc-conf-3 753
MD5 8dfc64a8a4100cc38d8f00a3475bba9a files/digest-kismet-2.6.2-r1 131
MD5 a73efbda3289e9413549c220b046ef23 files/digest-kismet-2.8.0 131
diff --git a/net-wireless/kismet/files/digest-kismet-3.0.1-r1 b/net-wireless/kismet/files/digest-kismet-3.0.1-r1
new file mode 100644
index 000000000000..3fa80764ee92
--- /dev/null
+++ b/net-wireless/kismet/files/digest-kismet-3.0.1-r1
@@ -0,0 +1 @@
+MD5 7ba34081eb93d7ca27377593ba40524b kismet-3.0.1.tar.gz 692537
diff --git a/net-wireless/kismet/files/rc-conf-3 b/net-wireless/kismet/files/rc-conf-3
new file mode 100644
index 000000000000..6d06f9747e76
--- /dev/null
+++ b/net-wireless/kismet/files/rc-conf-3
@@ -0,0 +1,27 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Peter Johanson <latexer@gentoo.org>
+
+# Config file for kimset server
+
+# ATTENTION: most of the kismet configuration is still done in
+# /etc/kismet/kismet.conf
+# To use the kismet init script, you must have "logtemplate" set to a location
+# that is writable by the user assigned by "suiduser".
+# e.g.
+# suiduser=foo
+# logtemplate=/home/foo/kismet_log/%n-%d-%i.%l
+
+
+# Set WIFI_DEV to the device to be used by the kismet server.
+# This device must have the ability to do monitor mode
+
+
+WIFI_DEV=""
+
+# WIFI_DEV="wlan0"
+# WIFI_DEV="eth1"
+
+# Options to pass to the hopper/monitor/server
+KISMET_MONITOR_OPTS=""
+KISMET_SERVER_OPTS=""
diff --git a/net-wireless/kismet/files/rc-script-3 b/net-wireless/kismet/files/rc-script-3
new file mode 100644
index 000000000000..53858bbb1321
--- /dev/null
+++ b/net-wireless/kismet/files/rc-script-3
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Peter Johanson <latexer@gentoo.org>
+
+# If you use this init script, you only need to run `kismet_client` to connect
+
+checkconfig() {
+ if [ ! -e /etc/kismet/kismet.conf ] ; then
+ eerror "You need an /etc/kimset/kismet.conf to run kimset_server."
+ return 1
+ elif [ -z "${WIFI_DEV}" ]; then
+ eerror "You must define WIFI_DEV in /etc/conf.d/kismet."
+ return 1
+ fi
+
+}
+checkcard() {
+ if [ -z "`cat /proc/net/dev | grep ${WIFI_DEV}`" ]; then
+ eerror "${WIFI_DEV} not found."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ checkcard || return 1
+ ifconfig ${WIFI_DEV} up
+ ebegin "Starting kismet_server"
+ start-stop-daemon --start --quiet --pidfile /var/run/kismet_server.pid \
+ --background --make-pidfile --exec /usr/bin/kismet_server -- ${KISMET_SERVER_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping kismet_server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/kismet_server.pid
+ kismet_unmonitor &> /dev/null
+ eend $?
+}
+
diff --git a/net-wireless/kismet/kismet-3.0.1-r1.ebuild b/net-wireless/kismet/kismet-3.0.1-r1.ebuild
new file mode 100644
index 000000000000..1adb5f90d558
--- /dev/null
+++ b/net-wireless/kismet/kismet-3.0.1-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2004 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-r1.ebuild,v 1.1 2004/02/03 21:00:31 gmsoft 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 ~ppc"
+IUSE="acpi gps ethereal"
+
+DEPEND="gps? ( >=dev-libs/expat-1.95.4 media-gfx/imagemagick )
+ >=sys-devel/autoconf-2.58"
+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 to fix libpcap borkage"
+ cd ${S}/libpcap-0.7.2
+ WANT_AUTOCONF=2.5 \
+ autoconf || die "Failed to run autoconf"
+
+ 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/*
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/rc-script-3 kismet
+ insinto /etc/conf.d
+ newins ${FILESDIR}/rc-conf-3 kismet
+}