summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2009-03-06 22:18:01 +0000
committerLuca Barbato <lu_zero@gentoo.org>2009-03-06 22:18:01 +0000
commit44810b84af435fd4824178efbfe28cef587f18f2 (patch)
treea46c59b1504d2778d290f2d389f2243983c5378e /app-emulation/kqemu
parentStable for HPPA (bug #253551). (diff)
downloadgentoo-2-44810b84af435fd4824178efbfe28cef587f18f2.tar.gz
gentoo-2-44810b84af435fd4824178efbfe28cef587f18f2.tar.bz2
gentoo-2-44810b84af435fd4824178efbfe28cef587f18f2.zip
New version
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/kqemu')
-rw-r--r--app-emulation/kqemu/ChangeLog9
-rw-r--r--app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild75
2 files changed, 82 insertions, 2 deletions
diff --git a/app-emulation/kqemu/ChangeLog b/app-emulation/kqemu/ChangeLog
index 5ea4865bd448..d72ab551c1e9 100644
--- a/app-emulation/kqemu/ChangeLog
+++ b/app-emulation/kqemu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/kqemu
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/ChangeLog,v 1.23 2008/12/13 17:59:42 flameeyes Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/ChangeLog,v 1.24 2009/03/06 22:18:01 lu_zero Exp $
+
+*kqemu-1.4.0_pre1 (06 Mar 2009)
+
+ 06 Mar 2009; Luca Barbato <lu_zero@gentoo.org> +kqemu-1.4.0_pre1.ebuild:
+ New version
13 Dec 2008; Diego E. Pettenò <flameeyes@gentoo.org>
kqemu-1.3.0_pre11.ebuild:
diff --git a/app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild b/app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild
new file mode 100644
index 000000000000..4d7421306c82
--- /dev/null
+++ b/app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/kqemu/kqemu-1.4.0_pre1.ebuild,v 1.1 2009/03/06 22:18:01 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://bellard.org/qemu/"
+SRC_URI="http://bellard.org/qemu/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip"
+IUSE=""
+
+S="${WORKDIR}/$MY_P"
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ MODULE_NAMES="kqemu(misc:${S})"
+ linux-mod_pkg_setup
+}
+
+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
+}