[arch-commits] Commit in nethogs/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Sep 6 19:30:08 UTC 2015
Date: Sunday, September 6, 2015 @ 21:30:08
Author: foutrelis
Revision: 139338
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
nethogs/repos/community-staging-i686/
nethogs/repos/community-staging-i686/PKGBUILD
(from rev 139337, nethogs/trunk/PKGBUILD)
nethogs/repos/community-staging-i686/gcc44.patch
(from rev 139337, nethogs/trunk/gcc44.patch)
nethogs/repos/community-staging-x86_64/
nethogs/repos/community-staging-x86_64/PKGBUILD
(from rev 139337, nethogs/trunk/PKGBUILD)
nethogs/repos/community-staging-x86_64/gcc44.patch
(from rev 139337, nethogs/trunk/gcc44.patch)
--------------------------------------+
community-staging-i686/PKGBUILD | 32 ++++++++++++++++++++++++++++++++
community-staging-i686/gcc44.patch | 11 +++++++++++
community-staging-x86_64/PKGBUILD | 32 ++++++++++++++++++++++++++++++++
community-staging-x86_64/gcc44.patch | 11 +++++++++++
4 files changed, 86 insertions(+)
Copied: nethogs/repos/community-staging-i686/PKGBUILD (from rev 139337, nethogs/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-06 19:30:08 UTC (rev 139338)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: ViNS <gladiator at fastwebnet.it>
+# Contributor: Daenyth
+pkgname=nethogs
+pkgver=0.8.0
+pkgrel=4
+pkgdesc="A net top tool which displays traffic used per process instead of per IP or interface"
+url="http://nethogs.sourceforge.net"
+license=('GPL')
+depends=('libpcap' 'ncurses' 'gcc-libs')
+arch=('i686' 'x86_64')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz gcc44.patch)
+md5sums=('d6fb12b46e80a50c9b9f91dd48e2b234'
+ '62eb824fbbadd1c60d0749593c16d293')
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ sed -i 's/sbin/bin/g' Makefile
+
+ # Patch the code to work with gcc 4.4
+ patch -Np1 -i "$srcdir/gcc44.patch"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/usr" install
+}
+# vim:set ts=2 sw=2 et:
Copied: nethogs/repos/community-staging-i686/gcc44.patch (from rev 139337, nethogs/trunk/gcc44.patch)
===================================================================
--- community-staging-i686/gcc44.patch (rev 0)
+++ community-staging-i686/gcc44.patch 2015-09-06 19:30:08 UTC (rev 139338)
@@ -0,0 +1,11 @@
+diff -ruN nethogs-old/conninode.cpp nethogs/conninode.cpp
+--- nethogs-old/conninode.cpp 2009-05-17 09:05:32.000000000 -0400
++++ nethogs/conninode.cpp 2009-05-17 09:06:47.000000000 -0400
+@@ -1,6 +1,7 @@
+ #include <netinet/in.h>
+ #include <map>
+ #include <stdlib.h>
++#include <cstdio>
+
+ #include "nethogs.h"
+ #include "conninode.h"
Copied: nethogs/repos/community-staging-x86_64/PKGBUILD (from rev 139337, nethogs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-06 19:30:08 UTC (rev 139338)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: ViNS <gladiator at fastwebnet.it>
+# Contributor: Daenyth
+pkgname=nethogs
+pkgver=0.8.0
+pkgrel=4
+pkgdesc="A net top tool which displays traffic used per process instead of per IP or interface"
+url="http://nethogs.sourceforge.net"
+license=('GPL')
+depends=('libpcap' 'ncurses' 'gcc-libs')
+arch=('i686' 'x86_64')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz gcc44.patch)
+md5sums=('d6fb12b46e80a50c9b9f91dd48e2b234'
+ '62eb824fbbadd1c60d0749593c16d293')
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ sed -i 's/sbin/bin/g' Makefile
+
+ # Patch the code to work with gcc 4.4
+ patch -Np1 -i "$srcdir/gcc44.patch"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/usr" install
+}
+# vim:set ts=2 sw=2 et:
Copied: nethogs/repos/community-staging-x86_64/gcc44.patch (from rev 139337, nethogs/trunk/gcc44.patch)
===================================================================
--- community-staging-x86_64/gcc44.patch (rev 0)
+++ community-staging-x86_64/gcc44.patch 2015-09-06 19:30:08 UTC (rev 139338)
@@ -0,0 +1,11 @@
+diff -ruN nethogs-old/conninode.cpp nethogs/conninode.cpp
+--- nethogs-old/conninode.cpp 2009-05-17 09:05:32.000000000 -0400
++++ nethogs/conninode.cpp 2009-05-17 09:06:47.000000000 -0400
+@@ -1,6 +1,7 @@
+ #include <netinet/in.h>
+ #include <map>
+ #include <stdlib.h>
++#include <cstdio>
+
+ #include "nethogs.h"
+ #include "conninode.h"
More information about the arch-commits
mailing list