diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-24 15:07:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-24 15:07:32 +0000 |
commit | db545f8f05d497db8f3791eef015ae50d538bb2b (patch) | |
tree | b725097f470cf3a56f62870c7b906405b6de09b9 /testing/linux-vserver/APKBUILD | |
parent | a1e641c9e26bfdffc13538380ed369696462cb28 (diff) | |
download | aports-db545f8f05d497db8f3791eef015ae50d538bb2b.tar.bz2 aports-db545f8f05d497db8f3791eef015ae50d538bb2b.tar.xz |
testing/linux-vserver: new aport
Vserver kernel
http://linux-vserver.org
Diffstat (limited to 'testing/linux-vserver/APKBUILD')
-rw-r--r-- | testing/linux-vserver/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/linux-vserver/APKBUILD b/testing/linux-vserver/APKBUILD new file mode 100644 index 0000000000..fa5091d3da --- /dev/null +++ b/testing/linux-vserver/APKBUILD @@ -0,0 +1,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" |