summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-27 09:39:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-27 09:39:17 +0000
commitd85e87e8c70fb2d0da194636d83ef411daa1d0cc (patch)
tree68127e3843741e8c09cb7444e0798d2322ac4661 /testing
parent955233cd4d2b5e62f9c1a41fa91e6951aa32d940 (diff)
downloadaports-d85e87e8c70fb2d0da194636d83ef411daa1d0cc.tar.bz2
aports-d85e87e8c70fb2d0da194636d83ef411daa1d0cc.tar.xz
testing/kqemu-vserver: use prepare() and package()
Diffstat (limited to 'testing')
-rw-r--r--testing/kqemu-vserver/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/testing/kqemu-vserver/APKBUILD b/testing/kqemu-vserver/APKBUILD
index ffa5f0c01..8f88148f0 100644
--- a/testing/kqemu-vserver/APKBUILD
+++ b/testing/kqemu-vserver/APKBUILD
@@ -12,7 +12,7 @@ _abi_release=$pkgver-${_flavor}
pkgname=${_realname}-${_flavor}
pkgver=$pkgver
_realver=1.4.0pre1
-pkgrel=0
+pkgrel=1
pkgdesc="$_flavor kernel modules for kemu"
url="http://www.nongnu.org/qemu/"
license="GPL"
@@ -22,11 +22,22 @@ makedepends="linux-${_flavor}-dev=${_kernelver}"
subpackages=
source="http://www.nongnu.org/qemu/kqemu-$_realver.tar.gz"
+# override the kernel's prepare()
+prepare() {
+ cd "$srcdir"/$_realname-$_realver
+ sed -i 's:MODULE_PARM(\([^,]*\),"i");:module_param(\1, int, 0);:' kqemu-linux.c
+}
+
build() {
cd "$srcdir"/$_realname-$_realver
export CFLAGS="$CFLAGS -fno-pie -fno-stack-protector"
+ export KERNEL_CFLAGS="$CFLAGS"
./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