aboutsummaryrefslogtreecommitdiffstats
path: root/unstable
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-06 09:02:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-06 09:02:18 +0000
commitff2b34b53a4ff1467ccf7792262317ae8c42a39e (patch)
tree3e0eb3c6f48ae66dec0fc4b3c1d0926a4b05658f /unstable
parent7824d9ddebe659d933c2a8a39d9c8d10cbc5481a (diff)
downloadaports-ff2b34b53a4ff1467ccf7792262317ae8c42a39e.tar.bz2
aports-ff2b34b53a4ff1467ccf7792262317ae8c42a39e.tar.xz
unstable/kqemu-vserver: moved from testing
doesnt work really
Diffstat (limited to 'unstable')
-rw-r--r--unstable/kqemu-vserver/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/unstable/kqemu-vserver/APKBUILD b/unstable/kqemu-vserver/APKBUILD
new file mode 100644
index 0000000000..8f88148f04
--- /dev/null
+++ b/unstable/kqemu-vserver/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+_flavor=vserver
+_realname=kqemu
+# source the kernel version
+if [ -f ../../testing/linux-$_flavor/APKBUILD ]; then
+ . ../../testing/linux-$_flavor/APKBUILD
+fi
+_kernelver=$pkgver-r$pkgrel
+_abi_release=$pkgver-${_flavor}
+
+pkgname=${_realname}-${_flavor}
+pkgver=$pkgver
+_realver=1.4.0pre1
+pkgrel=1
+pkgdesc="$_flavor kernel modules for kemu"
+url="http://www.nongnu.org/qemu/"
+license="GPL"
+depends="linux-${_flavor}=${_kernelver}"
+install=
+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
+}
+md5sums="d738d8ca7332211ab716ec3213d82ee1 kqemu-1.4.0pre1.tar.gz"