From d23f4fc0655d6bc3d6c8c65146e4a9950fbfd47c Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Sat, 6 Jan 2024 07:35:45 +0100 Subject: [PATCH] package created by autospec [release 0.8.0-1mamba;Sun Apr 29 2012] --- README.md | 2 ++ nethogs-makelist.patch | 12 +++++++++++ nethogs.spec | 48 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 nethogs-makelist.patch create mode 100644 nethogs.spec diff --git a/README.md b/README.md index f0c31ad..bb4ab64 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nethogs +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. + diff --git a/nethogs-makelist.patch b/nethogs-makelist.patch new file mode 100644 index 0000000..d2074f5 --- /dev/null +++ b/nethogs-makelist.patch @@ -0,0 +1,12 @@ +diff -Nru nethogs.orig/Makefile nethogs/Makefile +--- nethogs.orig/Makefile 2011-08-27 15:38:38.000000000 +0200 ++++ nethogs/Makefile 2012-04-29 09:32:16.128697092 +0200 +@@ -3,7 +3,7 @@ + MINORVERSION := 0 + + #DESTDIR := /usr +-DESTDIR := /usr/local ++DESTDIR := /usr + + sbin := $(DESTDIR)/sbin + man8 := $(DESTDIR)/share/man/man8/ diff --git a/nethogs.spec b/nethogs.spec new file mode 100644 index 0000000..6d48c3b --- /dev/null +++ b/nethogs.spec @@ -0,0 +1,48 @@ +Name: nethogs +Version: 0.8.0 +Release: 1mamba +Summary: NetHogs is a small 'net top' tool. +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: http://nethogs.sourceforge.net/ +Source: http://kent.dl.sourceforge.net/project/nethogs/nethogs/0.8/nethogs-%{version}.tar.gz +Patch: nethogs-makelist.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libncurses-devel +BuildRequires: libpcap-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%debug_package + +%description +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. + +%prep +%setup -q -n %{name} +%patch -p1 + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall DESTDIR=%{buildroot}/usr + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sbindir}/nethogs +%{_mandir}/man8/nethogs.8.gz + +%changelog +* Sun Apr 29 2012 Ercole 'ercolinux' Carpanetto 0.8.0-1mamba +- package created by autospec