mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add netspeed_applet, a GNOME 2 applet that shows how much network traffic
occurs on an interface. Requested by: Muhannad Asfour <muhannad07@cogeco.ca>
This commit is contained in:
parent
5348b2c6a4
commit
5ff0e91908
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75155
@ -326,6 +326,7 @@
|
||||
SUBDIR += netsaint-plugins
|
||||
SUBDIR += netscript
|
||||
SUBDIR += netsed
|
||||
SUBDIR += netspeed_applet
|
||||
SUBDIR += netspoc
|
||||
SUBDIR += nettest
|
||||
SUBDIR += ngrep
|
||||
|
32
net/netspeed_applet/Makefile
Normal file
32
net/netspeed_applet/Makefile
Normal file
@ -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>
|
1
net/netspeed_applet/distinfo
Normal file
1
net/netspeed_applet/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (netspeed_applet-0.8.tar.gz) = 21c2444f287dac994e718bbbf1891a91
|
36
net/netspeed_applet/files/patch-src_netspeed.c
Normal file
36
net/netspeed_applet/files/patch-src_netspeed.c
Normal file
@ -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
|
1
net/netspeed_applet/pkg-comment
Normal file
1
net/netspeed_applet/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Applet that shows how much network traffic occurs on an interface
|
4
net/netspeed_applet/pkg-descr
Normal file
4
net/netspeed_applet/pkg-descr
Normal file
@ -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/
|
59
net/netspeed_applet/pkg-plist
Normal file
59
net/netspeed_applet/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user