aboutsummaryrefslogtreecommitdiffstats
path: root/main/iptraf-ng/APKBUILD
blob: 331f0ca4c30fefc153cc28271c6e788996ac8ff2 (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
36
37
38
39
40
41
42
43
44
45
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=iptraf-ng
pkgver=1.1.4
pkgrel=0
pkgdesc="IP Network Monitoring Software (fork of original iptraf)"
url="https://fedorahosted.org/iptraf-ng/"
arch="all"
license="GPLv2"
depends=
makedepends="ncurses-dev"
install=
subpackages="$pkgname-doc"
source="https://fedorahosted.org/releases/i/p/$pkgname/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/iptraf-ng-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}


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

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

md5sums="de27cfeeede96e2acfb0edc8439b034a  iptraf-ng-1.1.4.tar.gz"
sha256sums="79140cf07c0cceb1b5723242847a73aa86f5e4f9dccfe8970fda6801d347eb09  iptraf-ng-1.1.4.tar.gz"
sha512sums="8cafb0000cec75eb4071156a9e9350ffe6de99cb6386e8f50d05337113872ee50082a30009d85faa02d83633a8e727039791332d600654321b95ca6cfc881774  iptraf-ng-1.1.4.tar.gz"