import ports/net/jnettop, ok giovanni@
Jnettop is a traffic visualiser, which captures traffic going through the host it is running from and displays streams sorted by bandwidth they use. - list connections going across this host in a nice way - supports IPv6 - supports customizable text output for further analysis - supports machine-friendly mode to support further analysis - allows pre-configured pcap filters in the config file If this package is not quite what you need, try iftop (and vice-versa).
This commit is contained in:
parent
1316094dee
commit
7a9ddf3395
40
net/jnettop/Makefile
Normal file
40
net/jnettop/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/03/13 09:42:22 sthen Exp $
|
||||
|
||||
COMMENT= capture network traffic, display streams sorted by bandwidth
|
||||
|
||||
DISTNAME= jnettop-0.13.0
|
||||
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://jnettop.kubs.info/
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += c glib-2.0 gthread-2.0 ncurses pcap pthread
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}dist/
|
||||
|
||||
MODULES+= devel/gettext
|
||||
LIB_DEPENDS= devel/glib2
|
||||
|
||||
MAKE_FLAGS= CFLAGS="${CFLAGS}"
|
||||
|
||||
SEPARATE_BUILD= simple
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
post-build:
|
||||
${SUBST_CMD} ${WRKSRC}/jnettop.8
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jnettop
|
||||
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/jnettop/
|
||||
${INSTALL_DATA} ${WRKSRC}/.jnettop \
|
||||
${PREFIX}/share/doc/jnettop/dot.jnettop
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/jnettop/distinfo
Normal file
5
net/jnettop/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (jnettop-0.13.0.tar.gz) = lSnXUBECaz/K8YWy+wY4gQ==
|
||||
RMD160 (jnettop-0.13.0.tar.gz) = cHyJuN8EJbL+kEV1Y91gl427q/c=
|
||||
SHA1 (jnettop-0.13.0.tar.gz) = WfTCjbb4scWAUNcqqks7bVpKdeA=
|
||||
SHA256 (jnettop-0.13.0.tar.gz) = 6YehqTJVlcigVDq2HPO214G0+vct0ODgxwssws61paA=
|
||||
SIZE (jnettop-0.13.0.tar.gz) = 131009
|
11
net/jnettop/patches/patch-_jnettop
Normal file
11
net/jnettop/patches/patch-_jnettop
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-_jnettop,v 1.1.1.1 2012/03/13 09:42:22 sthen Exp $
|
||||
--- .jnettop.orig Mon Mar 12 22:14:47 2012
|
||||
+++ .jnettop Mon Mar 12 22:15:09 2012
|
||||
@@ -30,6 +30,6 @@ local_network "192.168.0.0" "255.255.0.0"
|
||||
local_network "10.0.0.0" "255.0.0.0"
|
||||
# select_rule "Google"
|
||||
# resolve_rule "192.168.0.0" "255.255.0.0" normal
|
||||
-# resolve_rule "192.168.0.0" "255.255.0.0" external "/usr/share/jnettop/jnettop-lookup-nmb"
|
||||
+# resolve_rule "192.168.0.0" "255.255.0.0" external "${PREFIX}/share/jnettop/jnettop-lookup-nmb"
|
||||
# resolve off
|
||||
|
21
net/jnettop/patches/patch-jnettop_8
Normal file
21
net/jnettop/patches/patch-jnettop_8
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-jnettop_8,v 1.1.1.1 2012/03/13 09:42:22 sthen Exp $
|
||||
--- jnettop.8.orig Sat Apr 8 12:50:09 2006
|
||||
+++ jnettop.8 Mon Mar 12 22:15:20 2012
|
||||
@@ -50,7 +50,7 @@ disable content filtering
|
||||
write debug information into file
|
||||
.TP
|
||||
.B \-f, \-\-config-file filename
|
||||
-reads configuration from filename. defaults to ~/.jnettop. an example can be found at /usr/share/doc/jnettop/dot.jnettop.
|
||||
+reads configuration from filename. defaults to ~/.jnettop. an example can be found at ${PREFIX}/share/doc/jnettop/dot.jnettop.
|
||||
or in .jnettop file from original distribution package.
|
||||
.TP
|
||||
.B \-i, \-\-interface name
|
||||
@@ -125,7 +125,7 @@ is not found, next rule is examined. If jnettop runs o
|
||||
.PP
|
||||
resolve_rule "192.168.0.0" "255.255.255.0" normal
|
||||
.br
|
||||
-resolve_rule "192.168.0.0" "255.255.255.0" external "/usr/share/jnettop/jnettop-lookup-nbm"
|
||||
+resolve_rule "192.168.0.0" "255.255.255.0" external "${PREFIX}/share/jnettop/jnettop-lookup-nbm"
|
||||
.RE
|
||||
.TP
|
||||
\fBrule "<rule_name>" "<rule_definition>"\fR
|
11
net/jnettop/pkg/DESCR
Normal file
11
net/jnettop/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
Jnettop is a traffic visualiser, which captures traffic going through
|
||||
the host it is running from and displays streams sorted by bandwidth
|
||||
they use.
|
||||
|
||||
- list connections going across this host in a nice way
|
||||
- supports IPv6
|
||||
- supports customizable text output for further analysis
|
||||
- supports machine-friendly mode to support further analysis
|
||||
- allows pre-configured pcap filters in the config file
|
||||
|
||||
If this package is not quite what you need, try iftop (and vice-versa).
|
9
net/jnettop/pkg/PLIST
Normal file
9
net/jnettop/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/03/13 09:42:22 sthen Exp $
|
||||
@bin bin/jnettop
|
||||
@man man/man8/jnettop.8
|
||||
share/doc/jnettop/
|
||||
share/doc/jnettop/README
|
||||
share/doc/jnettop/README.UIA
|
||||
share/doc/jnettop/dot.jnettop
|
||||
share/jnettop/
|
||||
share/jnettop/jnettop-lookup-nmb
|
Loading…
Reference in New Issue
Block a user