Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2014 19:22:13 +0000 (UTC)
From:      Henrik Brix Andersen <brix@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339536 - in head/net-mgmt/spectools: . files
Message-ID:  <201401121922.s0CJMD86071903@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brix
Date: Sun Jan 12 19:22:13 2014
New Revision: 339536
URL: http://svnweb.freebsd.org/changeset/ports/339536

Log:
  - Add needed patches
  - Bump PORTREVISION

Added:
  head/net-mgmt/spectools/files/
  head/net-mgmt/spectools/files/patch-spectool_curses.c   (contents, props changed)
  head/net-mgmt/spectools/files/patch-spectool_net_client.h   (contents, props changed)
  head/net-mgmt/spectools/files/patch-spectool_raw.c   (contents, props changed)
Modified:
  head/net-mgmt/spectools/Makefile

Modified: head/net-mgmt/spectools/Makefile
==============================================================================
--- head/net-mgmt/spectools/Makefile	Sun Jan 12 19:21:08 2014	(r339535)
+++ head/net-mgmt/spectools/Makefile	Sun Jan 12 19:22:13 2014	(r339536)
@@ -3,6 +3,7 @@
 
 PORTNAME=	spectools
 PORTVERSION=	201108.r1
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://www.kismetwireless.net/code/ \
 		${MASTER_SITE_LOCAL}

Added: head/net-mgmt/spectools/files/patch-spectool_curses.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/spectools/files/patch-spectool_curses.c	Sun Jan 12 19:22:13 2014	(r339536)
@@ -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;

Added: head/net-mgmt/spectools/files/patch-spectool_net_client.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/spectools/files/patch-spectool_net_client.h	Sun Jan 12 19:22:13 2014	(r339536)
@@ -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);

Added: head/net-mgmt/spectools/files/patch-spectool_raw.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/spectools/files/patch-spectool_raw.c	Sun Jan 12 19:22:13 2014	(r339536)
@@ -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') {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401121922.s0CJMD86071903>