aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/netspeed_applet/Makefile32
-rw-r--r--net/netspeed_applet/distinfo1
-rw-r--r--net/netspeed_applet/files/patch-src_netspeed.c36
-rw-r--r--net/netspeed_applet/pkg-comment1
-rw-r--r--net/netspeed_applet/pkg-descr4
-rw-r--r--net/netspeed_applet/pkg-plist59
7 files changed, 134 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 1dbbb961722a..3ab088719caa 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -326,6 +326,7 @@
SUBDIR += netsaint-plugins
SUBDIR += netscript
SUBDIR += netsed
+ SUBDIR += netspeed_applet
SUBDIR += netspoc
SUBDIR += nettest
SUBDIR += ngrep
diff --git a/net/netspeed_applet/Makefile b/net/netspeed_applet/Makefile
new file mode 100644
index 000000000000..4e868fe78296
--- /dev/null
+++ b/net/netspeed_applet/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: netspeed_applet
+# Date created: 08 February 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= netspeed_applet
+PORTVERSION= 0.8
+CATEGORIES= net gnome
+MASTER_SITES= http://mfcn.ilo.de/netspeed_applet/
+
+MAINTAINER= gnome@FreeBSD.org
+
+LIB_DEPENDS= panel-applet-2.0:${PORTSDIR}/x11/gnomepanel \
+ gtop-2.0:${PORTSDIR}/devel/libgtop2
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomehier gnomeprefix gnomehack
+USE_LIBTOOL= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/net/netspeed_applet/distinfo b/net/netspeed_applet/distinfo
new file mode 100644
index 000000000000..a25ef58b6147
--- /dev/null
+++ b/net/netspeed_applet/distinfo
@@ -0,0 +1 @@
+MD5 (netspeed_applet-0.8.tar.gz) = 21c2444f287dac994e718bbbf1891a91
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 000000000000..3695d54860e4
--- /dev/null
+++ b/net/netspeed_applet/files/patch-src_netspeed.c
@@ -0,0 +1,36 @@
+--- src/netspeed.c.orig Sat Feb 8 23:21:50 2003
++++ src/netspeed.c Sat Feb 8 23:22:42 2003
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+@@ -260,6 +261,7 @@
+ devinfo->ip = NULL;
+ /* Get the hardware/physical adress/ MAC
+ */
++#ifndef __FreeBSD__
+ if (ioctl(fd, SIOCGIFHWADDR, &request) == 0)
+ {
+ unsigned char hwaddr[6];
+@@ -275,12 +277,17 @@
+ #endif
+ }
+ else
++#endif
+ devinfo->hwaddr = NULL;
+ /* Get the subnetmask
+ */
+ if (ioctl(fd, SIOCGIFNETMASK, &request) == 0)
+ {
++#ifdef __FreeBSD__
++ struct sockaddr_in *address = (struct sockaddr_in*)&request.ifr_addr;
++#else
+ struct sockaddr_in *address = (struct sockaddr_in*)&request.ifr_netmask;
++#endif
+ devinfo->netmask = g_strdup_printf("%s", inet_ntoa(address->sin_addr));
+ }
+ else
diff --git a/net/netspeed_applet/pkg-comment b/net/netspeed_applet/pkg-comment
new file mode 100644
index 000000000000..02a558bb2f47
--- /dev/null
+++ b/net/netspeed_applet/pkg-comment
@@ -0,0 +1 @@
+Applet that shows how much network traffic occurs on an interface
diff --git a/net/netspeed_applet/pkg-descr b/net/netspeed_applet/pkg-descr
new file mode 100644
index 000000000000..11f5dc07cb19
--- /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://mfcn.ilo.de/netspeed_applet/
diff --git a/net/netspeed_applet/pkg-plist b/net/netspeed_applet/pkg-plist
new file mode 100644
index 000000000000..e3bc4fd61958
--- /dev/null
+++ b/net/netspeed_applet/pkg-plist
@@ -0,0 +1,59 @@
+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_48.png
+share/gnome/help/netspeed_applet/C/figures/eth_sum_48.png
+share/gnome/help/netspeed_applet/C/figures/netspeed_applet_24.png
+share/gnome/help/netspeed_applet/C/figures/netspeed_applet_48.png
+share/gnome/help/netspeed_applet/C/figures/netspeed_applet_48_sum.png
+share/gnome/help/netspeed_applet/C/figures/phone_24.png
+share/gnome/help/netspeed_applet/C/figures/settings.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/omf/netspeed_applet/netspeed_applet-C.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-C.omf 2>/dev/null || /usr/bin/true
+share/gnome/omf/netspeed_applet/netspeed_applet-cs.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-cs.omf 2>/dev/null || /usr/bin/true
+share/gnome/omf/netspeed_applet/netspeed_applet-de.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-de.omf 2>/dev/null || /usr/bin/true
+share/gnome/pixmaps/netspeed_applet.png
+share/locale/cs/LC_MESSAGES/netspeed_applet.mo
+share/locale/de/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/ms/LC_MESSAGES/netspeed_applet.mo
+share/locale/nl/LC_MESSAGES/netspeed_applet.mo
+share/locale/ru/LC_MESSAGES/netspeed_applet.mo
+share/locale/zh_CN/LC_MESSAGES/netspeed_applet.mo
+@dirrm share/gnome/omf/netspeed_applet
+@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
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-C.omf 2>/dev/null || /usr/bin/true
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-cs.omf 2>/dev/null || /usr/bin/true
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/netspeed_applet/netspeed_applet-de.omf 2>/dev/null || /usr/bin/true