From 189285868c1233c7fbdf6f248f2e69a59c771083 Mon Sep 17 00:00:00 2001 From: couderc Date: Sat, 2 Aug 2003 15:35:21 +0000 Subject: [PATCH] Initial import of pktstat 1.7.2q Pktstat listens to the network and shows the bandwidth being consumed by packets of various kinds in realtime. It understands some protocols (including FTP, HTTP, and X11) and adds a descriptive name next to the entry. --- net/pktstat/Makefile | 29 +++++++++++++++++++++++++++++ net/pktstat/distinfo | 3 +++ net/pktstat/patches/patch-Makefile | 9 +++++++++ net/pktstat/patches/patch-display_c | 12 ++++++++++++ net/pktstat/patches/patch-ether_c | 12 ++++++++++++ net/pktstat/patches/patch-ipx_c | 12 ++++++++++++ net/pktstat/patches/patch-main_c | 12 ++++++++++++ net/pktstat/pkg/DESCR | 4 ++++ net/pktstat/pkg/PLIST | 3 +++ 9 files changed, 96 insertions(+) create mode 100644 net/pktstat/Makefile create mode 100644 net/pktstat/distinfo create mode 100644 net/pktstat/patches/patch-Makefile create mode 100644 net/pktstat/patches/patch-display_c create mode 100644 net/pktstat/patches/patch-ether_c create mode 100644 net/pktstat/patches/patch-ipx_c create mode 100644 net/pktstat/patches/patch-main_c create mode 100644 net/pktstat/pkg/DESCR create mode 100644 net/pktstat/pkg/PLIST diff --git a/net/pktstat/Makefile b/net/pktstat/Makefile new file mode 100644 index 00000000000..1968b979be4 --- /dev/null +++ b/net/pktstat/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ + +COMMENT= "network traffic viewer" + +VERSION= 1.7.2q +DISTNAME= pktstat-${VERSION} +CATEGORIES= net + +HOMEPAGE= http://www.itee.uq.edu.au/~leonard/personal/software/ + +MAINTAINER= Damien Couderc + +# Public Domain +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +MAKE_FILE= BSDmakefile + +MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pktstat ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/pktstat.1 ${PREFIX}/man/man1 + +.include diff --git a/net/pktstat/distinfo b/net/pktstat/distinfo new file mode 100644 index 00000000000..cd15eb362f5 --- /dev/null +++ b/net/pktstat/distinfo @@ -0,0 +1,3 @@ +MD5 (pktstat-1.7.2q.tar.gz) = 17624436901336029dd41b62892ca176 +RMD160 (pktstat-1.7.2q.tar.gz) = 1f5480bb4e274e17d46ab7e081142d4bfc5609bf +SHA1 (pktstat-1.7.2q.tar.gz) = 1b6000e192d1ecb8ea325a0530f4343fff31e93e diff --git a/net/pktstat/patches/patch-Makefile b/net/pktstat/patches/patch-Makefile new file mode 100644 index 00000000000..8324214cbb6 --- /dev/null +++ b/net/pktstat/patches/patch-Makefile @@ -0,0 +1,9 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +--- Makefile.orig Sat Jul 26 12:08:37 2003 ++++ Makefile Sat Jul 26 12:08:45 2003 +@@ -15,4 +15,4 @@ SRCS+= ip6.c ipx.c + SRCS+= tcp_http.c tcp_x11.c tcp_sup.c + HDRS+= tcp.h machendian.h + LDADD= -lpcap -lcurses -lm +-CFLAGS= -ggdb ++#CFLAGS= -ggdb diff --git a/net/pktstat/patches/patch-display_c b/net/pktstat/patches/patch-display_c new file mode 100644 index 00000000000..fc01c8f73f2 --- /dev/null +++ b/net/pktstat/patches/patch-display_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-display_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +--- display.c.orig 2003-07-26 13:55:22.000000000 +0200 ++++ display.c 2003-07-26 13:55:41.000000000 +0200 +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include + diff --git a/net/pktstat/patches/patch-ether_c b/net/pktstat/patches/patch-ether_c new file mode 100644 index 00000000000..c96c90f13c7 --- /dev/null +++ b/net/pktstat/patches/patch-ether_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-ether_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +--- ether.c.orig 2003-07-26 13:55:47.000000000 +0200 ++++ ether.c 2003-07-26 13:56:03.000000000 +0200 +@@ -2,6 +2,7 @@ + /* $Id: patch-ether_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ */ + + #include ++#include + #include + #include + #include + diff --git a/net/pktstat/patches/patch-ipx_c b/net/pktstat/patches/patch-ipx_c new file mode 100644 index 00000000000..6e3fe9e4746 --- /dev/null +++ b/net/pktstat/patches/patch-ipx_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-ipx_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +--- ipx.c.orig 2003-07-26 13:56:09.000000000 +0200 ++++ ipx.c 2003-07-26 13:56:19.000000000 +0200 +@@ -2,6 +2,7 @@ + /* $Id: patch-ipx_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ */ + + #include ++#include + #include + #include + #include + diff --git a/net/pktstat/patches/patch-main_c b/net/pktstat/patches/patch-main_c new file mode 100644 index 00000000000..2e8ef3474e1 --- /dev/null +++ b/net/pktstat/patches/patch-main_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-main_c,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +--- main.c.orig 2003-07-26 13:55:00.000000000 +0200 ++++ main.c 2003-07-26 13:55:16.000000000 +0200 +@@ -4,6 +4,7 @@ + #include + #include + #include ++#include + #include + #include + #include + diff --git a/net/pktstat/pkg/DESCR b/net/pktstat/pkg/DESCR new file mode 100644 index 00000000000..170d1eed4f5 --- /dev/null +++ b/net/pktstat/pkg/DESCR @@ -0,0 +1,4 @@ +Pktstat listens to the network and shows the bandwidth being consumed +by packets of various kinds in realtime. It understands some protocols +(including FTP, HTTP, and X11) and adds a descriptive name next to the +entry. diff --git a/net/pktstat/pkg/PLIST b/net/pktstat/pkg/PLIST new file mode 100644 index 00000000000..906e139cb17 --- /dev/null +++ b/net/pktstat/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/08/02 15:35:21 couderc Exp $ +man/man1/pktstat.1 +sbin/pktstat