diff options
Diffstat (limited to 'main/open-iscsi-grsec/APKBUILD')
-rw-r--r-- | main/open-iscsi-grsec/APKBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/main/open-iscsi-grsec/APKBUILD b/main/open-iscsi-grsec/APKBUILD index 0920894389..9098230d44 100644 --- a/main/open-iscsi-grsec/APKBUILD +++ b/main/open-iscsi-grsec/APKBUILD @@ -3,14 +3,18 @@ _flavor=grsec _realname=open-iscsi _realver=2.0-872 -# source the kernel version -if [ -f ../../main/linux-$_flavor/APKBUILD ]; then - . ../../main/linux-$_flavor/APKBUILD +_kver=3.0.8 +_kpkgrel=2 + +# verify the kernel version before entering chroot +if [ -f ../linux-${_flavor}/APKBUILD ]; then + . ../linux-${_flavor}/APKBUILD + [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" + [ "$_kpkgrel" != "$pkgrel" ] && die "please update _kpkgrel to $pkgrel" fi -_kver=$pkgver -_kernelver=$pkgver-r$pkgrel -_abi_release=$pkgver-${_flavor} -_kpkgrel=$pkgrel + +_kernelver="$_kver-r$_kpkgrel" +_abi_release=$_kver-${_flavor} _ksrc=/usr/src/linux-headers-${_abi_release} _iscsiver=$_realver |