# Maintainer: Natanael Copa _flavor=${FLAVOR:-grsec} _kpkg=linux-$_flavor _realname=xtables-addons _name=$_realname-$_flavor _kver=3.6.11 _kpkgrel=15 _realver=1.47 _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-${_flavor} pkgname=$_name pkgver=$_kver pkgrel=$(($_kpkgrel + $_mypkgrel)) pkgdesc="Iptables extensions kernel modules" url="http://xtables-addons.sourceforge.net/" arch="all" license="GPL" depends="linux-${_flavor}=${_kernelver}" makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig" install= install_if="linux-$_flavor=$_kernelver $_realname" subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.xz" # override kernel's prepare() prepare() { : } build() { cd "$srcdir/$_realname-$_realver" ./configure --prefix=/usr \ --with-kbuild=/usr/src/linux-headers-${_abi_release} cd extensions export GCC_SPECS=/usr/share/gcc/hardenednopie.specs make CC="${CC:-gcc}" modules || return 1 } package() { cd "$srcdir/$_realname-$_realver"/extensions make DESTDIR="$pkgdir" modules_install } md5sums="3c415329fcdd40c6b68039588e983f8a xtables-addons-1.47.tar.xz" sha256sums="536581100b7c7558d2b5fa70ff3739c37bca68a90638a16ee8894ae30789771a xtables-addons-1.47.tar.xz" sha512sums="14afb5ca07e0634839eb5fd4888c794d7a883fc7b58dd507a85fbb40642b7f9d44704e043a608c7226dccbdc5990d342ce56872f9440091fa004808572fcdd1f xtables-addons-1.47.tar.xz"