diff options
author | Ben de Groot <yngwin@gentoo.org> | 2010-03-14 13:19:08 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2010-03-14 13:19:08 +0000 |
commit | af1c49a16931e0787b81c4c9a9a9a41729e703e2 (patch) | |
tree | 7f0df44d809ee502344f7a0552966fdc3d22a7fb /net-wireless | |
parent | Version bump. Stop using capistrano-launcher now that the old slot is gone. (diff) | |
download | gentoo-2-af1c49a16931e0787b81c4c9a9a9a41729e703e2.tar.gz gentoo-2-af1c49a16931e0787b81c4c9a9a9a41729e703e2.tar.bz2 gentoo-2-af1c49a16931e0787b81c4c9a9a9a41729e703e2.zip |
Version bump with ebuild from Davide Pesavento (bug #273825)
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/kismet/ChangeLog | 23 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-2010.01.1.ebuild | 92 | ||||
-rw-r--r-- | net-wireless/kismet/metadata.xml | 13 |
3 files changed, 118 insertions, 10 deletions
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 <yngwin@gentoo.org> +kismet-2010.01.1.ebuild: + Version bump. Ebuild as provided by Davide Pesavento in bug 273825. 09 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> 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 <jhhudso@gentoo.org> : Version bump. - + *kismet-2.8.0b-r1 (29 Jan 2003) 29 Jan 2003; Jared Hudson <jhhudso@gentoo.org> : 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 <mholzer@gentoo.org> 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 <joker@gentoo.org> : + 23 Dec 2002; Christian Birchinger <joker@gentoo.org> : Removed sparc64 keyword. 20 Dec 2002; Jared Hudson <jhhudso@gentoo.org> : Bug ID #12459. Credit goes to Nate Lynch <ntl@swt.edu>. Added dependency on >=net-libs/libpcap-0.7.1-r1. - - + + 19 Dev 2002; Dean Bailey <alron@gentoo.org> : removed sparc64 keyword *kismet-2.6.2 (16 Dec 2002) 16 Dec 2002; Jared Hudson <jhhudso@gentoo.org> : Bug ids #9349, 10643, 11018. ebuild submitted by Alberto Ornaghi <alor@blackhats.it> - + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords - + 31 Oct 2002; Hannes Mehnert <hannes@gentoo.org>: 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 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>mobile</herd> + <herd>mobile</herd> + <use> + <flag name="client">Build the ncurses-based user interface</flag> + <flag name="pcap"> + Enable packet capturing support using <pkg>net-libs/libpcap</pkg> + </flag> + <flag name="suid"> + Install a setuid root helper binary with limited functionality; + this allows running kismet as a normal user, significantly + reducing security risks + </flag> + </use> </pkgmetadata> |