aboutsummaryrefslogtreecommitdiffstats
path: root/core/linux-grsec/APKBUILD
blob: 806d3f7276674dfaa148519f0c932634126d0693 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pkgname=linux-grsec
pkgver=2.6.26.8
pkgrel=1
pkgdesc="Linux kernel with grsecurity"
url=http://grsecurity.net
_kernver=2.6.26
arch=i486
makedepends="$pkgname-sources module-init-tools perl"
source="kernelconfig"
subpackages="$pkgname-mod"
license=GPL-2

build() {
	mkdir -p "$srcdir/$pkgname"
	cd "$srcdir/$pkgname"
	cp ../kernelconfig .config
	make -C /usr/src/linux-$pkgver-grsec "O=$PWD" silentoldconfig
	make || return 1

	mkdir -p $pkgdir/boot $pkgdir/lib/modules
	make modules_install install \
		INSTALL_MOD_PATH=$pkgdir \
		INSTALL_PATH=$pkgdir/boot
}

md5sums="7bff4dd7b5f8ef83e6a3c2e2e5d5fbec  kernelconfig"