summaryrefslogtreecommitdiffstats
path: root/main/iftop/APKBUILD
blob: 32af2929fbb6eec6ef2405f22b2bc84bc33ebf28 (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
29
30
31
32
33
34
35
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iftop
pkgver=0.17
pkgrel=3
pkgdesc="iftop does for network usage what top(1) does for CPU usage"
url="http://www.ex-parrot.com/~pdw/iftop/"
arch="all"
license="GPL"
depends=
makedepends="libpcap-dev>=1 ncurses-dev"
subpackages="$pkgname-doc"
source="http://www.ex-parrot.com/~pdw/$pkgname/download/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/iftop-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make
}

package()  {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}
md5sums="062bc8fb3856580319857326e0b8752d  iftop-0.17.tar.gz"