# Maintainer: Natanael Copa # 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"