summaryrefslogtreecommitdiff
path: root/extra/kismet
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/kismet
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/kismet')
-rw-r--r--extra/kismet/PKGBUILD38
-rw-r--r--extra/kismet/kismet-2008-05-R1-infinite-loop.diff20
-rw-r--r--extra/kismet/kismet-build.patch11
3 files changed, 69 insertions, 0 deletions
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 <jason@archlinux.org>
+# Maintainer: Juergen Hoetzel <jason@archlinux.org>
+
+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;
+