diff options
-rw-r--r-- | net-mgmt/spectools/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/spectools/files/patch-spectool_curses.c | 35 | ||||
-rw-r--r-- | net-mgmt/spectools/files/patch-spectool_net_client.h | 10 | ||||
-rw-r--r-- | net-mgmt/spectools/files/patch-spectool_raw.c | 11 |
4 files changed, 57 insertions, 0 deletions
diff --git a/net-mgmt/spectools/Makefile b/net-mgmt/spectools/Makefile index 3892c5351523..b99c3fdb034d 100644 --- a/net-mgmt/spectools/Makefile +++ b/net-mgmt/spectools/Makefile @@ -3,6 +3,7 @@ PORTNAME= spectools PORTVERSION= 201108.r1 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://www.kismetwireless.net/code/ \ ${MASTER_SITE_LOCAL} diff --git a/net-mgmt/spectools/files/patch-spectool_curses.c b/net-mgmt/spectools/files/patch-spectool_curses.c new file mode 100644 index 000000000000..8ceb17e24645 --- /dev/null +++ b/net-mgmt/spectools/files/patch-spectool_curses.c @@ -0,0 +1,35 @@ +--- spectool_curses.c.orig 2014-01-12 20:01:13.000000000 +0100 ++++ spectool_curses.c 2014-01-12 20:01:40.000000000 +0100 +@@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { + + if (o == 'h') { + Usage(); +- return; ++ return 0; + } else if (o == 'n') { + neturl = strdup(optarg); + continue; +@@ -98,20 +98,20 @@ int main(int argc, char *argv[]) { + if (sscanf(optarg, "%d", &range) != 1) { + printf("Expected number for range, see listing for supported ranges\n"); + Usage(); +- return; ++ return -1; + } + continue; + } else if (o == 'd') { + if (sscanf(optarg, "%d", &device) != 1) { + printf("Expected number for device, see listing for detected devices\n"); + Usage(); +- return; ++ return -1; + } + + if (device < 0 || device >= ndev) { + printf("Device number invalid, see listing for detected devices\n"); + Usage(); +- return; ++ return -1; + } + + continue; diff --git a/net-mgmt/spectools/files/patch-spectool_net_client.h b/net-mgmt/spectools/files/patch-spectool_net_client.h new file mode 100644 index 000000000000..06f74112248a --- /dev/null +++ b/net-mgmt/spectools/files/patch-spectool_net_client.h @@ -0,0 +1,10 @@ +--- spectool_net_client.h.orig 2014-01-12 19:57:48.000000000 +0100 ++++ spectool_net_client.h 2014-01-12 19:55:31.000000000 +0100 +@@ -134,6 +134,7 @@ void spectool_netcli_setbufferwrite(spec + int spectool_netcli_getwritepend(spectool_server *sr); + int spectool_netcli_getwritefd(spectool_server *sr); + int spectool_netcli_poll(spectool_server *sr, char *errstr); ++int spectool_netcli_writepoll(spectool_server *sr, char *errstr); + spectool_phy *spectool_netcli_enabledev(spectool_server *sr, unsigned int dev_id, + char *errstr); + int spectool_netcli_disabledev(spectool_server *sr, spectool_phy *dev); diff --git a/net-mgmt/spectools/files/patch-spectool_raw.c b/net-mgmt/spectools/files/patch-spectool_raw.c new file mode 100644 index 000000000000..aac123cfa4b7 --- /dev/null +++ b/net-mgmt/spectools/files/patch-spectool_raw.c @@ -0,0 +1,11 @@ +--- spectool_raw.c.orig 2014-01-12 19:59:05.000000000 +0100 ++++ spectool_raw.c 2014-01-12 19:59:50.000000000 +0100 +@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) { + + if (o == 'h') { + Usage(); +- return; ++ return 0; + } else if (o == 'b') { + bcastlisten = 1; + } else if (o == 'n') { |