# Maintainer: Natanael Copa _flavor=${FLAVOR:-grsec} _kpkg=linux-$_flavor _realname=xtables-addons _name=$_realname-$_flavor _kver=3.8.3 _kpkgrel=0 _realver=2.1 _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="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="b624fc57bbda9e15c33a6471e4ec75e1 xtables-addons-2.1.tar.xz" sha256sums="1d788bf647d96cfbcc2e61c3a32702cfdde40fea857407d2674731b41ac3ae79 xtables-addons-2.1.tar.xz" sha512sums="df8617f8dbc386e1264063fa1650a18021a199e8d301b7a2133c840f1cd54d348d5b6e46b823a778feb9682d65d898c8d31c0df35ee2b914865b126485973973 xtables-addons-2.1.tar.xz"