Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec SRPM URL: http://www.the-silvas.com-a.googlepages.com/nethogs-0.7-1.20080627cvs.fc8.src.rpm Description: NetHogs is a small "net top" tool. Instead of breaking the traffic down per protocol or per subnet, like most such tools do, it groups bandwidth by process and does not rely on a special kernel module to be loaded. So if there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this, and if it's some kind of spinning process, kill it. NOTE 1 - This tool is under the Fedora Packages WishList. NOTE 2 - I currently maintain the rpmrebuild packages as well, therefore this is *NOT* my first package.
Hey Anderson, This package does not build under gcc 4.3 (>Fedora 9), patching is needed. g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables decpcap_test.cpp decpcap.o -o decpcap_test -lpcap -lm conninode.cpp: In function 'void addtoconninode(char*)': conninode.cpp:48: error: 'exit' was not declared in this scope conninode.cpp: In function 'void refreshconninode()': conninode.cpp:162: error: 'exit' was not declared in this scope make: *** [conninode.o] Error 1 make: *** Waiting for unfinished jobs....
Created attachment 310442 [details] Proposed patch In gcc 4.3, the headers been cleaned up to compile and run faster, but now you have to be sure that you #include everything you really use in the application itself...
Please submit a new patched package that will build under gcc 4.3 and also rpmlint is not happy about lib dependencies. nethogs.i386: E: explicit-lib-dependency libcap nethogs.i386: E: explicit-lib-dependency libstdc++
Marke, the rpmlint issue has been fixed... you were too quick for me :-) I've contacted upstream about the issue with the compilation, I will try to fix it, and submit them a patch.
Ok... net spec updloaded, and new src rpm that compiles under Fedora Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec SRPM URL: http://www.the-silvas.com-a.googlepages.com/ nethogs-0.7-2.20080627cvs.fc9.src.rpm
Fixing URL: SRPM URL: http://www.the-silvas.com-a.googlepages.com/ nethogs-0.7-2.20080627cvs.fc9.src.rpm
Last try, my browser is being stupid: Spec URL: http://www.the-silvas.com-a.googlepages.com/nethogs.spec SRPM URL: http://www.the-silvas.com-a.googlepages.com/nethogs-0.7-2.20080627cvs.fc9.src.rpm
Package looks sane, all works. APPROVED.
New Package CVS Request ======================= Package Name: nethogs Short Description: top-like tool for network bandwidth Owners: afsilva Branches: F-8 F-9 EL-5 InitialCC: Cvsextras Commits: yes
cvs done.
nethogs-0.7-2.20080627cvs.fc8 has been submitted as an update for Fedora 8
nethogs-0.7-2.20080627cvs.fc9 has been submitted as an update for Fedora 9
nethogs-0.7-2.20080627cvs.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nethogs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-5810
nethogs-0.7-2.20080627cvs.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
nethogs-0.7-2.20080627cvs.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.