diff options
Diffstat (limited to 'main/linux-grsec/APKBUILD')
-rw-r--r-- | main/linux-grsec/APKBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/main/linux-grsec/APKBUILD b/main/linux-grsec/APKBUILD index 48464c106..b3126d2ec 100644 --- a/main/linux-grsec/APKBUILD +++ b/main/linux-grsec/APKBUILD @@ -4,7 +4,7 @@ _flavor=grsec pkgname=linux-${_flavor} pkgver=2.6.32.15 _kernver=2.6.32 -pkgrel=2 +pkgrel=3 pkgdesc="Linux kernel with grsecurity" url=http://grsecurity.net depends="mkinitfs linux-firmware" @@ -46,12 +46,14 @@ prepare() { bunzip2 -c < ../patch-$pkgver.bz2 | patch -p1 -N || return 1 fi - # first apply the grsecurity patch and then the rest - for i in "$srcdir"/grsecurity*.patch "$srcdir"/0[0-9]*.patch \ - "$srcdir"/xfrm*; do - [ -f $i ] || continue - msg "Applying $i..." - patch -s -p1 -N < $i || return 1 + # first apply patches in specified order + for i in $source; do + case $i in + *.patch) + msg "Applying $i..." + patch -s -p1 -N < "$srcdir"/$i || return 1 + ;; + esac done mkdir -p "$srcdir"/build |