Hi, I've just created and tested an ebuild for nethogs, a network analyzing tool that shows bandwidth usage per process. From the web page: "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. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to indentify programs that have gone wild and are suddenly taking up your bandwidth." More information on nethogs can be found on its homepage: http://nethogs.sourceforge.net Proposed location in portage: net-analyzer/nethogs Tom (whyscream)
Created attachment 39569 [details] nethogs-0.5.1.ebuild
Created attachment 39811 [details] nethogs-0.6.0.ebuild Just a version bump
Current version is at 0.6.0; renaming the ebuild to nethogs-0.6.0.ebuild is enough for a working ebuild.
Just wanted to say that I successfully merged nethogs. Works w/o problems here. x86 gentoo-dev-sources-2.6.10 Additionally I'd add http://nethogs.sourceforge.net/ to the URL field but I'm not allowed :-(
This does not compile for me: Calculating dependencies ...done! >>> emerge (1 of 1) net-analyzer/nethogs-0.6.0 to / >>> md5 src_uri ;-) nethogs-0.6.0.tar.gz >>> Unpacking source... >>> Unpacking nethogs-0.6.0.tar.gz to /var/tmp/portage/nethogs-0.6.0/work >>> Source unpacked. g++ -O2 -c structs.cpp g++ -O2 -c packet.cpp g++ -O2 -c connection.cpp g++ -O2 -c process.cpp g++ -O2 -c refresh.cpp gcc -O2 -c decpcap.c decpcap.c: In function `dp_parse_ip': decpcap.c:79: error: label at end of compound statement decpcap.c: In function `dp_parse_ip6': decpcap.c:101: error: label at end of compound statement decpcap.c: In function `dp_parse_ethernet': decpcap.c:131: error: label at end of compound statement decpcap.c: In function `dp_parse_ppp': decpcap.c:176: error: label at end of compound statement make: *** [decpcap.o] Error 1 !!! ERROR: net-analyzer/nethogs-0.6.0 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. The official site mentions something about compile issues on > gcc 3.3, I'm running gcc 3.4.3-20050110. It suggests I use a development snapshot (0.6.1-pre2.tar.gz), but that link gives me the deaded 404.
Created attachment 55132 [details, diff] nethogs-0.6.0.ebuild.diff I can't download the dev snapshot either, just e-mailed the author about it.
In cvs. I created a small patch to allow it to compile with gcc-3.4. For those who are interested, the author replied and the dev snapshots are up to be downloaded now.