From af1c49a16931e0787b81c4c9a9a9a41729e703e2 Mon Sep 17 00:00:00 2001 From: Ben de Groot Date: Sun, 14 Mar 2010 13:19:08 +0000 Subject: Version bump with ebuild from Davide Pesavento (bug #273825) (Portage version: 2.2_rc67/cvs/Linux x86_64) --- net-wireless/kismet/ChangeLog | 23 +++++--- net-wireless/kismet/kismet-2010.01.1.ebuild | 92 +++++++++++++++++++++++++++++ net-wireless/kismet/metadata.xml | 13 +++- 3 files changed, 118 insertions(+), 10 deletions(-) create mode 100644 net-wireless/kismet/kismet-2010.01.1.ebuild (limited to 'net-wireless') diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog index 32efef4b80d4..be38a25a3632 100644 --- a/net-wireless/kismet/ChangeLog +++ b/net-wireless/kismet/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-wireless/kismet -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.106 2009/08/09 15:09:23 ssuominen Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.107 2010/03/14 13:19:08 yngwin Exp $ + +*kismet-2010.01.1 (14 Mar 2010) + + 14 Mar 2010; Ben de Groot +kismet-2010.01.1.ebuild: + Version bump. Ebuild as provided by Davide Pesavento in bug 273825. 09 Aug 2009; Samuli Suominen kismet-2008.05.1.ebuild, +files/kismet-2008.05.1-glibc-2.10.patch: @@ -407,13 +412,13 @@ Sed fix and added inits to 2.8.1.ebuild 3 Feb 2003; Jared Hudson : Version bump. - + *kismet-2.8.0b-r1 (29 Jan 2003) 29 Jan 2003; Jared Hudson : Added ethereal use flag, and made ethereal download/compile optional based on that use flag. Bug # 14565 - + *kismet-2.8.0b (30 Dec 2002) 30 Dec 2002; Martin Holzer kismet-2.8.0b.ebuild ChangeLog files/digest-kismet-2.8.0b : @@ -431,22 +436,22 @@ *kismet-2.6.2-r1 (20 Dec 2002) - 23 Dec 2002; Christian Birchinger : + 23 Dec 2002; Christian Birchinger : Removed sparc64 keyword. 20 Dec 2002; Jared Hudson : Bug ID #12459. Credit goes to Nate Lynch . Added dependency on >=net-libs/libpcap-0.7.1-r1. - - + + 19 Dev 2002; Dean Bailey : removed sparc64 keyword *kismet-2.6.2 (16 Dec 2002) 16 Dec 2002; Jared Hudson : Bug ids #9349, 10643, 11018. ebuild submitted by Alberto Ornaghi - + 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords - + 31 Oct 2002; Hannes Mehnert : moved to net-wireless diff --git a/net-wireless/kismet/kismet-2010.01.1.ebuild b/net-wireless/kismet/kismet-2010.01.1.ebuild new file mode 100644 index 000000000000..1623c5f57893 --- /dev/null +++ b/net-wireless/kismet/kismet-2010.01.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2010.01.1.ebuild,v 1.1 2010/03/14 13:19:08 yngwin Exp $ + +EAPI="2" + +inherit eutils + +MY_P=${P/\./-} +MY_P=${MY_P/./-R} + +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" + +# plugins have unresolved QA issues +#KISMET_PLUGINS="autowep btscan ptw spectools" +IUSE="+client kernel_linux +pcre +pcap +suid" # ${KISMET_PLUGINS}" + +RDEPEND="client? ( sys-libs/ncurses ) + kernel_linux? ( dev-libs/libnl + sys-libs/libcap ) + pcap? ( net-libs/libpcap ) + pcre? ( dev-libs/libpcre )" +# btscan? ( net-wireless/bluez ) +# ptw? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i -e 's:# *logprefix=.*:logprefix=/tmp:' conf/kismet.conf.in \ + || die "failed to change logprefix" +} + +src_configure() { + econf --with-suidgroup=kismet \ + $(use_enable client) \ + $(use_enable kernel_linux linuxwext) \ + $(use_enable pcre) \ + $(use_enable pcap) +} + +src_compile() { + emake || die "emake failed" + +# for plugin in ${KISMET_PLUGINS}; do +# if use ${plugin}; then +# emake -C plugin-${plugin} KIS_SRC_DIR="${S}" \ +# || die "emake in plugin-${plugin} failed" +# fi +# done +} + +src_install() { + emake DESTDIR="${D}" commoninstall || die "emake install failed" + +# for plugin in ${KISMET_PLUGINS}; do +# if use ${plugin}; then +# emake -C plugin-${plugin} KIS_SRC_DIR="${S}" DESTDIR="${D}" install \ +# || die "emake install in plugin-${plugin} failed" +# fi +# done + + dodoc README RELEASENOTES.txt docs/{DEVEL.client,README.newcore} || die + + insinto /etc + doins conf/kismet{,_drone}.conf || die + + newinitd "${FILESDIR}"/${PN}.initd kismet || die + newconfd "${FILESDIR}"/${PN}.confd kismet || die + + if use suid; then + dobin kismet_capture || die + fperms 4550 /usr/bin/kismet_capture || die + fi +} + +pkg_preinst() { + if use suid; then + enewgroup kismet + fowners root:kismet /usr/bin/kismet_capture || die + elog "Kismet has been installed with a setuid-root helper binary" + elog "to enable minimal-root operation. Users need to be part of" + elog "the 'kismet' group to perform captures from physical devices." + fi +} diff --git a/net-wireless/kismet/metadata.xml b/net-wireless/kismet/metadata.xml index bfaf333f3c65..0f220e806d7c 100644 --- a/net-wireless/kismet/metadata.xml +++ b/net-wireless/kismet/metadata.xml @@ -1,5 +1,16 @@ - mobile + mobile + + Build the ncurses-based user interface + + Enable packet capturing support using net-libs/libpcap + + + Install a setuid root helper binary with limited functionality; + this allows running kismet as a normal user, significantly + reducing security risks + + -- cgit v1.2.3-65-gdbad