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

_builddir="$srcdir"/tcpflow-$pkgver

prepare() {
	cd "$_builddir"
	# Don't run pdf tests as the feature require cairo:
	sed -i 's/test-pdfs.sh//' tests/Makefile.am
	autoreconf -fisv || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
}

build() {
	cd "$_builddir"
	make || return 1
	make check || return 1
}

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

md5sums="5978b112a899f2099e98cef6d9a0ece9  tcpflow-1.4.5.tar.gz"
sha256sums="f39fed437911b858c97937bc902f68f9a690753617abe825411a8483a7f70c72  tcpflow-1.4.5.tar.gz"
sha512sums="e31b278b8f4e97b6d1ffb6f8f145a56806963271ab96204ba555ab88049dedc5a13adf78b7775e96e92fe48bbf5116781810cef0d3374231764af059fc09dd97  tcpflow-1.4.5.tar.gz"