aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcpflow/APKBUILD
blob: ef512bb8c7bf4c8dfa94cdeae8773fafd7558b61 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tcpflow
pkgver=1.4.4
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 boost-dev openssl-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.digitalcorpora.org/downloads/tcpflow/tcpflow-$pkgver.tar.gz"

_builddir="$srcdir"/tcpflow-$pkgver

prepare() {
	cd "$_builddir"
}

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="f395fea6f5fe136543f4c982beff9cba  tcpflow-1.4.4.tar.gz"
sha256sums="b6f5605e7e3f71d004736f4ded9e2a4f5c2233d3423019f3dc0af56037ed544c  tcpflow-1.4.4.tar.gz"
sha512sums="10fd8dc5cb88d40f37a37678a75179d56331fd369409df12c073988e763550a1ba05a35ee205003af657679b711c62a4a9f92b50282fccc67e0081dd00bcb820  tcpflow-1.4.4.tar.gz"