summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-01-20 13:04:26 +0000
committerChristian Heim <phreak@gentoo.org>2007-01-20 13:04:26 +0000
commit6d3f2047493bcbc71ed1162b762f7e7d0a7bbdfb (patch)
treedc990b4ff1810d95fcfbf8147cd055304f7ee465 /net-wireless/kismet
parentWhite space cleaning (diff)
downloadgentoo-2-6d3f2047493bcbc71ed1162b762f7e7d0a7bbdfb.tar.gz
gentoo-2-6d3f2047493bcbc71ed1162b762f7e7d0a7bbdfb.tar.bz2
gentoo-2-6d3f2047493bcbc71ed1162b762f7e7d0a7bbdfb.zip
Version bump (thanks to ChazeFroy <chazefroy at gmail.com> in #162394 for reporting it).
(Portage version: 2.1.2-r1)
Diffstat (limited to 'net-wireless/kismet')
-rw-r--r--net-wireless/kismet/ChangeLog11
-rw-r--r--net-wireless/kismet/files/digest-kismet-2007.01.1b3
-rw-r--r--net-wireless/kismet/files/kismet-2007.01.1b-Makefile.in.patch56
-rw-r--r--net-wireless/kismet/files/kismet-2007.01.1b-conf.d12
-rw-r--r--net-wireless/kismet/files/kismet-2007.01.1b-init.d27
-rw-r--r--net-wireless/kismet/kismet-2007.01.1b.ebuild56
6 files changed, 164 insertions, 1 deletions
diff --git a/net-wireless/kismet/ChangeLog b/net-wireless/kismet/ChangeLog
index a15a110e4881..220f248056c7 100644
--- a/net-wireless/kismet/ChangeLog
+++ b/net-wireless/kismet/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-wireless/kismet
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.90 2007/01/14 19:40:09 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/ChangeLog,v 1.91 2007/01/20 13:04:26 phreak Exp $
+
+*kismet-2007.01.1b (20 Jan 2007)
+
+ 20 Jan 2007; Christian Heim <phreak@gentoo.org>
+ +files/kismet-2007.01.1b-Makefile.in.patch,
+ +files/kismet-2007.01.1b-conf.d, +files/kismet-2007.01.1b-init.d,
+ +kismet-2007.01.1b.ebuild:
+ Version bump (thanks to ChazeFroy <chazefroy at gmail.com> in #162394 for
+ reporting it).
14 Jan 2007; Christian Heim <phreak@gentoo.org> kismet-2006.04.1.ebuild:
Fixing the --with-linuxheaders line, to actually get the include dir right.
diff --git a/net-wireless/kismet/files/digest-kismet-2007.01.1b b/net-wireless/kismet/files/digest-kismet-2007.01.1b
new file mode 100644
index 000000000000..677d395056d3
--- /dev/null
+++ b/net-wireless/kismet/files/digest-kismet-2007.01.1b
@@ -0,0 +1,3 @@
+MD5 a1dcea71f0c3f881ef72f5bca2db7b39 kismet-2007-01-R1b.tar.gz 625585
+RMD160 1f066bd2669e571ffe62789b82a28bbdece2a479 kismet-2007-01-R1b.tar.gz 625585
+SHA256 1b998b34e2e9377f5ac7704295d64507234fe7656e49d384f8bf95604e97e05b kismet-2007-01-R1b.tar.gz 625585
diff --git a/net-wireless/kismet/files/kismet-2007.01.1b-Makefile.in.patch b/net-wireless/kismet/files/kismet-2007.01.1b-Makefile.in.patch
new file mode 100644
index 000000000000..a865f949d12c
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2007.01.1b-Makefile.in.patch
@@ -0,0 +1,56 @@
+Index: kismet-2007-01-R1b/Makefile.in
+===================================================================
+--- kismet-2007-01-R1b.orig/Makefile.in
++++ kismet-2007-01-R1b/Makefile.in
+@@ -5,7 +5,7 @@ VERSION_MINOR = 01
+ VERSION_TINY = R1
+
+ INSTGRP ?= "@instgrp@"
+-MANGRP ?= "@mangrp@"
++MANGRP ?= "root"
+ INSTUSR ?= "root"
+
+ ZAURUS = @zaurus@
+@@ -128,23 +128,23 @@ checkuiconfig:
+ fi
+
+ binuserinstall:
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(PS) $(BIN)/$(PS);
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(DRONE) $(BIN)/$(DRONE);
++ install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(PS) $(BIN)/$(PS);
++ install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(DRONE) $(BIN)/$(DRONE);
+
+ binsuidinstall:
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 4755 $(PS) $(BIN)/$(PS);
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 4755 $(DRONE) $(BIN)/$(DRONE);
++ install -o $(INSTUSR) -g $(INSTGRP) -m 4755 $(PS) $(BIN)/$(PS);
++ install -o $(INSTUSR) -g $(INSTGRP) -m 4755 $(DRONE) $(BIN)/$(DRONE);
+
+ commoninstall:
+ mkdir -p $(ETC)
+ mkdir -p $(BIN)
+
+ install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/kismet $(BIN)/kismet
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(NC) $(BIN)/$(NC)
+- # install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(HOPPER) $(BIN)/$(HOPPER)
++ install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(NC) $(BIN)/$(NC)
++ # install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(HOPPER) $(BIN)/$(HOPPER)
+ @if test "$(ZAURUS)" = "yes"; then \
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(BUZZER) $(BIN)/buzzme; \
+- echo install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(BUZZER) $(BIN)/buzzme; \
++ install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(BUZZER) $(BIN)/buzzme; \
++ echo install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(BUZZER) $(BIN)/buzzme; \
+ fi
+ #install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/kismet_monitor $(BIN)/kismet_monitor
+ #install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/kismet_unmonitor $(BIN)/kismet_unmonitor
+@@ -159,8 +159,8 @@ commoninstall:
+ install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_drone.conf.5 $(MAN)/man5/kismet_drone.conf.5
+
+ @if test "$(GPSLBUILD)" = "$(GPSL)"; then \
+- install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(GPSL) $(BIN)/$(GPSL); \
+- echo install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(GPSL) $(BIN)/$(GPSL); \
++ install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(GPSL) $(BIN)/$(GPSL); \
++ echo install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(GPSL) $(BIN)/$(GPSL); \
+ install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/gpsmap-helper-earthamaps $(BIN)/gpsmap-helper-earthamaps; \
+ echo install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/gpsmap-helper-earthamaps $(BIN)/gpsmap-helper-earthamaps; \
+ install -o $(INSTUSR) -g $(MANGRP) -m 644 man/gpsmap.1 $(MAN)/man1/gpsmap.1; \
diff --git a/net-wireless/kismet/files/kismet-2007.01.1b-conf.d b/net-wireless/kismet/files/kismet-2007.01.1b-conf.d
new file mode 100644
index 000000000000..d203513c7143
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2007.01.1b-conf.d
@@ -0,0 +1,12 @@
+# /etc/conf.d/kismet - configuration file for /etc/init.d/kismet
+
+# Kismet configuration is 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
+
+# Options to pass to kismet_server, see `kismet_server --help`
+KISMET_SERVER_OPTIONS=""
diff --git a/net-wireless/kismet/files/kismet-2007.01.1b-init.d b/net-wireless/kismet/files/kismet-2007.01.1b-init.d
new file mode 100644
index 000000000000..7c848f1092e3
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2007.01.1b-init.d
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2007.01.1b-init.d,v 1.1 2007/01/20 13:04:26 phreak Exp $
+
+checkconfig() {
+ if [ ! -e /etc/kismet.conf ]; then
+ eerror "Configuration file /etc/kismet.conf not found"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ 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_OPTIONS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping kismet server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/kismet_server.pid
+ eend ${?}
+}
diff --git a/net-wireless/kismet/kismet-2007.01.1b.ebuild b/net-wireless/kismet/kismet-2007.01.1b.ebuild
new file mode 100644
index 000000000000..dd35105b7f03
--- /dev/null
+++ b/net-wireless/kismet/kismet-2007.01.1b.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2007.01.1b.ebuild,v 1.1 2007/01/20 13:04:26 phreak Exp $
+
+inherit toolchain-funcs linux-info eutils
+
+MY_P=${P/\./-}
+MY_P=${MY_P/./-R}
+S=${WORKDIR}/${MY_P}
+
+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"
+IUSE="ncurses"
+
+DEPEND="${RDEPEND}"
+RDEPEND="net-wireless/wireless-tools
+ net-libs/libpcap
+ ncurses? ( sys-libs/ncurses )"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${P}-Makefile.in.patch
+
+ sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
+ "${S}"/conf/kismet.conf.in
+}
+
+src_compile() {
+ # the configure script only honors '--disable-foo'
+ local myconf="--disable-gpsmap"
+
+ if ! use ncurses; then
+ myconf="${myconf} --disable-curses --disable-panel"
+ fi
+
+ econf ${myconf} \
+ --with-linuxheaders="${KV_DIR}" || 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
+}