aboutsummaryrefslogtreecommitdiffstats
path: root/main/iftop/APKBUILD
blob: fb7813dc98563a08a9b2e1979feb6b2b9bf8fd0a (plain) (blame)
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
36
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iftop
pkgver=0.17
pkgrel=7
pkgdesc="A tool to display bandwidth usage on an interface"
url="http://www.ex-parrot.com/~pdw/iftop/"
arch="all"
license="GPL-2.0"
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 || return 1
}

package()  {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="41e3bc5feac5927f67356f491fcab7a28f7a32102cc33c67d81c1dc755273c42e32b540b14b6254a540f1b6c1b1ad6c50e3095c3b5282db2ea12dd0049ce2ebd  iftop-0.17.tar.gz"