diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-13 19:30:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-14 18:50:08 +0000 |
commit | a4b5d2867b61870d2ff3bb3c787dddb3d0918cb8 (patch) | |
tree | 5edf59dffe97aefe2a0e4bdff71db3a941b4bae1 /main/dahdi-linux-grsec/APKBUILD | |
parent | fad540cc82ad0c92523fe9279c4aa054b141d363 (diff) | |
download | aports-a4b5d2867b61870d2ff3bb3c787dddb3d0918cb8.tar.bz2 aports-a4b5d2867b61870d2ff3bb3c787dddb3d0918cb8.tar.xz |
main/dahdi-linux-grsec: rebuild against kernel 4.9.9
Diffstat (limited to 'main/dahdi-linux-grsec/APKBUILD')
-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) |