diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-01-16 19:29:44 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-01-16 19:29:44 +0000 |
commit | 4dafe54c33ce36c3233b8b8d797467e275e9a23e (patch) | |
tree | f12e664f90d66eee87b04279a6ddb8ecaa2f29fa /net-wireless/kismet | |
parent | Boot Menu creator for the Pegasos (diff) | |
download | historical-4dafe54c33ce36c3233b8b8d797467e275e9a23e.tar.gz historical-4dafe54c33ce36c3233b8b8d797467e275e9a23e.tar.bz2 historical-4dafe54c33ce36c3233b8b8d797467e275e9a23e.zip |
Version bump.
Package-Manager: portage-2.0.51-r13
Diffstat (limited to 'net-wireless/kismet')
-rw-r--r-- | net-wireless/kismet/ChangeLog | 9 | ||||
-rw-r--r-- | net-wireless/kismet/Manifest | 16 | ||||
-rw-r--r-- | net-wireless/kismet/files/digest-kismet-2005.01.1 | 2 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet-2005.01.1-conf.d | 27 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet-2005.01.1-init.d | 41 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-2005.01.1.ebuild | 92 |
6 files changed, 175 insertions, 12 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog index 8500d62b8fdb..366d7620f59e 100644 --- a/net-wireless/kismet/ChangeLog +++ b/net-wireless/kismet/ChangeLog @@ -1,6 +1,13 @@ # 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.55 2005/01/09 11:32:51 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.56 2005/01/16 19:29:44 brix Exp $ + +*kismet-2005.01.1 (16 Jan 2005) + + 16 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> + +files/kismet-2005.01.1-conf.d, +files/kismet-2005.01.1-init.d, + +kismet-2005.01.1.ebuild: + Version bump. 09 Jan 2005; Sven Wegener <swegener@gentoo.org> kismet-2004.10.1-r1.ebuild: diff --git a/net-wireless/kismet/Manifest b/net-wireless/kismet/Manifest index 9f1261fee0aa..b4383e17b1a9 100644 --- a/net-wireless/kismet/Manifest +++ b/net-wireless/kismet/Manifest @@ -1,16 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 2514a44dd70e62016e73a07106cd648a kismet-2005.01.1.ebuild 2299 MD5 3df1ca9aabc3a11a05762002ed770f98 kismet-2004.10.1-r1.ebuild 2268 -MD5 96ba11f9b8b54551ef4bc7d69e4f91fb ChangeLog 8313 +MD5 fcd45bd81298de6330421669974ce8cf ChangeLog 8507 MD5 32831d719499c83f7942f6432ef58278 metadata.xml 252 +MD5 813a26c9847e745a1b65147e8e8e472e files/kismet-2005.01.1-init.d 1131 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 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.9.10 (GNU/Linux) - -iD8DBQFB4RZpI1lqEGTUzyQRAiTVAJ4zJ2+2atEDClx699y1t9Fr9XcOPgCeMwjZ -lIlwx9cZLYrFjpN5G79HxIE= -=BIFJ ------END PGP SIGNATURE----- +MD5 c7f67b063ea9d619cb9472146b4c7163 files/digest-kismet-2005.01.1 138 +MD5 8408c7aaa657ab84dbb2c4ddc43b187b files/kismet-2005.01.1-conf.d 805 diff --git a/net-wireless/kismet/files/digest-kismet-2005.01.1 b/net-wireless/kismet/files/digest-kismet-2005.01.1 new file mode 100644 index 000000000000..dcd98cf4a819 --- /dev/null +++ b/net-wireless/kismet/files/digest-kismet-2005.01.1 @@ -0,0 +1,2 @@ +MD5 051c301509b1bb022409abc673c58a37 kismet-2005-01-R1.tar.gz 865774 +MD5 aa1f1470f7f8bd301c92dd199a4ae60e ethereal-0.10.8.tar.bz2 5351028 diff --git a/net-wireless/kismet/files/kismet-2005.01.1-conf.d b/net-wireless/kismet/files/kismet-2005.01.1-conf.d new file mode 100644 index 000000000000..006535028d35 --- /dev/null +++ b/net-wireless/kismet/files/kismet-2005.01.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.01.1-conf.d,v 1.1 2005/01/16 19:29:44 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.01.1-init.d b/net-wireless/kismet/files/kismet-2005.01.1-init.d new file mode 100644 index 000000000000..34242dd3a342 --- /dev/null +++ b/net-wireless/kismet/files/kismet-2005.01.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.01.1-init.d,v 1.1 2005/01/16 19:29:44 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.01.1.ebuild b/net-wireless/kismet/kismet-2005.01.1.ebuild new file mode 100644 index 000000000000..6ed72830e4a1 --- /dev/null +++ b/net-wireless/kismet/kismet-2005.01.1.ebuild @@ -0,0 +1,92 @@ +# 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.01.1.ebuild,v 1.1 2005/01/16 19:29:44 brix Exp $ + +inherit gnuconfig linux-info + +MY_P=${P/\./-} +MY_P=${MY_P/./-R} +S=${WORKDIR}/${MY_P} + +ETHEREAL_VERSION="0.10.8" + +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 + sys-apps/sed" +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-01-R1 doesn't honor the --disable-gps flag + # brix@gentoo.org + +src_unpack() { + unpack ${A} + + # make sure we compile against installed linux-sources if available + sed -i "s:-I/lib/modules/.*/build/include/:-I${KV_DIR}/include/:g" \ + ${S}/configure + + gnuconfig_update ${S} +} + +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` \ + || die "econf failed" + + emake dep || die "emake dep failed" + emake || die "make failed" +} + +src_install () { + emake DESTDIR=${D} install || die "emake install failed" + + dodoc CHANGELOG README TODO docs/* + + exeinto /etc/init.d + newexe ${FILESDIR}/${P}-init.d kismet + + insinto /etc/conf.d + newins ${FILESDIR}/${P}-conf.d kismet +} + +pkg_postinst() { + einfo "" + einfo "Please notice that the config file location has changed from" + einfo "/etc/kismet to /etc/" + einfo "" + einfo "For usage instructions please see" + einfo "/usr/share/doc/${PF}/README.gz" + einfo "" +} |