aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-12-30 15:59:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-30 16:18:04 +0000
commitf9f705588c2fa7d0315299c0ae5ab859af8d87a2 (patch)
tree14df3c691476adc9bdb29fda2a2e2a3c42b0bdcf
parent9582332f5244fd47f63334263f3a60376719b415 (diff)
downloadaports-f9f705588c2fa7d0315299c0ae5ab859af8d87a2.tar.bz2
aports-f9f705588c2fa7d0315299c0ae5ab859af8d87a2.tar.xz
main/linux-grsec: fix linux-virtgrsec-dev
-rw-r--r--main/linux-grsec/APKBUILD14
1 files changed, 3 insertions, 11 deletions
diff --git a/main/linux-grsec/APKBUILD b/main/linux-grsec/APKBUILD
index d4192f7ea3..a26d355cb4 100644
--- a/main/linux-grsec/APKBUILD
+++ b/main/linux-grsec/APKBUILD
@@ -7,7 +7,7 @@ case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=${pkgver};;
esac
-pkgrel=3
+pkgrel=4
pkgdesc="Linux kernel with grsecurity"
url=http://grsecurity.net
depends="mkinitfs"
@@ -30,7 +30,7 @@ source="http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-$_kernver.tar.xz
config-virtgrsec.x86
config-virtgrsec.x86_64
"
-subpackages="$pkgname-dev linux-virtgrsec-dev"
+subpackages="$pkgname-dev:_dev linux-virtgrsec-dev:_dev"
_flavors=
for _i in $source; do
case $_i in
@@ -152,7 +152,7 @@ virtgrsec() {
}
_dev() {
- local _flavor="$1"
+ local _flavor=$(echo $subpkgname | sed -E 's/(^linux-|-dev$)//g')
local _abi_release=${pkgver}-${pkgrel}-$_flavor
# copy the only the parts that we really need for build 3rd party
# kernel modules and install those as /usr/src/linux-headers,
@@ -202,14 +202,6 @@ _dev() {
"$subpkgdir"/lib/modules/${_abi_release}/build
}
-dev() {
- _dev grsec
-}
-
-virtgrsec_dev() {
- _dev virtgrsec
-}
-
md5sums="9a78fa2eb6c68ca5a40ed5af08142599 linux-4.4.tar.xz
62185f1a06241fca5cd94109f3dada4b patch-4.4.39.xz
1500a9b416762414c7043aa7974a59df grsecurity-3.1-4.4.39-201604252206-alpine.patch