diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-03 11:06:39 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-04-03 11:06:39 +0000 |
commit | 3aa9bc549e5bea5fe75cbccc6f752c78deaf12d9 (patch) | |
tree | 252df586fa5d61fea3a1f12ddd9b3d7dbe52eaad /net-wireless/kismet | |
parent | don't make a stupid 'super' jar (diff) | |
download | gentoo-2-3aa9bc549e5bea5fe75cbccc6f752c78deaf12d9.tar.gz gentoo-2-3aa9bc549e5bea5fe75cbccc6f752c78deaf12d9.tar.bz2 gentoo-2-3aa9bc549e5bea5fe75cbccc6f752c78deaf12d9.zip |
Version bump.
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-wireless/kismet')
-rw-r--r-- | net-wireless/kismet/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/kismet/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/kismet/files/digest-kismet-2005.04.1 | 2 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet-2005.04.1-conf.d | 27 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet-2005.04.1-init.d | 41 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-2005.04.1.ebuild | 69 |
6 files changed, 150 insertions, 1 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog index ef24141352f1..f29dc560ab92 100644 --- a/net-wireless/kismet/ChangeLog +++ b/net-wireless/kismet/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/kismet # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.57 2005/04/03 10:38:58 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.58 2005/04/03 11:06:39 brix Exp $ + +*kismet-2005.04.1 (03 Apr 2005) + + 03 Apr 2005; <brix@gentoo.org> +files/kismet-2005.04.1-conf.d, + +files/kismet-2005.04.1-init.d, +kismet-2005.04.1.ebuild: + Version bump. 03 Apr 2005; <brix@gentoo.org> metadata.xml, kismet-2005.01.1.ebuild: Stable on x86. diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest index 384026ebe4c5..8ff41dc09675 100644 --- a/net-wireless/kismet/Manifest +++ b/net-wireless/kismet/Manifest @@ -1,5 +1,6 @@ MD5 a0514bf0fb7b3790e9e6b263438140bf kismet-2005.01.1.ebuild 2300 MD5 3df1ca9aabc3a11a05762002ed770f98 kismet-2004.10.1-r1.ebuild 2268 +MD5 53a0aaae7a053cf9a42306857dca3feb kismet-2005.04.1.ebuild 1836 MD5 9887b83df5b14d57ea47b0c001dabe3a ChangeLog 8597 MD5 ffabe8240a5956794f085602c98e8598 metadata.xml 348 MD5 813a26c9847e745a1b65147e8e8e472e files/kismet-2005.01.1-init.d 1131 @@ -7,4 +8,7 @@ MD5 ac3f64df09253e57accaee015fdd60bb files/kismet-2004.10.1-conf.d 805 MD5 0d620d9840f740fd0914006eaf1a636d files/kismet-2004.10.1-init.d 1131 MD5 2b5522ad006abb94c870187b1d687109 files/digest-kismet-2004.10.1-r1 138 MD5 c7f67b063ea9d619cb9472146b4c7163 files/digest-kismet-2005.01.1 138 +MD5 1d4ef399dadbbdaefd1dd27172065ff7 files/digest-kismet-2005.04.1 139 +MD5 8408c7aaa657ab84dbb2c4ddc43b187b files/kismet-2005.04.1-conf.d 805 +MD5 813a26c9847e745a1b65147e8e8e472e files/kismet-2005.04.1-init.d 1131 MD5 8408c7aaa657ab84dbb2c4ddc43b187b files/kismet-2005.01.1-conf.d 805 diff --git a/net-wireless/kismet/files/digest-kismet-2005.04.1 b/net-wireless/kismet/files/digest-kismet-2005.04.1 new file mode 100644 index 000000000000..ca0530c3a885 --- /dev/null +++ b/net-wireless/kismet/files/digest-kismet-2005.04.1 @@ -0,0 +1,2 @@ +MD5 19b4f192eb11a418ed3f6bf65c1226af kismet-2005-04-R1.tar.gz 871165 +MD5 5addaf1db088a8b51941e4db191b0ab0 ethereal-0.10.10.tar.bz2 5799231 diff --git a/net-wireless/kismet/files/kismet-2005.04.1-conf.d b/net-wireless/kismet/files/kismet-2005.04.1-conf.d new file mode 100644 index 000000000000..eeef971eb716 --- /dev/null +++ b/net-wireless/kismet/files/kismet-2005.04.1-conf.d @@ -0,0 +1,27 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2005.04.1-conf.d,v 1.1 2005/04/03 11:06:39 brix Exp $ + +# Config file for kismet server + +# ATTENTION: most of the kismet configuration is still done in +# /etc/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=%h/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/kismet-2005.04.1-init.d b/net-wireless/kismet/files/kismet-2005.04.1-init.d new file mode 100644 index 000000000000..0d2b7152f1e4 --- /dev/null +++ b/net-wireless/kismet/files/kismet-2005.04.1-init.d @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2005.04.1-init.d,v 1.1 2005/04/03 11:06:39 brix Exp $ + +# If you use this init script, you only need to run `kismet_client` to connect + +checkconfig() { + if [ ! -e /etc/kismet.conf ] ; then + eerror "You need an /etc/kismet.conf to run kismet_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-2005.04.1.ebuild b/net-wireless/kismet/kismet-2005.04.1.ebuild new file mode 100644 index 000000000000..ea2624d58dd8 --- /dev/null +++ b/net-wireless/kismet/kismet-2005.04.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2005.04.1.ebuild,v 1.1 2005/04/03 11:06:39 brix Exp $ + +inherit linux-info + +MY_P=${P/\./-} +MY_P=${MY_P/./-R} +S=${WORKDIR}/${MY_P} + +ETHEREAL_VERSION="0.10.10" + +DESCRIPTION="Kismet is a 802.11b wireless network sniffer." +HOMEPAGE="http://www.kismetwireless.net" +SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz + ethereal? ( http://www.ethereal.com/distribution/ethereal-${ETHEREAL_VERSION}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="ethereal gps" + +DEPEND=">=sys-devel/autoconf-2.58" +RDEPEND="virtual/libc + net-wireless/wireless-tools + sys-libs/ncurses + ethereal? ( =dev-libs/glib-1.2* + >=net-analyzer/ethereal-${ETHEREAL_VERSION} + sys-libs/zlib ) + gps? ( app-misc/gpsdrive + >=dev-libs/expat-1.95.4 + dev-libs/gmp + >=media-gfx/imagemagick-6.0 + dev-perl/libwww-perl )" + # Note: gps support is automatically enabled based on the + # above libs - 2005-04-R1 doesn't honor the --disable-gps flag + # brix@gentoo.org + +src_compile() { + local ETHEREAL_APPEND="" + + if use ethereal + then + cd ${WORKDIR}/ethereal-${ETHEREAL_VERSION}/wiretap + econf || die "wiretap econf failed" + emake || die "wiretap emake failed" + cd ${S} + + ETHEREAL_APPEND="=${WORKDIR}/ethereal-${ETHEREAL_VERSION}" + fi + + econf \ + `use_with ethereal ethereal${ETHEREAL_APPEND}` \ + `use_enable ncurses curses` \ + --with-linuxheaders=${KV_DIR}/include \ + || 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 +} |