diff options
Diffstat (limited to 'main/dahdi-linux-grsec')
-rw-r--r-- | main/dahdi-linux-grsec/APKBUILD | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/main/dahdi-linux-grsec/APKBUILD b/main/dahdi-linux-grsec/APKBUILD index bbad2dc301..286563a4dc 100644 --- a/main/dahdi-linux-grsec/APKBUILD +++ b/main/dahdi-linux-grsec/APKBUILD @@ -3,17 +3,10 @@ _flavor=grsec _kpkg=linux-$_flavor -_kver=4.4.47 +_kver=4.9.9 _kpkgrel=0 _mypkgrel=0 -# verify the kernel version before entering chroot -if [ -f ../linux-${_flavor}/APKBUILD ]; then - . ../linux-${_flavor}/APKBUILD - [ "$_kver" != "$pkgver" ] && die "dahdi-linux-grsec: please update _kver to $pkgver" - [ "$_kpkgrel" != "$pkgrel" ] && die "dahdi-linux-grsec: please update _kpkgrel to $pkgrel" -fi - _kpkgver="$_kver-r$_kpkgrel" _abi_release=${_kver}-${_kpkgrel}-${_flavor} _realname=dahdi-linux @@ -49,6 +42,20 @@ source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realna prepare() { cd "$srcdir/$_realname-$_dahdiver" + # verify the kernel version + ( + + if [ -f "$startdir"/../linux-${_flavor}/APKBUILD ]; then + . "$startdir"/../linux-${_flavor}/APKBUILD + if [ "$_kver" != "$pkgver" ]; then + die "dahdi-linux-grsec: please update _kver to $pkgver" + fi + if [ "$_kpkgrel" != "$pkgrel" ]; then + die "dahdi-linux-grsec: please update _kpkgrel to $pkgrel" + fi + fi + ) || return 1 + for i in $source; do case $i in *.patch|*.diff) |