aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-29 17:30:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-29 17:32:07 +0000
commit49b4c1dfaf90f1435fe46e47ded7ca768d0be291 (patch)
tree22df09cf43f9865fe5e67e63c54021df917c6dfe /testing
parent8c4ba598f3f964a8727f3f68ff3d3463d505d579 (diff)
downloadaports-49b4c1dfaf90f1435fe46e47ded7ca768d0be291.tar.bz2
aports-49b4c1dfaf90f1435fe46e47ded7ca768d0be291.tar.xz
*-grsec: upgrade kernel to 2.6.31.5
and use package() function
Diffstat (limited to 'testing')
-rw-r--r--testing/kqemu-grsec/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/testing/kqemu-grsec/APKBUILD b/testing/kqemu-grsec/APKBUILD
index b9527fa87b..b02b8c27e9 100644
--- a/testing/kqemu-grsec/APKBUILD
+++ b/testing/kqemu-grsec/APKBUILD
@@ -10,10 +10,10 @@ _kernelver=$pkgver-r$pkgrel
_abi_release=$pkgver-${_flavor}
pkgname=${_realname}-${_flavor}
-pkgver=1.4.0_pre1
+pkgver=$pkgver
_realver=1.4.0pre1
-pkgrel=10
-pkgdesc="$_flavor kernel modules for kemu"
+pkgrel=0
+pkgdesc="$_flavor kernel modules for kemu $_realver"
url="http://www.nongnu.org/qemu/"
license="GPL"
depends="linux-${_flavor}=${_kernelver}"
@@ -22,10 +22,19 @@ makedepends="linux-${_flavor}-dev=${_kernelver}"
subpackages=
source="http://www.nongnu.org/qemu/kqemu-$_realver.tar.gz"
+# override kernel APKBUILD's prepare
+prepare() {
+ :
+}
+
build() {
cd "$srcdir"/$_realname-$_realver
./configure --kernel-path=/lib/modules/${_abi_release}/build
make || return 1
+}
+
+package() {
+ cd "$srcdir"/$_realname-$_realver
install -D -m644 kqemu.ko \
"$pkgdir"/lib/modules/${_abi_release}/misc/kqemu.ko \
|| return 1