summaryrefslogtreecommitdiffstats
path: root/main/kqemu-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-22 13:52:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-22 13:52:04 +0000
commita634809584b0175f4a2eb205e537cf29a5235af8 (patch)
tree63c5d06d8484da1d00cf38c6c78d1d959ed9e60d /main/kqemu-grsec
parentd75f2ac2a1f9b7facd71718605ea361a0aeb2a5a (diff)
downloadaports-a634809584b0175f4a2eb205e537cf29a5235af8.tar.bz2
aports-a634809584b0175f4a2eb205e537cf29a5235af8.tar.xz
main/kqemu-grsec: new aport
Qemu driver for grsec kernel
Diffstat (limited to 'main/kqemu-grsec')
-rw-r--r--main/kqemu-grsec/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/kqemu-grsec/APKBUILD b/main/kqemu-grsec/APKBUILD
new file mode 100644
index 00000000..ef1e2f95
--- /dev/null
+++ b/main/kqemu-grsec/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+_flavor=grsec
+_realname=kqemu
+# source the kernel version
+if [ -f ../../main/linux-$_flavor/APKBUILD ]; then
+ . ../../main/linux-$_flavor/APKBUILD
+fi
+_kernelver=$pkgver-r$pkgrel
+_abi_release=$pkgver-${_flavor}
+
+pkgname=${_realname}-${_flavor}
+pkgver=1.4.0_pre1
+_realver=1.4.0pre1
+pkgrel=0
+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"
+
+build() {
+ cd "$srcdir"/$_realname-$_realver
+ ./configure --kernel-path=/lib/modules/${_abi_release}/build
+ make || return 1
+ install -D -m644 kqemu.ko \
+ "$pkgdir"/lib/modules/${_abi_release}/misc/kqemu.ko \
+ || return 1
+}
+md5sums="d738d8ca7332211ab716ec3213d82ee1 kqemu-1.4.0pre1.tar.gz"