aboutsummaryrefslogtreecommitdiffstats
path: root/core/linux-grsec/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-07 20:21:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-07 20:21:53 +0000
commit16ed4da926eeb3275baffcd99e9310097be03be9 (patch)
treed4424e8fbc41075036152120f8a0607e9529dc5e /core/linux-grsec/APKBUILD
parent2fc90762c2e1418fbd51f73d3ef635e67f5fb325 (diff)
downloadaports-16ed4da926eeb3275baffcd99e9310097be03be9.tar.gz
aports-16ed4da926eeb3275baffcd99e9310097be03be9.tar.bz2
aports-16ed4da926eeb3275baffcd99e9310097be03be9.tar.xz
core/linux-grsec: build for 586. install Module.symvers
We need Module.symvers to build kernel module packages
Diffstat (limited to 'core/linux-grsec/APKBUILD')
-rw-r--r--core/linux-grsec/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/linux-grsec/APKBUILD b/core/linux-grsec/APKBUILD
index 5c690da865..8d27cb415c 100644
--- a/core/linux-grsec/APKBUILD
+++ b/core/linux-grsec/APKBUILD
@@ -1,7 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname=linux-grsec
+_flavor=grsec
+pkgname=linux-$_flavor
pkgver=2.6.28.9
-pkgrel=0
+pkgrel=1
pkgdesc="Linux kernel with grsecurity"
url=http://grsecurity.net
arch=i486
@@ -22,13 +23,15 @@ build() {
INSTALL_MOD_PATH=$pkgdir \
INSTALL_PATH=$pkgdir/boot
cd "$pkgdir"/boot
- mv vmlinuz ${pkgname#linux-}
- mv System.map System-${pkgname#linux-}.map
+ mv vmlinuz $_flavor
}
dev() {
+ install -Dm644 "$srcdir"/$pkgname/Module.symvers \
+ "$subpkgdir"/boot/Module.symvers-$_flavor
install -Dm644 "$srcdir/kernelconfig" \
- "$subpkgdir"/usr/share/$pkgname/config
+ "$subpkgdir"/boot/config-$_flavor
+ mv "$pkgdir"/boot/System.map "$subpkgdir"/boot/System.map-$_flavor
}
-md5sums="b44152b7ca7199c3d6ab499a61f06fdd kernelconfig"
+md5sums="d35b3562cf4d88cac8b8668c7d36391b kernelconfig"