blob: fa5091d3dabca65d83f3e7d3c9ceb95032aeab38 (
plain)
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
27
28
29
30
31
32
33
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-vserver
pkgver=2.6.28.7
pkgrel=0
pkgdesc="Linux kernel with vserver"
url=http://linux-vserver.org
makedepends="$pkgname-sources perl"
source="kernelconfig"
subpackages="$pkgname-mod $pkgname-dev"
license=GPL-2
build() {
mkdir -p "$srcdir/$pkgname"
cd "$srcdir/$pkgname"
cp ../kernelconfig .config
make -C /usr/src/linux-$pkgver-vserver "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
cd "$pkgdir"/boot
mv vmlinuz ${pkgname#linux-}
mv System.map System-${pkgname#linux-}.map
}
dev() {
install -Dm644 "$srcdir/kernelconfig" \
"$subpkgdir"/usr/share/$pkgname/config
}
md5sums="6ddcaf64abb1c6f7f52863e32d9d131c kernelconfig"
|