summaryrefslogtreecommitdiff
path: root/community/nethogs/PKGBUILD
blob: 2c2567195a0ec1b788d01a34138bf2b674293e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 54960 2011-08-29 07:11:32Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: ViNS <gladiator@fastwebnet.it>
# Contributor: Daenyth
pkgname=nethogs
pkgver=0.8.0
pkgrel=1
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
  make DESTDIR="$pkgdir/usr" install
}
# vim:set ts=2 sw=2 et: