summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2005-07-25 22:36:49 +0000
committerLuca Barbato <lu_zero@gentoo.org>2005-07-25 22:36:49 +0000
commit630fa7d210c35462390382ca81445c06a06239eb (patch)
tree1d3b27bd915c37b485de18ce5c88d80ce867e764 /app-emulation/qemu-softmmu
parentRemoving old versions (diff)
downloadgentoo-2-630fa7d210c35462390382ca81445c06a06239eb.tar.gz
gentoo-2-630fa7d210c35462390382ca81445c06a06239eb.tar.bz2
gentoo-2-630fa7d210c35462390382ca81445c06a06239eb.zip
New version
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-emulation/qemu-softmmu')
-rw-r--r--app-emulation/qemu-softmmu/ChangeLog7
-rw-r--r--app-emulation/qemu-softmmu/Manifest8
-rw-r--r--app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.12
-rw-r--r--app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild141
4 files changed, 154 insertions, 4 deletions
diff --git a/app-emulation/qemu-softmmu/ChangeLog b/app-emulation/qemu-softmmu/ChangeLog
index 00c3559a85fa..28dfb6be1b86 100644
--- a/app-emulation/qemu-softmmu/ChangeLog
+++ b/app-emulation/qemu-softmmu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/qemu-softmmu
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/ChangeLog,v 1.1 2005/06/18 11:49:16 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/ChangeLog,v 1.2 2005/07/25 22:36:49 lu_zero Exp $
+
+*qemu-softmmu-0.7.1 (25 Jul 2005)
+
+ 25 Jul 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-softmmu-0.7.1.ebuild:
+ New version
*qemu-softmmu-0.7.0-r1 (18 Jun 2005)
diff --git a/app-emulation/qemu-softmmu/Manifest b/app-emulation/qemu-softmmu/Manifest
index 0b29dd70ce54..f4eac320454d 100644
--- a/app-emulation/qemu-softmmu/Manifest
+++ b/app-emulation/qemu-softmmu/Manifest
@@ -1,6 +1,8 @@
-MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223
-MD5 754955c38d3fe7db22e4bb6842c93c05 qemu-softmmu-0.7.0-r1.ebuild 3956
MD5 a6bac601aa366dab6428f29aeef7f1f7 ChangeLog 467
-MD5 f2e48bae97dad4e6e6bccdb212124ae0 files/digest-qemu-softmmu-0.7.0-r1 127
+MD5 754955c38d3fe7db22e4bb6842c93c05 qemu-softmmu-0.7.0-r1.ebuild 3956
+MD5 3e1972ec132fd96bdc667c8f9ad890c0 qemu-softmmu-0.7.1.ebuild 3917
+MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223
MD5 87ec2e1fa832612fb834d7dd49cf7e5c files/kqemu-sysfs.patch 2094
+MD5 fd7335121f3422f52ac0dfe371ffb6b8 files/digest-qemu-softmmu-0.7.1 125
MD5 3202f7445799cce82ccaac9749e1443d files/qemu-softmmu-0.7.0-errno.patch 487
+MD5 f2e48bae97dad4e6e6bccdb212124ae0 files/digest-qemu-softmmu-0.7.0-r1 127
diff --git a/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.1 b/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.1
new file mode 100644
index 000000000000..cc382e11da89
--- /dev/null
+++ b/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.1
@@ -0,0 +1,2 @@
+MD5 b0c80d2c082049a5b8ccbc7f55fe165b qemu-0.7.1.tar.gz 1338521
+MD5 8fc7967492b2157521198f6639218420 kqemu-0.7.1.tar.gz 76135
diff --git a/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild
new file mode 100644
index 000000000000..ad363d8f88f8
--- /dev/null
+++ b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild,v 1.1 2005/07/25 22:36:49 lu_zero Exp $
+
+inherit eutils flag-o-matic linux-mod toolchain-funcs
+
+DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator"
+HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
+SRC_URI="http://fabrice.bellard.free.fr/qemu/${P/-softmmu}.tar.gz
+ kqemu? ( http://fabrice.bellard.free.fr/qemu/kqemu-${PV}.tar.gz )"
+#qvm86? ( http://dev.gentoo.org/~lu_zero/distfiles/qvm86-20050409.tar.bz2 )"
+#kqemu? ( http://fabrice.bellard.free.fr/qemu/kqemu-${PV%.*}-1.tar.gz )
+
+LICENSE="GPL-2 LGPL-2.1 KQEMU"
+SLOT="0"
+KEYWORDS="~x86 ~ppc -alpha -sparc ~amd64"
+IUSE="sdl kqemu" #qvm86 debug nptl qemu-fast nptlonly"
+RESTRICT="nostrip"
+
+DEPEND="virtual/libc
+ sdl? ( media-libs/libsdl )
+ !<=app-emulation/qemu-0.7.0
+ app-text/texi2html"
+RDEPEND="sdl? ( media-libs/libsdl )"
+
+S="${WORKDIR}/${P/-softmmu}"
+
+MODULE_NAMES=""
+use kqemu && MODULE_NAMES=$MODULE_NAMES" kqemu(misc:${S}/kqemu)"
+#use qvm86 && MODULE_NAMES=$MODULE_NAMES" qvm86(misc:${S}/qvm86)"
+
+
+
+set_target_list() {
+ TARGET_LIST="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu"
+ export TARGET_LIST
+}
+
+pkg_setup() {
+ if [ "$(gcc-major-version)" == "4" ]; then
+ ewarn "Qemu could not build with GCC 4"
+ fi
+# ( use kqemu || use qvm86 ) && linux-mod_pkg_setup
+ use kqemu && linux-mod_pkg_setup
+}
+
+#RUNTIME_PATH="/emul/gnemul/"
+src_unpack() {
+ unpack ${A}
+
+ if use kqemu ; then
+ einfo "QEMU Accelerator enabled"
+ einfo "kqemu actually is a closed source software"
+ einfo "Please read carefully the KQEMU license"
+ einfo "and http://fabrice.bellard.free.fr/qemu/qemu-accel.html"
+ einfo "if you want it released under GPL"
+ mv ${S}/../kqemu ${S}
+ cd ${S}/kqemu
+ epatch ${FILESDIR}/kqemu-sysfs.patch
+ fi
+ # if use qvm86; then
+# mv ${WORKDIR}/qvm86 ${S}
+# cd ${S}
+# epatch qvm86/patch.qvm86
+# fi
+ cd ${S}
+ #Fix errno mismatch on glibc-2.3.5
+
+ # Alter target makefiles to accept CFLAGS set via flag-o.
+ sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
+ Makefile Makefile.target tests/Makefile
+ # Ensure mprotect restrictions are relaxed for emulator binaries
+ [[ -x /sbin/paxctl ]] && \
+ sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
+ Makefile.target
+ # Prevent install of kernel module by qemu's makefile
+ sed -i 's/\(.\/install.sh\)/#\1/' Makefile
+}
+
+src_compile() {
+ #Let the application set its cflags
+ unset CFLAGS
+
+ # Switch off hardened tech
+ filter-flags -fpie -fstack-protector
+
+ myconf=""
+ set_target_list
+# --interp-prefix=${RUNTIME_PATH}/qemu-%M
+ ./configure \
+ --prefix=/usr \
+ --target-list="${TARGET_LIST}" \
+ --enable-slirp \
+ --kernel-path=${KV_DIR} \
+ $(use_enable kqemu) \
+ ${myconf} \
+ $(use_enable sdl)\
+ || die "could not configure"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make install \
+ prefix=${D}/usr \
+ bindir=${D}/usr/bin \
+ datadir=${D}/usr/share/qemu \
+ docdir=${D}/usr/share/doc/${P} \
+ mandir=${D}/usr/share/man || die
+
+ chmod -x ${D}/usr/share/man/*/*
+
+ if use kqemu ; then
+
+ 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
+ enewgroup qemu
+
+ # Module doc
+ dodoc ${S}/kqemu/README
+
+ fi
+}
+
+pkg_postinst() {
+ einfo "You will need the Universal TUN/TAP driver compiled into"
+ einfo "kernel or as a module to use the virtual network device."
+ if use kqemu ; then
+ einfo "kqemu actually is a closed source software"
+ einfo "Please read carefully the KQEMU license"
+ einfo "and http://fabrice.bellard.free.fr/qemu/qemu-accel.html"
+ einfo "if you want it released under GPL"
+ linux-mod_pkg_postinst
+ einfo "make sure you have the kernel module loaded before running qemu"
+ einfo "and your user is in the qemu group"
+ fi
+}