diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-10 08:14:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-10 10:04:41 +0000 |
commit | 1a21bc3a35de32521b021cc16cacff9beee38382 (patch) | |
tree | 2ebfec1c7903ccc190c7b9a1095c1a1e58f76dc4 /main/open-iscsi-grsec | |
parent | 98616434d7117b42cf1b7c650104b937e084db52 (diff) | |
download | aports-1a21bc3a35de32521b021cc16cacff9beee38382.tar.bz2 aports-1a21bc3a35de32521b021cc16cacff9beee38382.tar.xz |
main/*-grsec: enable e_powersaver module and update 3rdpary module building
We no need to manually edit every 3rd party module's kernel ver to match
the kernel packages version.
We need to do this because we will at some point allow building in a
chroot whithout the entire aports tree beeing present.
Diffstat (limited to 'main/open-iscsi-grsec')
-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 |