summaryrefslogtreecommitdiff
path: root/testing/kismet
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-13 04:53:33 +0000
committerroot <root@rshg047.dnsready.net>2011-04-13 04:53:33 +0000
commit6dab5c46b00f624c7900ff6d11b75bcafbe251d0 (patch)
tree3f4cd3c5e20b03bbad9955444c32083ddd92b422 /testing/kismet
parent28b5bbf3fee0627993658e096eadab71c2779912 (diff)
Wed Apr 13 04:53:33 UTC 2011
Diffstat (limited to 'testing/kismet')
-rw-r--r--testing/kismet/PKGBUILD38
-rw-r--r--testing/kismet/kismet-2008-05-R1-infinite-loop.diff20
-rw-r--r--testing/kismet/kismet-build.patch11
3 files changed, 69 insertions, 0 deletions
diff --git a/testing/kismet/PKGBUILD b/testing/kismet/PKGBUILD
new file mode 100644
index 000000000..3333a8e22
--- /dev/null
+++ b/testing/kismet/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 119587 2011-04-12 15:18:27Z angvp $
+# Contributer: Jason Chu <jason@archlinux.org>
+# Maintainer: Juergen Hoetzel <jason@archlinux.org>
+
+pkgname=kismet
+pkgver=2011_03_R2
+_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=('8bf077e8111e6dc8c12cadefdf40aadd')
+
+build() {
+ cd "$srcdir/kismet-$_realver"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+
+ make dep
+ make
+ sed -i 's/prism2/wlanng/g' conf/kismet.conf
+ make DESTDIR="$pkgdir" install
+
+ 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
+}
diff --git a/testing/kismet/kismet-2008-05-R1-infinite-loop.diff b/testing/kismet/kismet-2008-05-R1-infinite-loop.diff
new file mode 100644
index 000000000..f8417943e
--- /dev/null
+++ b/testing/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/testing/kismet/kismet-build.patch b/testing/kismet/kismet-build.patch
new file mode 100644
index 000000000..9935ca4fa
--- /dev/null
+++ b/testing/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;
+