summaryrefslogtreecommitdiffstats
path: root/testing/ipt-netflow/APKBUILD
blob: c6eecb08e2f433e3139e5f704ab32dbdf63506c0 (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: Rush Future <rush.zlo@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipt-netflow
pkgver=2.0
_ver=${pkgver%_git*}
pkgrel=0
pkgdesc="Kernel netflow sensor"
url="http://ipt-netflow.sourceforge.net."
arch="all"
license="GPL3+"
makedepends="iptables-dev bash"
source="$pkgname-$_ver.tar.gz::https://github.com/aabc/ipt-netflow/archive/v$_ver.tar.gz
	kernel-vs-userspace.patch
	"

_builddir="$srcdir/$pkgname-$_ver"
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"
	./configure \
		--ipt-inc=/usr/include \
		--disable-kernel \
		|| return 1
	make libipt_NETFLOW.so || return 1
}

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

md5sums="d1b40ee12b563edc4faae5e3234c3436  ipt-netflow-2.0.tar.gz
1056dd9b4d28b306f45028d2960469eb  kernel-vs-userspace.patch"
sha256sums="547ca6c2e8d82fc7d3d113d2ab3f602106d1efa7739167f8c7850a43e5bbe46e  ipt-netflow-2.0.tar.gz
9f376ee65e14a3dd5d59547d2f6480061217bf05d4effa4ce34f4d4496c75619  kernel-vs-userspace.patch"
sha512sums="7bf330ac665180218ea4cc42fe6ac6d365b45632039ff9601559f7a4675738c409853433b15dd431dba68cfe36269d6992754154411e2761041fec021e19bf8d  ipt-netflow-2.0.tar.gz
eb5c5bcbacfa87ba61753a8d6bd092a296d948fc91d34825f6f461b39f180b7a06a7ee7cef061c947822c170743db05389dace9bed13f3f93da0593cc1187307  kernel-vs-userspace.patch"