# Maintainer: Natanael Copa _flavor=${FLAVOR:-grsec} _kpkg=linux-$_flavor _realname=xtables-addons _name=$_realname-$_flavor _kver=4.4.20 _kpkgrel=1 _realver=2.10 _mypkgrel=0 # source the kernel version if [ -f ../linux-$_flavor/APKBUILD ]; then . ../linux-$_flavor/APKBUILD [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver" [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel" fi _kernelver=$_kver-r$_kpkgrel _abi_release=${_kver}-${_kpkgrel}-${_flavor} pkgname=$_name pkgver=$_kver pkgrel=$(($_kpkgrel + $_mypkgrel)) pkgdesc="Iptables extensions kernel modules" url="http://xtables-addons.sourceforge.net/" arch="x86 x86_64 armhf" license="GPL" depends="linux-${_flavor}=${_kernelver}" makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev linux-headers" install= install_if="linux-$_flavor=$_kernelver $_realname" subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz" _builddir="$srcdir/$_realname-$_realver" prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-kbuild=/usr/src/linux-headers-${_abi_release} \ || return 1 cd extensions make CC="${CC:-gcc}" KCFLAGS="-fno-pie" modules || return 1 } package() { cd "$_builddir/extensions" make KCFLAGS="-fno-pie" DESTDIR="$pkgdir" modules_install } md5sums="727bf0dd4a3d9c65724267bd0d5d80b0 xtables-addons-2.10.tar.xz" sha256sums="2a2d92ae924437d757f55514502c6ef3aeccc6106f729c702efe703ad30f4007 xtables-addons-2.10.tar.xz" sha512sums="047e5922365f40021f8fcf832fe487759e7361979009e18cf7fd3a99d704fce1268b5eab58b6d0cd43354ee8de024852c25d8412e6b47fe5861b414c51af1938 xtables-addons-2.10.tar.xz"