# Maintainer: Natanael Copa _flavor=${FLAVOR:-grsec} _realname=xtables-addons # source the kernel version if [ -f ../linux-$_flavor/APKBUILD ]; then . ../linux-$_flavor/APKBUILD fi _kernelver=$pkgver-r$pkgrel _abi_release=$pkgver-${_flavor} _kpkgrel=$pkgrel pkgname=${_realname}-${_flavor} pkgver=${pkgver} _realver=1.20 _mypkgrel=1 pkgrel=$(($_kpkgrel + $_mypkgrel)) pkgdesc="Iptables extensions kernel modules" url="http://xtables-addons.sourceforge.net/" license="GPL" depends="linux-${_flavor}=${_kernelver}" makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig" install= subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_realver.tar.bz2" # override kernel's prepare() prepare() { : } build() { cd "$srcdir/$_realname-$_realver" ./configure --prefix=/usr \ --with-kbuild=/usr/src/linux-headers-${_abi_release} cd extensions make CC="${CC:-gcc}" modules || return 1 } package() { cd "$srcdir/$_realname-$_realver"/extensions make DESTDIR="$pkgdir" modules_install } md5sums="d5f8281af22f5e32bb8010f99f1ab44b xtables-addons-1.20.tar.bz2"