summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/kqemu')
-rw-r--r--app-emulation/kqemu/ChangeLog7
-rw-r--r--app-emulation/kqemu/files/digest-kqemu-1.3.0_pre93
-rw-r--r--app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild79
3 files changed, 88 insertions, 1 deletions
diff --git a/app-emulation/kqemu/ChangeLog b/app-emulation/kqemu/ChangeLog
index 9a3111a7f879..c511d73deacc 100644
--- a/app-emulation/kqemu/ChangeLog
+++ b/app-emulation/kqemu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/kqemu
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/ChangeLog,v 1.12 2006/07/07 10:04:04 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/ChangeLog,v 1.13 2006/08/16 13:56:06 lu_zero Exp $
+
+*kqemu-1.3.0_pre9 (16 Aug 2006)
+
+ 16 Aug 2006; Luca Barbato <lu_zero@gentoo.org> +kqemu-1.3.0_pre9.ebuild:
+ New version
07 Jul 2006; Luca Barbato <lu_zero@gentoo.org> kqemu-1.3.0_pre7.ebuild:
fix kqemu udev rule, thanks to Michael Croes <mycroes@zonnet.nl> that
diff --git a/app-emulation/kqemu/files/digest-kqemu-1.3.0_pre9 b/app-emulation/kqemu/files/digest-kqemu-1.3.0_pre9
new file mode 100644
index 000000000000..25a0ac2d0743
--- /dev/null
+++ b/app-emulation/kqemu/files/digest-kqemu-1.3.0_pre9
@@ -0,0 +1,3 @@
+MD5 27888c3220844ad360a6a23345fa1bcb kqemu-1.3.0pre9.tar.gz 190070
+RMD160 14828ad2c7e2635f85079d7b1f2c3bd4fd7769eb kqemu-1.3.0pre9.tar.gz 190070
+SHA256 c2759d43bc8bee458b802479b47796b21593ee617f5c4d14cb1bf842d4f4efdc kqemu-1.3.0pre9.tar.gz 190070
diff --git a/app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild b/app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild
new file mode 100644
index 000000000000..db6fbad73f3c
--- /dev/null
+++ b/app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild,v 1.1 2006/08/16 13:56:06 lu_zero Exp $
+
+inherit eutils flag-o-matic linux-mod toolchain-funcs
+
+MY_PV=${PV/_/}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator kernel fast execution module"
+HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
+SRC_URI="http://fabrice.bellard.free.fr/qemu/${MY_P}.tar.gz"
+
+LICENSE="KQEMU"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="nostrip"
+IUSE=""
+
+S="${WORKDIR}/$MY_P"
+
+DEPEND=""
+
+pkg_setup() {
+ MODULE_NAMES="kqemu(misc:${S})"
+ linux-mod_pkg_setup
+
+ einfo "kqemu is binary module with a restricted license."
+ einfo "Please read carefully the KQEMU license"
+ einfo "and ${HOMEPAGE}qemu-accel.html"
+ einfo "if you would like to see it released under the GPL"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i 's:MODULE_PARM(\([^,]*\),"i");:module_param(\1, int, 0);:' kqemu-linux.c
+}
+
+src_compile() {
+ #Let the application set its cflags
+ unset CFLAGS
+
+ # Switch off hardened tech
+ filter-flags -fpie -fstack-protector
+
+ ./configure --kernel-path="${KV_DIR}" \
+ || die "could not configure"
+
+ make
+}
+
+src_install() {
+ linux-mod_src_install
+
+ # udev rule
+ dodir /etc/udev/rules.d/
+ echo 'KERNEL=="kqemu*", NAME="%k", GROUP="qemu", MODE="0660"' > ${D}/etc/udev/rules.d/48-qemu.rules
+
+ # Module doc
+ dodoc ${S}/README
+ dohtml ${S}/kqemu-doc.html
+
+ # module params
+ dodir /etc/modules.d
+ echo "options kqemu major=0" > ${D}/etc/modules.d/kqemu
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ enewgroup qemu
+ elog "Make sure you have the kernel module loaded before running qemu"
+ elog "and your user is in the 'qemu' group"
+ case ${CHOST} in
+ *-darwin*) elog "Just run 'niutil -appendprop / /groups/qemu users <USER>'";;
+ *-freebsd*|*-dragonfly*) elog "Just run 'pw groupmod qemu -m <USER>'";;
+ *) elog "Just run 'gpasswd -a <USER> qemu', then have <USER> re-login.";;
+ esac
+}