summaryrefslogtreecommitdiffstats
path: root/package/kismet/kismet-nobsd.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2009-09-01 14:01:40 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2009-09-09 16:40:19 +0200
commit57f3b11d111fb5f7fd48d64a43a83e25d69bdb4c (patch)
tree87c9f8cee5b268a0bd70bdaa8ac2162da2862270 /package/kismet/kismet-nobsd.patch
parent8c1189587654cac752d920ac37730afac0c758a7 (diff)
downloadbuildroot-novena-57f3b11d111fb5f7fd48d64a43a83e25d69bdb4c.tar.gz
buildroot-novena-57f3b11d111fb5f7fd48d64a43a83e25d69bdb4c.zip
kismet: bump version and convert to Makefile.autotools.in format
Closes #487 * Bump kismet from 2007-10-R1 to 2009-06-R1 (newcore: nicer, more features) * Migrate to Makefile.autotools.in * Introduce new options to just install the server, client, drone or combination Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/kismet/kismet-nobsd.patch')
-rw-r--r--package/kismet/kismet-nobsd.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/package/kismet/kismet-nobsd.patch b/package/kismet/kismet-nobsd.patch
new file mode 100644
index 000000000..451d9ce4a
--- /dev/null
+++ b/package/kismet/kismet-nobsd.patch
@@ -0,0 +1,44 @@
+diff -Nura kismet-2009-06-R1/ifcontrol.cc kismet-2009-06-R1-nobsd/ifcontrol.cc
+--- kismet-2009-06-R1/ifcontrol.cc 2009-04-08 16:57:44.000000000 -0300
++++ kismet-2009-06-R1-nobsd/ifcontrol.cc 2009-09-01 12:54:44.000000000 -0300
+@@ -148,7 +148,7 @@
+ devlinklen = readlink(devlink.c_str(), devlinktarget, 511);
+ if (devlinklen > 0) {
+ devlinktarget[devlinklen] = '\0';
+- rind = rindex(devlinktarget, '/');
++ rind = strrchr(devlinktarget, '/');
+ // If we found it and not at the end of the line
+ if (rind != NULL && (rind - devlinktarget) + 1 < devlinklen)
+ return string(rind + 1);
+diff -Nura kismet-2009-06-R1/iwcontrol.cc kismet-2009-06-R1-nobsd/iwcontrol.cc
+--- kismet-2009-06-R1/iwcontrol.cc 2009-04-20 00:22:55.000000000 -0300
++++ kismet-2009-06-R1-nobsd/iwcontrol.cc 2009-09-01 12:54:44.000000000 -0300
+@@ -697,7 +697,7 @@
+ return -1;
+ }
+
+- bzero(buffer, sizeof(buffer));
++ memset(buffer, 0, sizeof(buffer));
+
+ memset(&wrq, 0, sizeof(struct iwreq));
+
+@@ -732,7 +732,7 @@
+ memcpy((char *) &range, buffer, sizeof(iw_range));
+ } else {
+ /* Zero unknown fields */
+- bzero((char *) &range, sizeof(struct iw_range));
++ memset((char *) &range, 0, sizeof(struct iw_range));
+
+ /* Initial part unmoved */
+ memcpy((char *) &range, buffer, iwr15_off(num_channels));
+diff -Nura kismet-2009-06-R1/madwifing_control.cc kismet-2009-06-R1-nobsd/madwifing_control.cc
+--- kismet-2009-06-R1/madwifing_control.cc 2009-03-22 23:19:19.000000000 -0300
++++ kismet-2009-06-R1-nobsd/madwifing_control.cc 2009-09-01 12:54:42.000000000 -0300
+@@ -34,7 +34,6 @@
+ #include <stdint.h>
+ #include <ctype.h>
+ #include <getopt.h>
+-#include <err.h>
+ #include <dirent.h>
+ #include <fcntl.h>
+ #include <errno.h>