nethogs (0.7.0-3) debian-dir only changes

Summary

 debian/README.Debian-source    |   14 ++++++++
 debian/changelog               |   65 +++++++++++++++++++++++++++++++++++++++++
 debian/compat                  |    1 
 debian/control                 |   15 +++++++++
 debian/copyright               |   34 +++++++++++++++++++++
 debian/dirs                    |    1 
 debian/docs                    |    1 
 debian/patches/01_gcc44.diff   |   13 ++++++++
 debian/patches/02_geteuid.diff |   11 ++++++
 debian/patches/03_sbin.diff    |   13 ++++++++
 debian/rules                   |    7 ++++
 debian/watch                   |    5 +++
 12 files changed, 180 insertions(+)

    
download this patch

Patch contents

--- nethogs-0.7.0.orig/debian/docs
+++ nethogs-0.7.0/debian/docs
@@ -0,0 +1 @@
+README
--- nethogs-0.7.0.orig/debian/changelog
+++ nethogs-0.7.0/debian/changelog
@@ -0,0 +1,65 @@
+nethogs (0.7.0-3) unstable; urgency=low
+
+  * debian/patches/02_geteuid.diff: Added.  Use geteuid.  Closes: #548093.
+  * debian/patches/03_sbin.diff: Added.  Install the binary in /usr/sbin.
+
+ -- Bart Martens <bartm@debian.org>  Sun, 27 Sep 2009 16:20:41 +0200
+
+nethogs (0.7.0-2) unstable; urgency=low
+
+  * debian/patches/01_gcc44.diff: Added.  Closes: #526208.
+  * debian/watch: Updated.
+
+ -- Bart Martens <bartm@debian.org>  Fri, 01 May 2009 18:18:53 +0200
+
+nethogs (0.7.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control: Fixed package-uses-deprecated-debhelper-compat-version.
+
+ -- Bart Martens <bartm@debian.org>  Fri, 10 Apr 2009 19:21:30 +0200
+
+nethogs (0.6.0+cvs20070620-2) unstable; urgency=low
+
+  * Moving from experimental to unstable.
+  * inode2prog.cpp: Fixed FTBFS by including stdlib.h.
+  * Makefile: Don't build decpcap_test.
+  * connection.cpp: Don't write debug info.  Closes: #444683.
+  * debian/control, debian/rules: Now using cdbs.
+  * debian/dirs: Fixed package-contains-empty-directory usr/sbin/.
+  * nethogs.8: Fixed manpage-has-bad-whatis-entry.
+  * debian/control: Fixed description-contains-homepage.
+
+ -- Bart Martens <bartm@debian.org>  Sat, 08 Mar 2008 18:57:25 +0100
+
+nethogs (0.6.0+cvs20070620-1) experimental; urgency=low
+
+  * New upstream version from upstream cvs.
+  * Includes revision 1.2, closes: #419883.
+  * debian/README.Debian-source: Added.
+  * Updated existing patches.
+  * Makefile: Don't try to build nethogs_testsum.
+  * Makefile: Fixed values of bin and man8.
+  * debian/rule: Edited clean rule.
+
+ -- Bart Martens <bartm@knars.be>  Wed, 20 Jun 2007 11:27:52 +0200
+
+nethogs (0.6.0-3) unstable; urgency=low
+
+  * cui.cpp: Changed for gcc 4.3.  Closes: #417443.  Thanks to Martin
+    Michlmayr <tbm@cyrius.com>.
+
+ -- Bart Martens <bartm@knars.be>  Fri,  6 Apr 2007 17:17:58 +0200
+
+nethogs (0.6.0-2) unstable; urgency=low
+
+  * nethogs.cpp: Fix segfault.  Closes: #405609.
+
+ -- Bart Martens <bartm@knars.be>  Sat,  6 Jan 2007 15:49:12 +0100
+
+nethogs (0.6.0-1) unstable; urgency=low
+
+  * Initial release.  Closes: #271040.
+
+ -- Bart Martens <bartm@knars.be>  Sat, 29 Apr 2006 17:42:35 +0200
+
--- nethogs-0.7.0.orig/debian/control
+++ nethogs-0.7.0/debian/control
@@ -0,0 +1,15 @@
+Source: nethogs
+Section: net
+Priority: optional
+Maintainer: Bart Martens <bartm@debian.org>
+Build-Depends: cdbs, debhelper (>= 5), libncurses5-dev, libpcap0.8-dev
+Standards-Version: 3.8.3
+Homepage: http://nethogs.sourceforge.net/
+
+Package: nethogs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Net top tool grouping bandwidth per process
+ 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.
--- nethogs-0.7.0.orig/debian/compat
+++ nethogs-0.7.0/debian/compat
@@ -0,0 +1 @@
+5
--- nethogs-0.7.0.orig/debian/rules
+++ nethogs-0.7.0/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/nethogs
--- nethogs-0.7.0.orig/debian/README.Debian-source
+++ nethogs-0.7.0/debian/README.Debian-source
@@ -0,0 +1,14 @@
+nethogs for Debian
+------------------
+
+cvs -d:pserver:anonymous@nethogs.cvs.sourceforge.net:/cvsroot/nethogs login
+cvs -z3 -d:pserver:anonymous@nethogs.cvs.sourceforge.net:/cvsroot/nethogs export -D 2007-06-20 nethogs
+
+mv nethogs nethogs-0.6.0+cvs20070620.orig
+tar cf nethogs_0.6.0+cvs20070620.orig.tar nethogs-0.6.0+cvs20070620.orig
+gzip -9 nethogs_0.6.0+cvs20070620.orig.tar
+
+md5sum *z
+cb00d389834624049619f45dc6c18cee  nethogs_0.6.0+cvs20070620.orig.tar.gz
+
+ -- Bart Martens <bartm@knars.be>  Wed, 20 Jun 2007 11:27:52 +0200
--- nethogs-0.7.0.orig/debian/dirs
+++ nethogs-0.7.0/debian/dirs
@@ -0,0 +1 @@
+usr/share/man/man8
--- nethogs-0.7.0.orig/debian/copyright
+++ nethogs-0.7.0/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Bart Martens <bartm@knars.be> on
+Sat, 29 Apr 2006 17:42:35 +0200.
+
+It was downloaded from http://nethogs.sourceforge.net/
+
+Copyright 2004-2005, 2008 Arnout Engelen <arnouten@bzzt.net>
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is
+Copyright (c) 2006-2009 Bart Martens <bartm@knars.be>
+and is licensed under the GPL version 2, see above.
+
+The file nethogs.8 contains this:
+  .\" This page Copyright (C) 2004 Fabian Frederick <fabian.frederick@gmx.fr>
+  .\" Content based on Nethogs homepage by Arnout Engelen
+and is assumed to be licensed under the same license as nethogs, so GPL version 2.
--- nethogs-0.7.0.orig/debian/watch
+++ nethogs-0.7.0/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts="uversionmangle=s/(\d)[\-_]?(rc\d+|pre-rc\d+|pre\d+a?)$/$1~$2/;s/[\-\.](source|Source|src|orig|unix)$//;s/-(bin|osx)$/~$1/;s/^v(\d)/$1/;" \
+http://sf.net/nethogs/nethogs[\-_](v?[\d\.]+(?:rc|rc\d+|pre-rc\d+|-unix|-source|-Source|-src|\.src|\.orig|[a-z]|b\d+|beta\d+-src|beta\d+)?)\.(?:tar\.gz|tgz|tar\.bz2|zip|pm\.gz|jar|shar\.gz|shar\.Z)
+# generated with this:
+# watchupstream nethogs --try=http://nethogs.sf.net/
--- nethogs-0.7.0.orig/debian/patches/02_geteuid.diff
+++ nethogs-0.7.0/debian/patches/02_geteuid.diff
@@ -0,0 +1,11 @@
+--- ../orig/nethogs-0.7.0/nethogs.cpp	2009-03-12 22:28:14.000000000 +0100
++++ nethogs.cpp	2009-09-29 20:22:58.000000000 +0200
+@@ -320,7 +320,7 @@
+ 		init_ui();
+ 	}
+ 
+-	if (NEEDROOT && (getuid() != 0))
++	if (NEEDROOT && (geteuid() != 0))
+ 		forceExit("You need to be root to run NetHogs!");
+ 
+ 	char errbuf[PCAP_ERRBUF_SIZE];
--- nethogs-0.7.0.orig/debian/patches/01_gcc44.diff
+++ nethogs-0.7.0/debian/patches/01_gcc44.diff
@@ -0,0 +1,13 @@
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526208
+FTBFS with GCC 4.4: missing #include
+Patch by Martin Michlmayr <tbm@cyrius.com>
+
+--- ../orig/nethogs-0.7.0/conninode.cpp	2008-12-06 12:28:29.000000000 +0100
++++ conninode.cpp	2009-05-01 18:20:55.000000000 +0200
+@@ -1,5 +1,6 @@
+ #include <netinet/in.h>
+ #include <map>
++#include <stdio.h>
+ #include <stdlib.h>
+ 
+ #include "nethogs.h"
--- nethogs-0.7.0.orig/debian/patches/03_sbin.diff
+++ nethogs-0.7.0/debian/patches/03_sbin.diff
@@ -0,0 +1,13 @@
+--- ../orig/nethogs-0.7.0/Makefile	2009-09-24 10:09:22.000000000 +0200
++++ Makefile	2009-09-27 16:26:54.000000000 +0200
+@@ -26,8 +26,8 @@
+ 	echo "Not implemented"
+ 
+ install: nethogs nethogs.8
+-	install -d -m 755 $(bin)
+-	install -m 755 nethogs $(bin)
++	install -d -m 755 $(sbin)
++	install -m 755 nethogs $(sbin)
+ 	install -d -m 755 $(man8)
+ 	install -m 644 nethogs.8 $(man8)
+