Commit 4815c171 authored by Ariadne Conill's avatar Ariadne Conill

testing/ipt-netflow-vanilla: new aport

parent 84f4200b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=vanilla
_kpkg=linux-$_flavor
_kver=4.14.16
_kpkgrel=0
# when chaning _ver we *must* bump _mypkgrel
_ver=2.3_pre20180201
_mypkgrel=0
# verify the kernel version before entering chroot
if [ -f ../linux-${_flavor}/APKBUILD ]; then
. ../linux-${_flavor}/APKBUILD
pkgname=ipt-netflow-${_flavor}
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_kpkgrel" != "$pkgrel" ] && die "please update _kpkgrel to $pkgrel"
fi
_kpkgver="$_kver-r$_kpkgrel"
_abi_release=${_kver}-${_kpkgrel}-${_flavor}
pkgname=ipt-netflow-${_flavor}
pkgver=$_kver
pkgrel=$(( $_kpkgrel + $_mypkgrel ))
pkgdesc="Linux kernel netflow sensor module"
url="http://ipt-netflow.sourceforge.net/"
arch="x86 x86_64 armhf"
license=GPL3+
source="ipt-netflow-$_ver.tar.xz::http://turtle.dereferenced.org/~kaniini/ipt-netflow-$_ver.tar.xz
"
#provides="ipt-netflow-grsec=${pkgver}-r${pkgrel}"
depends="${_kpkg}=${_kpkgver}"
depends_dev="$_kpkg-dev=$_kpkgver"
makedepends="linux-${_flavor}-dev=$_kpkgver iptables-dev bash"
install_if="$_kpkg=$_kpkgver ipt-netflow"
_builddir="$srcdir"/ipt-netflow-$_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 --kver=$_abi_release \
--ipt-inc=/usr/include/libiptc \
|| return 1
make ipt_NETFLOW.ko || return 1
}
package() {
cd "$_builddir"
make -j1 minstall DEPMOD=: DESTDIR="$pkgdir" \
|| return 1
}
# override dev() from kernel's APKBUILD
dev() {
default_dev
}
sha512sums="8216baf824380bceb9279c07a5314f7a3c21a140b82d83fdf31e123c11d7f8afdfc1942f7ac8a5d1af7fe980dc404c932a052b26839a01d99cc79334870c12b4 ipt-netflow-2.3_pre20180201.tar.xz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment