aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcpflow/APKBUILD
blob: 2addf08f2b130381df1156f6501a949fa5481d90 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tcpflow
pkgver=1.3.0
pkgrel=0
pkgdesc="A Tool for monitoring, capturing and storing TCP connections flows"
url="https://github.com/simsong/tcpflow"
arch="all"
license="GPL3"
depends=""
makedepends="libpcap-dev zlib-dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/downloads/simsong/tcpflow/$pkgname-$pkgver.tar.gz"

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

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

md5sums="4912d55b7ae20f4971dfcc86547b2824  tcpflow-1.3.0.tar.gz"
sha256sums="bd150e432292419b16af45fa951254b19d830709a1c931032ed475049af0b040  tcpflow-1.3.0.tar.gz"
sha512sums="4812bb4060535f6258496fec1fa5d9489e2832aa342ebb6f00e0717468d74463761637d5198951401d115f6d9c985475f56a435229070fa30f4fbc581f0c5587  tcpflow-1.3.0.tar.gz"