summaryrefslogtreecommitdiff
path: root/net/pppload
diff options
context:
space:
mode:
Diffstat (limited to 'net/pppload')
-rw-r--r--net/pppload/Makefile34
-rw-r--r--net/pppload/distinfo2
-rw-r--r--net/pppload/files/patch-aa116
-rw-r--r--net/pppload/files/patch-ab44
-rw-r--r--net/pppload/files/patch-ac27
-rw-r--r--net/pppload/files/patch-ad120
-rw-r--r--net/pppload/files/patch-ae124
-rw-r--r--net/pppload/files/patch-af49
-rw-r--r--net/pppload/files/patch-ag64
-rw-r--r--net/pppload/pkg-descr3
10 files changed, 0 insertions, 583 deletions
diff --git a/net/pppload/Makefile b/net/pppload/Makefile
deleted file mode 100644
index 21ecc8c913ec..000000000000
--- a/net/pppload/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-# New ports collection makefile for: pppload
-# Date created: 30 January 1998
-# Whom: Sean Cole <scole@aracnet.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= pppload
-PORTVERSION= 1.0
-PORTREVISION= 8
-CATEGORIES= net sysutils
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= system/network/serial/ppp
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Display the current throughput of a network device in a window
-
-DEPRECATED= Depends on QT3; unmaintained
-EXPIRATION_DATE= 2013-07-01
-
-USE_QT_VER= 3
-USE_GMAKE= yes
-MAKE_ENV= QT_PREFIX="${QT_PREFIX}" PTHREAD_LIBS="${PTHREAD_LIBS}"
-
-MAN1= pppload.1
-PLIST_FILES= bin/pppload
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pppload ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/pppload.1 ${MAN1PREFIX}/man/man1
-
-.include <bsd.port.pre.mk>
-
-.include <bsd.port.post.mk>
diff --git a/net/pppload/distinfo b/net/pppload/distinfo
deleted file mode 100644
index c37e3ea05289..000000000000
--- a/net/pppload/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (pppload-1.0.tar.gz) = c09d3038be3bece13ef08a30b52fe249cfc4111793b029f45e3d1f7df84411b4
-SIZE (pppload-1.0.tar.gz) = 15000
diff --git a/net/pppload/files/patch-aa b/net/pppload/files/patch-aa
deleted file mode 100644
index 63c5fd751434..000000000000
--- a/net/pppload/files/patch-aa
+++ /dev/null
@@ -1,116 +0,0 @@
---- Makefile.orig Fri Jan 24 17:14:15 2003
-+++ Makefile Fri Jan 24 17:28:19 2003
-@@ -8,17 +8,14 @@
-
- ####### Directories
-
--QTDIR = /usr/lib/qt
-+QTDIR = ${QT_PREFIX}
- BASEDIR = $(QTDIR)
- INCDIR = $(BASEDIR)/include
- LIBDIR = $(BASEDIR)/lib
-
- ####### Compiler
-
--CFLAGS = -pipe -O2 -m486 -Wall
--LFLAGS = -L$(LIBDIR) -lqt
--LEXTRA =
--CC = g++
-+LFLAGS = -L$(LIBDIR) -lqt-mt ${PTHREAD_LIBS}
-
- ####### Files
-
-@@ -51,14 +48,14 @@
- .SUFFIXES: .C $(SUFFIXES)
-
- .C.o:
-- $(CC) -c $(CFLAGS) -I$(INCDIR) $<
-+ $(CXX) -c $(CFLAGS) -I$(INCDIR) $<
-
- ####### Build rules
-
- all: $(TARGET)
-
- $(TARGET): $(OBJECTS) $(OBJMETA)
-- $(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS) $(LEXTRA)
-+ $(CXX) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS) $(LEXTRA)
-
- depend: $(SRCMETA)
- makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null
-@@ -107,70 +104,9 @@
-
- # DO NOT DELETE THIS LINE -- make depend depends on it.
-
--pppload.o: /usr/lib/qt/include/qapp.h /usr/lib/qt/include/qwidget.h
--pppload.o: /usr/lib/qt/include/qwindefs.h /usr/lib/qt/include/qobjdefs.h
--pppload.o: /usr/lib/qt/include/qglobal.h /usr/lib/qt/include/qobject.h
--pppload.o: /usr/lib/qt/include/qstring.h /usr/lib/qt/include/qarray.h
--pppload.o: /usr/lib/qt/include/qgarray.h /usr/lib/qt/include/qshared.h
--pppload.o: /usr/lib/qt/include/qgeneric.h /usr/include/string.h
--pppload.o: /usr/include/features.h /usr/include/sys/cdefs.h
--pppload.o: /usr/lib/gcc-lib/i486-linux/2.7.2/include/stddef.h
--pppload.o: /usr/lib/qt/include/qevent.h /usr/lib/qt/include/qrect.h
--pppload.o: /usr/lib/qt/include/qsize.h /usr/lib/qt/include/qpoint.h
--pppload.o: /usr/lib/qt/include/qpaintd.h /usr/lib/qt/include/qpalette.h
--pppload.o: /usr/lib/qt/include/qcolor.h /usr/lib/qt/include/qcursor.h
--pppload.o: /usr/lib/qt/include/qfont.h /usr/lib/qt/include/qfontmet.h
--pppload.o: /usr/lib/qt/include/qfontinf.h PPPStats.H MainWindow.H
--pppload.o: /usr/lib/qt/include/qpixmap.h Options.H
--PPPStats.o: /usr/include/stdlib.h /usr/include/features.h
--PPPStats.o: /usr/include/sys/cdefs.h
--PPPStats.o: /usr/lib/gcc-lib/i486-linux/2.7.2/include/stddef.h
--PPPStats.o: /usr/include/errno.h /usr/include/linux/errno.h
--PPPStats.o: /usr/include/asm/errno.h /usr/include/alloca.h
--PPPStats.o: /usr/include/stdio.h /usr/include/libio.h
--PPPStats.o: /usr/include/_G_config.h /usr/include/sys/ioctl.h
--PPPStats.o: /usr/include/linux/ioctl.h /usr/include/asm/ioctl.h
--PPPStats.o: /usr/include/sys/termios.h /usr/include/sys/socketio.h
--PPPStats.o: /usr/include/linux/sockios.h /usr/include/asm/sockios.h
--PPPStats.o: /usr/include/sys/socket.h /usr/include/linux/socket.h
--PPPStats.o: /usr/include/asm/socket.h /usr/include/linux/uio.h
--PPPStats.o: /usr/include/sys/types.h /usr/include/linux/types.h
--PPPStats.o: /usr/include/linux/posix_types.h /usr/include/asm/posix_types.h
--PPPStats.o: /usr/include/asm/types.h /usr/include/sys/bitypes.h
--PPPStats.o: /usr/include/net/if.h /usr/include/linux/if.h
--PPPStats.o: /usr/include/linux/ppp_defs.h PPPStats.H
--PPPStats.o: /usr/lib/qt/include/qobject.h /usr/lib/qt/include/qobjdefs.h
--PPPStats.o: /usr/lib/qt/include/qglobal.h /usr/lib/qt/include/qstring.h
--PPPStats.o: /usr/lib/qt/include/qarray.h /usr/lib/qt/include/qgarray.h
--PPPStats.o: /usr/lib/qt/include/qshared.h /usr/lib/qt/include/qgeneric.h
--PPPStats.o: /usr/include/string.h /usr/lib/qt/include/qevent.h
--PPPStats.o: /usr/lib/qt/include/qwindefs.h /usr/lib/qt/include/qrect.h
--PPPStats.o: /usr/lib/qt/include/qsize.h /usr/lib/qt/include/qpoint.h
--PPPStats.o: Options.H /usr/lib/qt/include/qcolor.h
--MainWindow.o: /usr/lib/qt/include/qpainter.h /usr/lib/qt/include/qpaintd.h
--MainWindow.o: /usr/lib/qt/include/qwindefs.h /usr/lib/qt/include/qobjdefs.h
--MainWindow.o: /usr/lib/qt/include/qglobal.h /usr/lib/qt/include/qrect.h
--MainWindow.o: /usr/lib/qt/include/qsize.h /usr/lib/qt/include/qpoint.h
--MainWindow.o: /usr/lib/qt/include/qcolor.h /usr/lib/qt/include/qfontmet.h
--MainWindow.o: /usr/lib/qt/include/qfont.h /usr/lib/qt/include/qstring.h
--MainWindow.o: /usr/lib/qt/include/qarray.h /usr/lib/qt/include/qgarray.h
--MainWindow.o: /usr/lib/qt/include/qshared.h /usr/lib/qt/include/qgeneric.h
--MainWindow.o: /usr/include/string.h /usr/include/features.h
--MainWindow.o: /usr/include/sys/cdefs.h
--MainWindow.o: /usr/lib/gcc-lib/i486-linux/2.7.2/include/stddef.h
--MainWindow.o: /usr/lib/qt/include/qfontinf.h /usr/lib/qt/include/qregion.h
--MainWindow.o: /usr/lib/qt/include/qpen.h /usr/lib/qt/include/qbrush.h
--MainWindow.o: /usr/lib/qt/include/qpntarry.h /usr/lib/qt/include/qwmatrix.h
--MainWindow.o: MainWindow.H /usr/lib/qt/include/qwidget.h
--MainWindow.o: /usr/lib/qt/include/qobject.h /usr/lib/qt/include/qevent.h
--MainWindow.o: /usr/lib/qt/include/qpalette.h /usr/lib/qt/include/qcursor.h
--MainWindow.o: /usr/lib/qt/include/qpixmap.h Options.H
--Options.o: /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h
--Options.o: Options.H /usr/lib/qt/include/qcolor.h
--Options.o: /usr/lib/qt/include/qwindefs.h /usr/lib/qt/include/qobjdefs.h
--Options.o: /usr/lib/qt/include/qglobal.h /usr/lib/qt/include/qstring.h
--Options.o: /usr/lib/qt/include/qarray.h /usr/lib/qt/include/qgarray.h
--Options.o: /usr/lib/qt/include/qshared.h /usr/lib/qt/include/qgeneric.h
--Options.o: /usr/include/string.h /usr/include/features.h
--Options.o: /usr/include/sys/cdefs.h
--Options.o: /usr/lib/gcc-lib/i486-linux/2.7.2/include/stddef.h
-+pppload.o: PPPStats.H MainWindow.H
-+pppload.o: Options.H
-+PPPStats.o: Options.H
-+MainWindow.o: MainWindow.H
-+MainWindow.o: Options.H
-+Options.o: Options.H
diff --git a/net/pppload/files/patch-ab b/net/pppload/files/patch-ab
deleted file mode 100644
index c4beef9c6a50..000000000000
--- a/net/pppload/files/patch-ab
+++ /dev/null
@@ -1,44 +0,0 @@
---- Options.C.orig Wed Sep 11 01:55:27 1996
-+++ Options.C Fri Feb 7 19:12:41 2003
-@@ -19,6 +19,7 @@
-
- extern "C" {
- #include <stdio.h>
-+#include <stdlib.h>
- }
-
- #include "Options.H"
-@@ -26,6 +27,7 @@
- Options::Options( int argc, char* argv[] )
- : _divider( 512 ), _interval( 5 ), _link( 0 ), _period( 60 ), _retry( 60 ), _showTx( true ), _showRx( true ), _txColor( "forestgreen" ), _rxColor( "red" )
- {
-+ strcpy(_device, "tun");
- for ( int i = 1; i < argc; i++ ) {
- if ( !strcmp( argv[i], "-cmd" ) ) {
- _cmd = argv[++i];
-@@ -33,6 +35,8 @@
- sscanf( argv[++i], "%d", &_divider );
- } else if ( !strcmp( argv[i], "-i" ) ) {
- sscanf( argv[++i], "%d", &_interval );
-+ } else if ( !strcmp( argv[i], "-device" ) ) {
-+ strcpy(_device,argv[++i]);
- } else if ( !strcmp( argv[i], "-link" ) ) {
- sscanf( argv[++i], "%d", &_link );
- } else if ( !strcmp( argv[i], "-p" ) ) {
-@@ -60,6 +64,7 @@
- fprintf( stderr, "-d n Horizontal divider spacing in bytes per second (default: %d).\n", divider() );
- fprintf( stderr, "-h Print this help.\n" );
- fprintf( stderr, "-i interval Set the polling interval to be 'interval' seconds (default: %d).\n", interval() );
-+ fprintf( stderr, "-device name Name of the device to monitor (default is tun). \n");
- fprintf( stderr, "-link link The PPP link number to monitor (default: %d).\n", link() );
- fprintf( stderr, "-p period Set the load averaging period to be 'period seconds (default: %d).\n", period() );
- fprintf( stderr, "-retry interval Time between retries when dialling PPP link (default: %d).\n", retry() );
-@@ -74,7 +79,7 @@
- fprintf( stderr, "pppload comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file.\n" );
- fprintf( stderr, "This is free software, and you are welcome to redistribute it\n" );
- fprintf( stderr, "under certain conditions; see the LICENSE file for details.\n" );
--
-+ fprintf( stderr, "Modified for FreeBSD 1998 \n");
- exit( 1 );
- }
- }
diff --git a/net/pppload/files/patch-ac b/net/pppload/files/patch-ac
deleted file mode 100644
index 541be44618ad..000000000000
--- a/net/pppload/files/patch-ac
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -u --new-file pppload-1.0/Options.H ./Options.H
---- pppload-1.0/Options.H Tue Sep 10 16:53:36 1996
-+++ ./Options.H Thu Jan 29 21:12:01 1998
-@@ -31,6 +31,8 @@
- int _divider;
- //: Statistics polling interval in seconds.
- int _interval;
-+ //: Network device to monitor
-+ char _device[4];
- //: PPP link number to monitor.
- int _link;
- //: Load averaging interval in seconds.
-@@ -49,9 +51,12 @@
- //: Extract command line opotions from argc and argv.
- Options( int argc, char* argv[] );
-
-- //: Return the PPP command.
-- QString& cmd() { return _cmd; }
-+ //: Return the PPP command.
-+ QString& cmd() { return _cmd; }
-
-+ //: Return the name of the device being monitored
-+ char * device() { return _device; }
-+
- //: Return the spacing between horizontal dividers.
- int divider() { return _divider; }
-
diff --git a/net/pppload/files/patch-ad b/net/pppload/files/patch-ad
deleted file mode 100644
index e16171157785..000000000000
--- a/net/pppload/files/patch-ad
+++ /dev/null
@@ -1,120 +0,0 @@
---- PPPStats.C.orig 1996-09-12 04:50:13.000000000 +0200
-+++ PPPStats.C 2010-05-16 12:45:39.000000000 +0200
-@@ -19,16 +19,24 @@
-
- extern "C" {
- #include <stdlib.h>
--#include <errno.h>
- #include <stdio.h>
-+#include <sys/types.h>
-+#include <sys/select.h>
- #include <sys/ioctl.h>
- #include <sys/socket.h>
--#include <net/if.h>
--#include <linux/ppp_defs.h>
-+#include <sys/time.h>
-+#include <net/if.h>
-+// 2010-05-16 Kf Replaced patched net/if_ppp.h by net/ppp_defs.h.
-+// (Is linux/ppp_defs.h in the distribution.);
-+#include <net/ppp_defs.h>
- }
-
- #include "PPPStats.H"
- #include "Options.H"
-+#include <iostream>
-+
-+void get_command(char *);
-+char command[200];
-
- typedef struct
- {
-@@ -53,38 +61,46 @@
- system( (const char*)options->cmd() );
- }
-
-- DclPPPInfo PPPInfo[1];
-- struct ifreq ifreq;
-+ DclPPPInfo PPPInfo[1];
-+// 2010-05-16 Kf Replaced patched struct ifpppstatsreq by the original
-+// struct ifreq.
-+ struct ifreq ifreq;
- struct ppp_stats* PPPStat;
-- struct ppp_stats LastPPPStat[1];
--
-- memset (& ifreq, 0, sizeof (ifreq));
-- sprintf (ifreq.ifr_ifrn.ifrn_name, "ppp%d", options->link());
-+ struct ppp_stats LastPPPStat[1];
-
-- ifreq.ifr_ifru.ifru_data = (caddr_t) PPPInfo;
-+ memset (&ifreq, 0, sizeof (ifreq));
-+ sprintf (ifreq.ifr_name, "%s%d",(const char*)options->device(),options->link());
-+
- PPPStat = & PPPInfo->stats;
-+ PPPStat->p.ppp_ibytes = 0;
-+ PPPStat->p.ppp_obytes = 0;
- memset (LastPPPStat, 0, sizeof (LastPPPStat));
-
-- if ( (ioctl (_s, SIOCDEVPRIVATE, (caddr_t) & ifreq) < 0) ||
-- ( _isUp && ( PPPStat->p.ppp_ibytes < _rxTotal ) ) ||
-- ( !_isUp && ( PPPStat->p.ppp_ibytes == 0 ) )
-- ) {
-- if ( _isUp ) {
-- _isUp = false;
-- emit linkDown();
-- if ( options->cmd().length() ) {
-- _retryId = startTimer( options->retry() * 1000 );
-- system( (const char*)options->cmd() );
-- }
-- }
-- PPPStat->p.ppp_ibytes = 0;
-- PPPStat->p.ppp_obytes = 0;
-+ get_command(ifreq.ifr_name);
-+ FILE * fptr;
-+ fptr=popen(command,"r+");
-+ fscanf(fptr,"%u%u",&PPPStat->p.ppp_ibytes,&PPPStat->p.ppp_obytes);
-+ pclose(fptr);
-+
-+ if ( ( _isUp && ( PPPStat->p.ppp_ibytes < _rxTotal ) ) ||
-+ ( !_isUp && ( PPPStat->p.ppp_ibytes == 0 ))
-+ ) {
-+ if ( _isUp ) {
-+ _isUp = false;
-+ emit linkDown();
-+ if ( options->cmd().length() ) {
-+ _retryId = startTimer( options->retry() * 1000 );
-+ system( (const char*)options->cmd() );
-+ }
-+ }
-+ PPPStat->p.ppp_ibytes = 0;
-+ PPPStat->p.ppp_obytes = 0;
- } else if ( !_isUp ) {
-- _isUp = true;
-- killTimer( _retryId );
-- _retryId = -1;
-+ _isUp = true;
-+ killTimer( _retryId );
-+ _retryId = -1;
- }
--
-+
- unsigned int rxDelta = PPPStat->p.ppp_ibytes - _rxTotal;
- unsigned int txDelta = PPPStat->p.ppp_obytes - _txTotal;
- _rxTotal = PPPStat->p.ppp_ibytes;
-@@ -92,4 +108,17 @@
- if ( rxDelta == _rxTotal ) rxDelta = 0;
- if ( txDelta == _txTotal ) txDelta = 0;
- emit changeStats( rxDelta, txDelta, _rxTotal, _txTotal );
-+
-+}
-+
-+void get_command(char * interface) {
-+ /*"/usr/bin/netstat -b -I tun0 | /usr/bin/grep Link | awk '{print $(NF-4),$(NF-1)}' */
-+ const char * netstat_command ="/usr/bin/netstat -n -b -I ";
-+ const char * grep_command =" | /usr/bin/grep Link | /usr/bin/awk '{print $(NF-4),$(NF-1)}'";
-+ command[0]='\0';
-+ strcat(command,netstat_command);
-+ strcat(command,interface);
-+ strcat(command,grep_command);
- }
-+
-+
diff --git a/net/pppload/files/patch-ae b/net/pppload/files/patch-ae
deleted file mode 100644
index ff57f7afc721..000000000000
--- a/net/pppload/files/patch-ae
+++ /dev/null
@@ -1,124 +0,0 @@
-diff -u --new-file pppload-1.0/PPPStats.C.ppp ./PPPStats.C.ppp
---- pppload-1.0/PPPStats.C.ppp Wed Dec 31 16:00:00 1969
-+++ ./PPPStats.C.ppp Wed Jan 28 18:27:30 1998
-@@ -0,0 +1,120 @@
-+// pppload - A PPP Load Monitor
-+// Copyright (C) 1996 Sean Vyain
-+// svyain@mail.tds.net
-+// smvyain@softart.com
-+//
-+// This program is free software; you can redistribute it and/or modify
-+// it under the terms of the GNU General Public License as published by
-+// the Free Software Foundation; either version 2 of the License, or
-+// (at your option) any later version.
-+//
-+// This program is distributed in the hope that it will be useful,
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+// GNU General Public License for more details.
-+//
-+// You should have received a copy of the GNU General Public License
-+// along with this program; if not, write to the Free Software
-+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-+
-+extern "C" {
-+#include <stdlib.h>
-+#include <stdio.h>
-+#include <sys/types.h>
-+#include <sys/select.h>
-+#include <sys/ioctl.h>
-+#include <sys/socket.h>
-+#include <sys/time.h>
-+#include <net/if.h>
-+#include <net/if_ppp.h>
-+#include <net/if_var.h>
-+#include <net/if_tun.h>
-+}
-+
-+#include "PPPStats.H"
-+#include "Options.H"
-+#include <iostream.h>
-+
-+
-+typedef struct
-+{
-+ struct ppp_stats stats;
-+} DclPPPInfo;
-+
-+PPPStats::PPPStats()
-+: _rxTotal( 0 ), _txTotal( 0 ), _isUp( true ), _retryId( -1 )
-+{
-+ if ((_s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
-+ perror("couldn't create IP socket");
-+ exit(1);
-+ }
-+
-+ startTimer( options->interval() * 1000 );
-+}
-+
-+void PPPStats::timerEvent( QTimerEvent* e )
-+{
-+ if ( e->timerId() == _retryId )
-+ {
-+ system( (const char*)options->cmd() );
-+ }
-+
-+ DclPPPInfo PPPInfo[1]; // what is this var for?
-+ struct ifpppstatsreq ifreq; // ifreq ifreq;
-+ struct ppp_stats* PPPStat;
-+ struct ppp_stats LastPPPStat[1]; // what is this var for?
-+
-+ memset (&ifreq, 0, sizeof (ifreq));
-+// sprintf (ifreq.ifr_ifrn.ifrn_name, "ppp%d", options->link());
-+ sprintf (ifreq.ifr_name, "tun%d", options->link());
-+
-+// ifreq.ifr_ifru.ifru_data = (caddr_t) PPPInfo;
-+
-+ PPPStat = & PPPInfo->stats;
-+ memset (LastPPPStat, 0, sizeof (LastPPPStat));
-+
-+
-+
-+// if ( (ioctl (_s, SIOCDEVPRIVATE, (caddr_t) & ifreq) < 0) ||
-+// ( _isUp && ( PPPStat->p.ppp_ibytes < _rxTotal ) ) ||
-+// ( !_isUp && ( PPPStat->p.ppp_ibytes == 0 ) )
-+ if ( (ioctl (_s, SIOCGPPPSTATS , &ifreq) < 0) ||
-+ ( _isUp && ( ifreq.stats.p.ppp_ibytes < _rxTotal ) ) ||
-+ ( !_isUp && ( ifreq.stats.p.ppp_ibytes == 0 ))
-+ ) {
-+ if ( _isUp ) {
-+ _isUp = false;
-+ emit linkDown();
-+ if ( options->cmd().length() ) {
-+ _retryId = startTimer( options->retry() * 1000 );
-+ system( (const char*)options->cmd() );
-+ }
-+ }
-+ PPPStat->p.ppp_ibytes = 0;
-+ PPPStat->p.ppp_obytes = 0;
-+ } else if ( !_isUp ) {
-+ _isUp = true;
-+ killTimer( _retryId );
-+ _retryId = -1;
-+ }
-+
-+ PPPStat->p.ppp_ibytes=ifreq.stats.p.ppp_ibytes;
-+ PPPStat->p.ppp_obytes=ifreq.stats.p.ppp_obytes;
-+
-+
-+cout<<ifreq.stats.p.ppp_ibytes<<" "<<ifreq.stats.p.ppp_ipackets<<" "
-+ <<ifreq.stats.p.ppp_ierrors<<" "<<ifreq.stats.p.ppp_obytes <<" "
-+ <<ifreq.stats.p.ppp_opackets<<" "<<ifreq.stats.p.ppp_oerrors<<endl
-+ <<PPPStat->p.ppp_ibytes<<" "<<PPPStat->p.ppp_ipackets<<" "
-+ <<PPPStat->p.ppp_ierrors<<" "<<PPPStat->p.ppp_obytes <<" "
-+ <<PPPStat->p.ppp_opackets<<" "<<PPPStat->p.ppp_oerrors<<endl;
-+ unsigned int rxDelta = PPPStat->p.ppp_ibytes - _rxTotal;
-+ unsigned int txDelta = PPPStat->p.ppp_obytes - _txTotal;
-+ _rxTotal = PPPStat->p.ppp_ibytes;
-+ _txTotal = PPPStat->p.ppp_obytes;
-+ if ( rxDelta == _rxTotal ) rxDelta = 0;
-+ if ( txDelta == _txTotal ) txDelta = 0;
-+ emit changeStats( rxDelta, txDelta, _rxTotal, _txTotal );
-+
-+}
-+
diff --git a/net/pppload/files/patch-af b/net/pppload/files/patch-af
deleted file mode 100644
index 87e67c84d3f4..000000000000
--- a/net/pppload/files/patch-af
+++ /dev/null
@@ -1,49 +0,0 @@
-diff -u --new-file pppload-1.0/README.freebsd ./README.freebsd
---- pppload-1.0/README.freebsd Wed Dec 31 16:00:00 1969
-+++ ./README.freebsd Fri Jan 30 20:14:36 1998
-@@ -0,0 +1,45 @@
-+PPPLoad is designed to display the current throughput of a particular
-+PPP link in a format that is similar to xload. Written by Sean Vyain.
-+
-+This is a FreeBSD port of the linux program called pppload, available at
-+http://sunsite.unc.edu/pub/Linux/system/network/serial/ppp/pppload-1.0.tar.gz
-+
-+Original program homepage formerly at:
-+http://www.geocities.com/SiliconValley/Pines/1029/pppload.html
-+
-+I have modified the FreeBSD port to be able to show the throughput of
-+any network device that will work with netstat, e.g. tun, ppp, ed,
-+etc. I just wanted a program to nicely display throughput
-+statistics for the tun device.
-+
-+ Examples of usage:
-+For tun0 (tun is the default device,0 is the default link number):
-+% pppload &
-+
-+For first ne2000 clone:
-+% pppload -device ed -link 0 &
-+
-+for ppp2:
-+% pppload -device ppp -link 2 &
-+
-+BUGS
-+Command line is awkward with -device and -link.
-+
-+Can't detect whether the network device is up or not, so any command
-+line options like -cmd -percmd -retry probably don't work. This is
-+different that the original linux version.
-+
-+Keeps track of all packets network device has ever used, even if it
-+has gone down then up again. This is also different than the linux
-+version.
-+
-+Requires awk, grep, and netstat to get the data. Very short polling
-+time are definitely not recommended.
-+
-+Network interface names are limited to a total of 4 characters or less
-+at the moment, e.g. ppp0 ed3 ze1.
-+
-+
-+Documentation of this FreeBSD port is not complete.
-+
-+
diff --git a/net/pppload/files/patch-ag b/net/pppload/files/patch-ag
deleted file mode 100644
index 12417d899410..000000000000
--- a/net/pppload/files/patch-ag
+++ /dev/null
@@ -1,64 +0,0 @@
-diff -u --new-file pppload-1.0/pppload.1 ./pppload.1
---- pppload-1.0/pppload.1 Tue Sep 10 16:56:20 1996
-+++ ./pppload.1 Fri Jan 30 21:35:55 1998
-@@ -3,7 +3,7 @@
- pppload \- display an xload-style graph of PPP activity
- .SH SYNOPSIS
- .B pppload
--[\-cmd ppp_cmd] [\-i interval] [\-p period] [\-retry interval] [\-rx] [\-norx]
-+[\-cmd ppp_cmd] [\-i interval] [\-device name] [\-p period] [\-retry interval] [\-rx] [\-norx]
- [\-rxcolor color] [\-tx] [\-notx] [\-txcolor color]
- .SH DESCRIPTION
- .BR pppload
-@@ -28,6 +28,9 @@
- .I "\-h"
- Print command line usage.
- .TP
-+.I "\-device name"
-+Network device to monitor (default: tun)
-+.TP
- .I "\-i interval"
- The statistics polling interval in seconds (default: 5).
- .TP
-@@ -60,3 +63,41 @@
- The name of the color to draw transmit rates in (default: red).
- .SH AUTHOR
- Sean Vyain <svyain@mail.tds.net, smvyain@softart.com>
-+
-+
-+.SH FREEBSD PORT
-+Examples of usage for the FreeBSD port:
-+
-+For tun0 (tun is the default device,0 is the default link number):
-+
-+% pppload &
-+
-+For the first ne2000 ethernet card:
-+
-+% pppload -device ed -link 0 &
-+
-+for the third ppp device:
-+
-+% pppload -device ppp -link 2 &
-+
-+.SH BUGS
-+The port to FreeBSD can't determine when the link is up or down, so
-+some of the command line options like
-+.I "\-cmd"
-+.I "\-percmd"
-+may not work.
-+
-+Command line is awkward with -device and -link.
-+
-+Keeps track of all packets network device has ever used, even if it
-+has gone down then up again. This is different than the linux
-+version.
-+
-+Requires awk, grep, and netstat to get the data. Very short polling
-+times are definitely not recommended.
-+
-+Network interface names are limited to a total of 4 characters or less
-+at the moment, e.g. ppp0 ed3 ze1.
-+
-+
-+Modified January 1998
diff --git a/net/pppload/pkg-descr b/net/pppload/pkg-descr
deleted file mode 100644
index ca331c3be721..000000000000
--- a/net/pppload/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-This is a port of pppload, in which the current throughput of a network
-device is displayed in a x-window. Any network device whose statistics
-can be accessed through netstat can be displayed in a nicely colored graph.