diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/nethogs/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/nethogs/PKGBUILD')
-rw-r--r-- | community/nethogs/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/nethogs/PKGBUILD b/community/nethogs/PKGBUILD new file mode 100644 index 000000000..3bf9ec080 --- /dev/null +++ b/community/nethogs/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 83919 2013-02-06 14:47:26Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: ViNS <gladiator@fastwebnet.it> +# Contributor: Daenyth +pkgname=nethogs +pkgver=0.8.0 +pkgrel=2 +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: |