import iftop:

iftop does for network usage what top(1) does for CPU usage. It listens
to network traffic on a named interface and displays a table of current
bandwidth usage by pairs of hosts. Handy for answering the question "why
is our ADSL link so slow?"

from maintainer Girish Venkatachalam with small tweaks
ok landry, merdely, kili
This commit is contained in:
sthen 2008-04-04 22:12:46 +00:00
parent f1876a2bc5
commit 9804c24b93
5 changed files with 61 additions and 0 deletions

29
net/iftop/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/04/04 22:12:46 sthen Exp $
COMMENT = display bandwidth usage on an inteface
DISTNAME = iftop-0.17
CATEGORIES = net
HOMEPAGE = http://www.ex-parrot.com/~pdw/iftop/
MAINTAINER = Girish Venkatachalam <girish1729@gmail.com>
# GPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c curses m pcap pthread
MASTER_SITES = ${HOMEPAGE}download/
CONFIGURE_STYLE = gnu dest
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iftop ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/iftop.8 ${PREFIX}/man/man8
NO_REGRESS = Yes
.include <bsd.port.mk>

5
net/iftop/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (iftop-0.17.tar.gz) = BivI+zhWWAMZhXMm4Lh1LQ==
RMD160 (iftop-0.17.tar.gz) = ARH909K6BorNQdknnJh9ZpmEBzY=
SHA1 (iftop-0.17.tar.gz) = dc5q/IwL+FEniwoV5m9SOvkM/ak=
SHA256 (iftop-0.17.tar.gz) = 0DJUfHCDBxWf9f0N8j69PPp3mcMVNvoK6hggMYqODqw=
SIZE (iftop-0.17.tar.gz) = 160381

View File

@ -0,0 +1,20 @@
--- iftop.c.orig Sun Dec 16 16:39:56 2007
+++ iftop.c Sun Dec 16 16:40:10 2007
@@ -561,7 +561,6 @@
* Entry point. See usage(). */
int main(int argc, char **argv) {
pthread_t thread;
- struct sigaction sa = {};
/* TODO: tidy this up */
/* read command line options and config file */
@@ -572,9 +571,6 @@
read_config(options.config_file, options.config_file_specified);
options_make();
- sa.sa_handler = finish;
- sigaction(SIGINT, &sa, NULL);
-
pthread_mutex_init(&tick_mutex, NULL);
packet_init();

4
net/iftop/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
iftop does for network usage what top(1) does for CPU usage. It listens
to network traffic on a named interface and displays a table of current
bandwidth usage by pairs of hosts. Handy for answering the question "why
is our ADSL link so slow?"

3
net/iftop/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/04/04 22:12:46 sthen Exp $
bin/iftop
@man man/man8/iftop.8