diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-08-16 13:56:06 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-08-16 13:56:06 +0000 |
commit | f6fc256f423a3ac505c0d3f5ccf4f78d857e2eb1 (patch) | |
tree | 854d0ad85bd45453eb1f0656f56b1b62b8b663cc /app-emulation/kqemu | |
parent | Version bump. (diff) | |
download | gentoo-2-f6fc256f423a3ac505c0d3f5ccf4f78d857e2eb1.tar.gz gentoo-2-f6fc256f423a3ac505c0d3f5ccf4f78d857e2eb1.tar.bz2 gentoo-2-f6fc256f423a3ac505c0d3f5ccf4f78d857e2eb1.zip |
New version
(Portage version: 2.1.1_pre5-r1)
Diffstat (limited to 'app-emulation/kqemu')
-rw-r--r-- | app-emulation/kqemu/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/kqemu/files/digest-kqemu-1.3.0_pre9 | 3 | ||||
-rw-r--r-- | app-emulation/kqemu/kqemu-1.3.0_pre9.ebuild | 79 |
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 +} |