summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-02 00:51:09 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-02 00:51:09 +0800
commitd88282db727d2da3886ad87d63a3fcf4a046773f (patch)
tree52fd4efae3ac072472cb25ed91f821c71caac950 /net
parent907eee6fe134c6a3bbdbf95def582d86adc9380e (diff)
downloadmarcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.gz
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.bz2
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.lz
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.xz
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.zst
marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.zip
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8724 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net')
-rw-r--r--net/netspeed_applet/Makefile28
-rw-r--r--net/netspeed_applet/distinfo3
-rw-r--r--net/netspeed_applet/files/patch-src_backend.c56
-rw-r--r--net/netspeed_applet/files/patch-src_netspeed.c52
-rw-r--r--net/netspeed_applet/pkg-descr4
-rw-r--r--net/netspeed_applet/pkg-plist91
6 files changed, 234 insertions, 0 deletions
diff --git a/net/netspeed_applet/Makefile b/net/netspeed_applet/Makefile
new file mode 100644
index 000000000..278a7c3f6
--- /dev/null
+++ b/net/netspeed_applet/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: netspeed_applet
+# Date created: 08 February 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= netspeed_applet
+PORTVERSION= 0.13
+PORTREVISION= 1
+CATEGORIES= net gnome
+MASTER_SITES= http://www.wh-hms.uni-ulm.de/~mfcn/shared/netspeed/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Applet that shows how much network traffic occurs on an interface
+
+LIB_DEPENDS= gtop-2.0:${PORTSDIR}/devel/libgtop
+
+USE_X_PREFIX= yes
+INSTALLS_OMF= yes
+USE_GMAKE= yes
+USE_GNOME= gnomehier intlhack gnomeprefix gnomehack gnomepanel
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
diff --git a/net/netspeed_applet/distinfo b/net/netspeed_applet/distinfo
new file mode 100644
index 000000000..57877ac1c
--- /dev/null
+++ b/net/netspeed_applet/distinfo
@@ -0,0 +1,3 @@
+MD5 (netspeed_applet-0.13.tar.gz) = b5c5332993ed779c3653433c6f3b6a9a
+SHA256 (netspeed_applet-0.13.tar.gz) = 86041c571b0cd3113c3a428ba8d01498ed8fb81613b3e6ccf6c7c8e722530853
+SIZE (netspeed_applet-0.13.tar.gz) = 647081
diff --git a/net/netspeed_applet/files/patch-src_backend.c b/net/netspeed_applet/files/patch-src_backend.c
new file mode 100644
index 000000000..041a6d941
--- /dev/null
+++ b/net/netspeed_applet/files/patch-src_backend.c
@@ -0,0 +1,56 @@
+--- src/backend.c.orig Wed May 3 02:41:00 2006
++++ src/backend.c Wed May 3 03:03:09 2006
+@@ -20,6 +20,7 @@
+ #include <config.h>
+ #include <glibtop/netlist.h>
+ #include <glibtop/netload.h>
++#include <net/if_media.h>
+ #include "backend.h"
+
+ /* Check for all available devices. This really should be
+@@ -131,7 +132,7 @@
+
+ g_strlcpy(request.ifr_name, devinfo->name, sizeof request.ifr_name);
+
+- if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
++ if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
+ goto out;
+
+ if (ioctl(fd, SIOCGIFFLAGS, &request) == -1)
+@@ -148,16 +149,20 @@
+ }
+ }
+
++ if (devinfo->type == DEV_UNKNOWN) {
++ struct ifmediareq ifmr;
+
+- if (ioctl(fd, SIOCGIWNAME, &request) >= 0) {
+- devinfo->type = DEV_WIRELESS;
+- }
++ memset(&ifmr, 0, sizeof(ifmr));
++ g_strlcpy(ifmr.ifm_name, devinfo->name, sizeof(ifmr.ifm_name));
+
+- if (ioctl(fd, SIOCGIWENCODE, &request) >= 0) {
+- g_assert_not_reached();
++ if (ioctl(fd, SIOCGIFMEDIA, &ifmr) >= 0) {
++ switch (IFM_TYPE(ifmr.ifm_current)) {
++ case IFM_ETHER: devinfo->type = DEV_ETHERNET; break;
++ case IFM_IEEE80211: devinfo->type = DEV_WIRELESS; break;
++ }
++ }
+ }
+
+-
+ out:
+ if(fd != -1)
+ close(fd);
+@@ -210,9 +215,6 @@
+ else {
+ devinfo.type = DEV_PPP;
+ }
+- }
+- else if (g_str_has_prefix(device, "eth")) {
+- devinfo.type = DEV_ETHERNET;
+ }
+
+ get_additional_info(&devinfo);
diff --git a/net/netspeed_applet/files/patch-src_netspeed.c b/net/netspeed_applet/files/patch-src_netspeed.c
new file mode 100644
index 000000000..580d2bdd7
--- /dev/null
+++ b/net/netspeed_applet/files/patch-src_netspeed.c
@@ -0,0 +1,52 @@
+--- src/netspeed.c.orig Mon May 1 19:36:46 2006
++++ src/netspeed.c Mon May 1 19:42:28 2006
+@@ -23,6 +23,7 @@
+ #include <panel-applet.h>
+ #include <panel-applet-gconf.h>
+ #include <gconf/gconf-client.h>
++#include <glibtop.h>
+ #include "backend.h"
+ #include "netspeed.h"
+
+@@ -391,7 +392,7 @@
+
+ devices = get_available_devices();
+ for (tmp = devices; tmp; tmp = g_list_next(tmp)) {
+- if (strcmp(tmp->data, "lo") == 0) continue;
++ if (strcmp(tmp->data, "lo0") == 0) continue;
+ if (strncmp(tmp->data, "dummy", strlen("dummy")) == 0) continue;
+ info = get_device_info(tmp->data);
+ if (info.running) {
+@@ -1344,6 +1345,16 @@
+ if (strcmp (iid, "OAFIID:GNOME_NetspeedApplet"))
+ return FALSE;
+
++ /*
++ * Work around a design flaw in libgtop: force an initialisation
++ * of the server, otherwise glibtop_get_netlist() will find that
++ * the server is not needed and glibtop_get_netload() (which needs
++ * the server) will fail.
++ *
++ * Jean-Yves Lefort <jylefort@FreeBSD.org> 20060501
++ */
++ glibtop_init();
++
+ icon_theme = gtk_icon_theme_get_default();
+ gtk_icon_theme_append_search_path(icon_theme, DATADIR"/pixmaps/"PACKAGE);
+
+@@ -1432,13 +1443,13 @@
+ GList *ptr, *devices = get_available_devices();
+ ptr = devices;
+ while (ptr) {
+- if (!g_str_equal(ptr->data, "lo"))
++ if (!g_str_equal(ptr->data, "lo0"))
+ applet->devinfo = get_device_info(ptr->data);
+ ptr = g_list_next(ptr);
+ }
+ free_devices_list(devices);
+ }
+- if (!applet->devinfo.name) applet->devinfo = get_device_info("lo");
++ if (!applet->devinfo.name) applet->devinfo = get_device_info("lo0");
+ applet->device_has_changed = TRUE;
+
+ applet->tooltips = gtk_tooltips_new();
diff --git a/net/netspeed_applet/pkg-descr b/net/netspeed_applet/pkg-descr
new file mode 100644
index 000000000..d0997a3c3
--- /dev/null
+++ b/net/netspeed_applet/pkg-descr
@@ -0,0 +1,4 @@
+Netspeed_applet is just a little applet that shows how much traffic occurs on a
+specified network device.
+
+WWW: http://www.wh-hms.uni-ulm.de/~mfcn/netspeed/
diff --git a/net/netspeed_applet/pkg-plist b/net/netspeed_applet/pkg-plist
new file mode 100644
index 000000000..f4e872288
--- /dev/null
+++ b/net/netspeed_applet/pkg-plist
@@ -0,0 +1,91 @@
+libdata/bonobo/servers/GNOME_NetspeedApplet.server
+libexec/netspeed_applet2
+share/gnome/help/netspeed_applet/C/figures/details.png
+share/gnome/help/netspeed_applet/C/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/C/figures/ethernet.png
+share/gnome/help/netspeed_applet/C/figures/loopback.png
+share/gnome/help/netspeed_applet/C/figures/netspeed_applet.png
+share/gnome/help/netspeed_applet/C/figures/plip.png
+share/gnome/help/netspeed_applet/C/figures/ppp.png
+share/gnome/help/netspeed_applet/C/figures/settings.png
+share/gnome/help/netspeed_applet/C/figures/wavelan.png
+share/gnome/help/netspeed_applet/C/legal.xml
+share/gnome/help/netspeed_applet/C/netspeed_applet.xml
+share/gnome/help/netspeed_applet/cs/figures/details.png
+share/gnome/help/netspeed_applet/cs/figures/eth_48.png
+share/gnome/help/netspeed_applet/cs/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_24.png
+share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_48.png
+share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_48_sum.png
+share/gnome/help/netspeed_applet/cs/figures/phone_24.png
+share/gnome/help/netspeed_applet/cs/figures/settings.png
+share/gnome/help/netspeed_applet/cs/legal.xml
+share/gnome/help/netspeed_applet/cs/netspeed_applet.xml
+share/gnome/help/netspeed_applet/de/figures/details.png
+share/gnome/help/netspeed_applet/de/figures/eth_48.png
+share/gnome/help/netspeed_applet/de/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/de/figures/netspeed_applet_24.png
+share/gnome/help/netspeed_applet/de/figures/netspeed_applet_48.png
+share/gnome/help/netspeed_applet/de/figures/netspeed_applet_48_sum.png
+share/gnome/help/netspeed_applet/de/figures/phone_24.png
+share/gnome/help/netspeed_applet/de/figures/settings.png
+share/gnome/help/netspeed_applet/de/legal.xml
+share/gnome/help/netspeed_applet/de/netspeed_applet.xml
+share/gnome/help/netspeed_applet/es/figures/details.png
+share/gnome/help/netspeed_applet/es/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/es/figures/ethernet.png
+share/gnome/help/netspeed_applet/es/figures/loopback.png
+share/gnome/help/netspeed_applet/es/figures/netspeed_applet.png
+share/gnome/help/netspeed_applet/es/figures/plip.png
+share/gnome/help/netspeed_applet/es/figures/ppp.png
+share/gnome/help/netspeed_applet/es/figures/settings.png
+share/gnome/help/netspeed_applet/es/figures/wavelan.png
+share/gnome/help/netspeed_applet/es/legal.xml
+share/gnome/help/netspeed_applet/es/netspeed_applet.xml
+share/gnome/help/netspeed_applet/ru/figures/details.png
+share/gnome/help/netspeed_applet/ru/figures/eth_48.png
+share/gnome/help/netspeed_applet/ru/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_24.png
+share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_48.png
+share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_48_sum.png
+share/gnome/help/netspeed_applet/ru/figures/phone_24.png
+share/gnome/help/netspeed_applet/ru/figures/settings.png
+share/gnome/help/netspeed_applet/ru/legal.xml
+share/gnome/help/netspeed_applet/ru/netspeed_applet.xml
+share/omf/netspeed_applet/netspeed_applet-C.omf
+share/omf/netspeed_applet/netspeed_applet-cs.omf
+share/omf/netspeed_applet/netspeed_applet-de.omf
+share/omf/netspeed_applet/netspeed_applet-es.omf
+share/omf/netspeed_applet/netspeed_applet-ru.omf
+share/pixmaps/netspeed_applet.png
+share/pixmaps/netspeed_applet/gnome-dev-loopback.png
+share/pixmaps/netspeed_applet/gnome-dev-plip.png
+share/pixmaps/netspeed_applet/gnome-dev-ppp.png
+share/locale/cs/LC_MESSAGES/netspeed_applet.mo
+share/locale/de/LC_MESSAGES/netspeed_applet.mo
+share/locale/es/LC_MESSAGES/netspeed_applet.mo
+share/locale/et/LC_MESSAGES/netspeed_applet.mo
+share/locale/fr/LC_MESSAGES/netspeed_applet.mo
+share/locale/hu/LC_MESSAGES/netspeed_applet.mo
+share/locale/it/LC_MESSAGES/netspeed_applet.mo
+share/locale/ja/LC_MESSAGES/netspeed_applet.mo
+share/locale/ms/LC_MESSAGES/netspeed_applet.mo
+share/locale/nl/LC_MESSAGES/netspeed_applet.mo
+share/locale/ro/LC_MESSAGES/netspeed_applet.mo
+share/locale/ru/LC_MESSAGES/netspeed_applet.mo
+share/locale/sv/LC_MESSAGES/netspeed_applet.mo
+share/locale/tr/LC_MESSAGES/netspeed_applet.mo
+share/locale/zh_CN/LC_MESSAGES/netspeed_applet.mo
+@dirrm share/pixmaps/netspeed_applet
+@dirrm share/omf/netspeed_applet
+@dirrm share/gnome/help/netspeed_applet/ru/figures
+@dirrm share/gnome/help/netspeed_applet/ru
+@dirrm share/gnome/help/netspeed_applet/es/figures
+@dirrm share/gnome/help/netspeed_applet/es
+@dirrm share/gnome/help/netspeed_applet/de/figures
+@dirrm share/gnome/help/netspeed_applet/de
+@dirrm share/gnome/help/netspeed_applet/cs/figures
+@dirrm share/gnome/help/netspeed_applet/cs
+@dirrm share/gnome/help/netspeed_applet/C/figures
+@dirrm share/gnome/help/netspeed_applet/C
+@dirrm share/gnome/help/netspeed_applet