# 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} # get pkgver from xtables-addons package if [ -f ../$_realname/APKBUILD ]; then . ../$_realname/APKBUILD fi pkgname=${_realname}-${_flavor} pkgver=${pkgver:-1.17} pkgrel=3 pkgdesc="Iptables extensions kernel modules" url="http://xtables-addons.sourceforge.net/" license="GPL" #depends="linux-${_flavor}=${_kernelver}" depends="linux-${_flavor}" #makedepends="linux-${_flavor}-dev=${_kernelver} iptables-dev pkgconfig" makedepends="linux-${_flavor}-dev iptables-dev pkgconfig" install= subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.bz2" build() { cd "$srcdir/$_realname-$pkgver" ./configure --prefix=/usr \ --with-kbuild=/usr/src/linux-headers-${_abi_release} cd extensions make CC="${CC:-gcc}" modules || return 1 make DESTDIR="$pkgdir" modules_install } md5sums="eca2e3f4f4904814e3a301539876fae6 xtables-addons-1.17.tar.bz2"