aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/spectools
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@FreeBSD.org>2009-07-26 12:47:42 +0000
committerHenrik Brix Andersen <brix@FreeBSD.org>2009-07-26 12:47:42 +0000
commit0c136f69269d7726191823e45d8de45eefb8e086 (patch)
treea3a8430f9537de3217b9102c21e7a02b5a2a36bf /net-mgmt/spectools
parent3f10d7d21e72fd9627e0c990641735ba4898e24f (diff)
downloadports-0c136f69269d7726191823e45d8de45eefb8e086.tar.gz
ports-0c136f69269d7726191823e45d8de45eefb8e086.zip
- Update to version 2009-06-R1
Notes
Notes: svn path=/head/; revision=238379
Diffstat (limited to 'net-mgmt/spectools')
-rw-r--r--net-mgmt/spectools/Makefile46
-rw-r--r--net-mgmt/spectools/distinfo6
-rw-r--r--net-mgmt/spectools/files/patch-wispy_hw_dbx.c19
-rw-r--r--net-mgmt/spectools/pkg-plist1
4 files changed, 53 insertions, 19 deletions
diff --git a/net-mgmt/spectools/Makefile b/net-mgmt/spectools/Makefile
index 471acece2e93..fbb094bc6916 100644
--- a/net-mgmt/spectools/Makefile
+++ b/net-mgmt/spectools/Makefile
@@ -6,14 +6,15 @@
#
PORTNAME= spectools
-PORTVERSION= 200710.r2
-PORTREVISION= 1
+PORTVERSION= 200906.r1
CATEGORIES= net-mgmt
-MASTER_SITES= http://www.kismetwireless.net/code/
-DISTNAME= spectools-2007-10-R2
+MASTER_SITES= http://www.kismetwireless.net/code/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= brix
+DISTNAME= spectools-2009-06-R1
MAINTAINER= brix@FreeBSD.org
-COMMENT= Tools for the 2.4GHz Wi-Spy spectrum analyzers from MetaGeek LLC
+COMMENT= Tools for the Wi-Spy spectrum analyzers from MetaGeek LLC
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -22,7 +23,27 @@ USE_GMAKE= yes
PORTDOCS= README
-OPTIONS= GTK "Enable graphical client" On
+OPTIONS= GTK "Enable graphical client" On \
+ NCURSES "Enable ncurses client" On
+
+ALL_TARGET= spectool_net spectool_raw
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_GTK)
+ALL_TARGET+= spectool_gtk
+LIB_DEPENDS+= gtk:${PORTSDIR}/x11-toolkits/gtk20
+PLIST_SUB+= GTK=""
+.else
+PLIST_SUB+= GTK="@comment "
+.endif
+
+.if defined(WITH_NCURSES)
+ALL_TARGET+= spectool_curses
+PLIST_SUB+= NCURSES=""
+.else
+PLIST_SUB+= NCURSES="@comment "
+.endif
.include <bsd.port.pre.mk>
@@ -36,22 +57,15 @@ IGNORE= is unsupported on systems prior to FreeBSD v700027
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb
.endif
-ALL_TARGET= spectool_net spectool_raw
-
-.if defined(WITH_GTK)
-ALL_TARGET+= spectool_gtk
-LIB_DEPENDS+= gtk:${PORTSDIR}/x11-toolkits/gtk20
-PLIST_SUB= GTK=""
-.else
-PLIST_SUB= GTK="@comment "
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/spectool_net ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/spectool_raw ${PREFIX}/bin
.if defined(WITH_GTK)
${INSTALL_PROGRAM} ${WRKSRC}/spectool_gtk ${PREFIX}/bin
.endif
+.if defined(WITH_NCURSES)
+ ${INSTALL_PROGRAM} ${WRKSRC}/spectool_curses ${PREFIX}/bin
+.endif
post-install:
.if !defined(NOPORTDOCS)
diff --git a/net-mgmt/spectools/distinfo b/net-mgmt/spectools/distinfo
index e3853a48ebcf..1d1691a78681 100644
--- a/net-mgmt/spectools/distinfo
+++ b/net-mgmt/spectools/distinfo
@@ -1,3 +1,3 @@
-MD5 (spectools-2007-10-R2.tar.gz) = 1796b9c454a624936efdd8d95faf0da1
-SHA256 (spectools-2007-10-R2.tar.gz) = fc79ad4f32276fab2da17c28a7af514085612eb479a59d79b1e7349f1e321756
-SIZE (spectools-2007-10-R2.tar.gz) = 198839
+MD5 (spectools-2009-06-R1.tar.gz) = b84c8303416755101b8f1a1b37d77164
+SHA256 (spectools-2009-06-R1.tar.gz) = 0d40c31933b4718c82cdab1c36a42be8fcccec1d642c8438e1aa2ff4868d56f2
+SIZE (spectools-2009-06-R1.tar.gz) = 184614
diff --git a/net-mgmt/spectools/files/patch-wispy_hw_dbx.c b/net-mgmt/spectools/files/patch-wispy_hw_dbx.c
new file mode 100644
index 000000000000..b7f9899a8fab
--- /dev/null
+++ b/net-mgmt/spectools/files/patch-wispy_hw_dbx.c
@@ -0,0 +1,19 @@
+--- wispy_hw_dbx.c.orig 2009-07-26 13:55:31.000000000 +0200
++++ wispy_hw_dbx.c 2009-07-26 13:55:57.000000000 +0200
+@@ -624,16 +624,12 @@ int wispydbx_usb_getpollfd(wispy_phy *ph
+ return auxptr->sockpair[0];
+ }
+
+-extern int usb_debug;
+-
+ int wispydbx_usb_open(wispy_phy *phydev) {
+ int pid_status;
+ struct usb_dev_handle *wispy;
+ wispydbx_usb_aux *auxptr = (wispydbx_usb_aux *) phydev->auxptr;
+ wispydbx_startsweep startcmd;
+
+- usb_debug = 1024;
+-
+ /* Make the client/server socketpair */
+ if (socketpair(PF_UNIX, SOCK_DGRAM, 0, auxptr->sockpair) < 0) {
+ snprintf(phydev->errstr, WISPY_ERROR_MAX,
diff --git a/net-mgmt/spectools/pkg-plist b/net-mgmt/spectools/pkg-plist
index b8a8ec06016e..d65f997992b4 100644
--- a/net-mgmt/spectools/pkg-plist
+++ b/net-mgmt/spectools/pkg-plist
@@ -1,3 +1,4 @@
%%GTK%%bin/spectool_gtk
+%%NCURSES%%bin/spectool_curses
bin/spectool_net
bin/spectool_raw