Hi,

I put together some changes to the net/gnome-netstatus applet to allow
it to detect and work with the new wlan interface system that was just
introduced in CURRENT.

This new code doesn't identify non-wlanN interfaces as wifi anymore.

I think it may need some help in getting signal-strength detection
properly using the if_ndis driver. Mine keeps telling me that the signal
strength is always 100% no matter where I walk in my apt.

-- 
Coleman Kane
diff --git a/net/gnome-netstatus/Makefile b/net/gnome-netstatus/Makefile
index 2e6c3f0..08be832 100644
--- a/net/gnome-netstatus/Makefile
+++ b/net/gnome-netstatus/Makefile
@@ -8,7 +8,7 @@
 
 PORTNAME=	gnome-netstatus
 PORTVERSION=	2.12.1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net gnome
 MASTER_SITES=	${MASTER_SITE_GNOME}
 MASTER_SITE_SUBDIR=	sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
index 5ffcd32..dca1903 100644
--- a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
+++ b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c
@@ -1,5 +1,5 @@
 --- src/netstatus-sysdeps.c.orig	2007-02-13 04:39:19.000000000 -0500
-+++ src/netstatus-sysdeps.c	2007-07-29 13:14:34.000000000 -0400
++++ src/netstatus-sysdeps.c	2008-04-23 13:07:24.000000000 -0400
 @@ -37,13 +37,26 @@
  
  #ifdef __FreeBSD__
@@ -157,7 +157,12 @@
  
  char *
  netstatus_sysdeps_read_iface_wireless_details (const char *iface,
-@@ -548,21 +633,44 @@ netstatus_sysdeps_read_iface_wireless_de
+@@ -544,25 +629,52 @@ netstatus_sysdeps_read_iface_wireless_de
+   if (signal_strength)
+     *signal_strength = 0;
+ 
++#if __FreeBSD_version < 800036
+   if (g_strncasecmp (iface, "an",   2) &&
        g_strncasecmp (iface, "wi",   2) &&
        g_strncasecmp (iface, "ath",  3) &&
        g_strncasecmp (iface, "ndis", 4) &&
@@ -168,6 +173,9 @@
 +      g_strncasecmp (iface, "rum",  3) &&
 +      g_strncasecmp (iface, "ray",  3) &&
        g_strncasecmp (iface, "acx",  3))
++#else
++  if (g_strncasecmp (iface, "wlan", 4))
++#endif
      return error_message;
  
 +#if __FreeBSD_version < 700046

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to