# Maintainer: Natanael Copa _flavor=grsec _realname=iscsitarget # source the kernel version if [ -f ../linux-$_flavor/APKBUILD ]; then . ../linux-$_flavor/APKBUILD fi _kver=$pkgver _kernelver=$pkgver-r$pkgrel _abi_release=$pkgver-${_flavor} _iscsiver=1.4.18 pkgname=${_realname}-${_flavor} pkgver=$_kver pkgrel=0 pkgdesc="$_flavor kernel modules for iscsitarget $_iscsiver" url="http://iscsitarget.sourceforge.net/" license="GPL-2" depends="linux-${_flavor}=${_kernelver}" install= makedepends="linux-${_flavor}-dev=${_kernelver}" subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_iscsiver.tar.gz " build() { cd "$srcdir"/$_realname-$_iscsiver # for i in ../*.patch; do # msg "Applying $i" # patch -p1 < $i || return 1 # done unset ARCH local ksrc=/usr/src/linux-headers-${_abi_release} make KSRC="$ksrc" kernel || return 1 make KSRC="$ksrc" DISTDIR="$pkgdir" install-kernel || return 1 } md5sums="9e756e89cc47aaa71824ed34a6560543 iscsitarget-1.4.18.tar.gz"