blob: d534ca690841e306350cade2807a846b5a3176c5 (
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
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# when chaning _ver we *must* bump _rel
_name=ipt-netflow
_ver=2.3_pre20180201
_rel=0
_flavor=${FLAVOR:-vanilla}
_kpkg=linux-$_flavor
_kver=4.14.85
_krel=0
_kpkgver="$_kver-r$_krel"
_kabi="$_kver-$_krel-$_flavor"
pkgname=$_name-$_flavor
pkgver=$_kver
pkgrel=$(( $_krel + $_rel ))
pkgdesc="Linux kernel netflow sensor module"
url="http://ipt-netflow.sourceforge.net/"
arch="x86 x86_64 armhf armv7"
license="GPL-3.0-or-later"
depends="$_kpkg=$_kpkgver"
makedepends="$_kpkg-dev=$_kpkgver iptables-dev bash"
install_if="$_kpkg=$_kpkgver ipt-netflow"
#provides="${_name}-grsec=${pkgver}-r${pkgrel}"
source="ipt-netflow-$_ver.tar.xz::http://turtle.dereferenced.org/~kaniini/ipt-netflow-$_ver.tar.xz"
builddir="$srcdir/$_name-$_ver"
prepare() {
default_prepare
# verify the kernel version
local _kapkbuild=../../main/linux-$_pkgver/APKBUILD
if [ -f $_kapkbuild ]; then
( . $_kapkbuild
pkgname=$_name-$_flavor
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
}
build() {
cd "$builddir"
./configure --kver=$_kabi --ipt-inc=/usr/include/libiptc
make ipt_NETFLOW.ko
}
package() {
cd "$builddir"
make -j1 minstall DEPMOD=: DESTDIR="$pkgdir"
}
sha512sums="8216baf824380bceb9279c07a5314f7a3c21a140b82d83fdf31e123c11d7f8afdfc1942f7ac8a5d1af7fe980dc404c932a052b26839a01d99cc79334870c12b4 ipt-netflow-2.3_pre20180201.tar.xz"
|