From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/kismet/PKGBUILD | 38 +++++++++++++++++++++++ extra/kismet/kismet-2008-05-R1-infinite-loop.diff | 20 ++++++++++++ extra/kismet/kismet-build.patch | 11 +++++++ 3 files changed, 69 insertions(+) create mode 100644 extra/kismet/PKGBUILD create mode 100644 extra/kismet/kismet-2008-05-R1-infinite-loop.diff create mode 100644 extra/kismet/kismet-build.patch (limited to 'extra/kismet') diff --git a/extra/kismet/PKGBUILD b/extra/kismet/PKGBUILD new file mode 100644 index 000000000..b381469ad --- /dev/null +++ b/extra/kismet/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 94735 2010-10-10 15:05:47Z guillaume $ +# Contributer: Jason Chu +# Maintainer: Juergen Hoetzel + +pkgname=kismet +pkgver=2010_07_R1 +_realver="${pkgver//_/-}" +pkgrel=1 +pkgdesc="802.11b sniffing software" +arch=('i686' 'x86_64') +license=('GPL') +depends=('gmp' 'imagemagick' 'libpcap>=1.0.0' 'ncurses' 'dbus' 'libjpeg>=7') +optdepends=(perl-libwww) +url="http://www.kismetwireless.net/" +backup=('etc/kismet.conf' 'etc/kismet_drone.conf') +options=('!makeflags') +source=(http://www.kismetwireless.net/code/kismet-${pkgver//_/-}.tar.gz) +md5sums=('85e59186eb529889118b5635f35cf57d') + +build() { + cd "$srcdir/kismet-$_realver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var || return 1 + + make dep || return 1 + make || return 1 + sed -i 's/prism2/wlanng/g' conf/kismet.conf || return 1 + make DESTDIR="$pkgdir" install || return 1 + + chown root:root "$pkgdir"/usr/share/man/man{1,5}/* + + install -D -m 644 "$srcdir/kismet-$_realver/README" "$pkgdir/usr/share/kismet/README" + + # Fix the *.conf unexpanded ${prefix} problems + sed -i 's%\${prefix}%/usr%' "$pkgdir"/etc/*.conf || return 1 +} diff --git a/extra/kismet/kismet-2008-05-R1-infinite-loop.diff b/extra/kismet/kismet-2008-05-R1-infinite-loop.diff new file mode 100644 index 000000000..f8417943e --- /dev/null +++ b/extra/kismet/kismet-2008-05-R1-infinite-loop.diff @@ -0,0 +1,20 @@ +--- gpsmap.cc ++++ gpsmap.cc +@@ -874,7 +874,7 @@ + + // Break up the path to the gpsxml file and form a path based on that + unsigned int lastslash = 0; +- for (unsigned int x = origxmlfile.find('/'); x != string::npos; ++ for (string::size_type x = origxmlfile.find('/'); x != string::npos; + lastslash = x, x = origxmlfile.find('/', lastslash+1)) { + // We don't actually need to do anything... + } +@@ -882,7 +882,7 @@ + comp = origxmlfile.substr(0, lastslash); + + lastslash = 0; +- for (unsigned int x = orignetfile.find('/'); x != string::npos; ++ for (string::size_type x = orignetfile.find('/'); x != string::npos; + lastslash = x, x = orignetfile.find('/', lastslash+1)) { + // We don't actually need to do anything... + } diff --git a/extra/kismet/kismet-build.patch b/extra/kismet/kismet-build.patch new file mode 100644 index 000000000..9935ca4fa --- /dev/null +++ b/extra/kismet/kismet-build.patch @@ -0,0 +1,11 @@ +--- macaddr.h.orig 2009-07-08 02:29:38.000000000 -0400 ++++ macaddr.h 2009-07-08 02:37:54.000000000 -0400 +@@ -73,7 +73,7 @@ + longmac |= (uint64_t) bs_in[5] << ((MAC_LEN - 5 - 1) * 8); + + // If it has a mask component, get that +- char *in_mask = strchr(in, '/'); ++ const char *in_mask = strchr(in, '/'); + if (in_mask != NULL) { + longmask = 0; + -- cgit v1.2.3-54-g00ecf