Index: net/Makefile =================================================================== --- net/Makefile +++ net/Makefile @@ -448,6 +448,7 @@ SUBDIR += netcat SUBDIR += netdude SUBDIR += netembryo + SUBDIR += nethogs SUBDIR += netmap SUBDIR += netpipes SUBDIR += netscript Index: net/nethogs/Makefile =================================================================== --- /dev/null +++ net/nethogs/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= nethogs +PORTVERSION= 0.8.5 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= anastasios@mageirias.com +COMMENT= Small net top tool + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +USE_GITHUB= yes +GH_ACCOUNT= raboof + +USES= gmake shebangfix + +SHEBANG_FILES= determineVersion.sh +bash_CMD= ${SH} + +PLIST_FILES= man/man8/nethogs.8.gz \ + sbin/nethogs + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/nethogs + +.include Index: net/nethogs/distinfo =================================================================== --- /dev/null +++ net/nethogs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1488685002 +SHA256 (raboof-nethogs-v0.8.5_GH0.tar.gz) = 6a9392726feca43228b3f0265379154946ef0544c2ca2cac59ec35a24f469dcc +SIZE (raboof-nethogs-v0.8.5_GH0.tar.gz) = 112385 Index: net/nethogs/pkg-descr =================================================================== --- /dev/null +++ net/nethogs/pkg-descr @@ -0,0 +1,5 @@ +NetHogs is a small 'net top' tool. Instead of breaking the traffic down +per protocol or per subnet, like most tools do, it groups bandwidth by +process. NetHogs does not rely on a special kernel module to be loaded. + +WWW: https://github.com/raboof/nethogs Index: net/nethogs/pkg-message =================================================================== --- /dev/null +++ net/nethogs/pkg-message @@ -0,0 +1,12 @@ +************************************************************************** +In order for nethogs to work properly add the following entry to +/etc/fstab: + +proc /proc procfs rw,noauto 0 0 + +noauto prevents /proc from being automatically mounted at boot. + +To mount the file system without rebooting: + +# mount /proc +**************************************************************************