diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2005-09-11 02:25:08 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2005-09-11 02:25:08 +0000 |
commit | 4e01c84ee71e0ab460d5a5fbc5b2cf754066277c (patch) | |
tree | 446c7596bb08efeb0aee5e66f56bd3c045e143f9 /app-emulation/qemu-softmmu | |
parent | New version (diff) | |
download | gentoo-2-4e01c84ee71e0ab460d5a5fbc5b2cf754066277c.tar.gz gentoo-2-4e01c84ee71e0ab460d5a5fbc5b2cf754066277c.tar.bz2 gentoo-2-4e01c84ee71e0ab460d5a5fbc5b2cf754066277c.zip |
New version
(Portage version: 1.589-cvs)
Diffstat (limited to 'app-emulation/qemu-softmmu')
-rw-r--r-- | app-emulation/qemu-softmmu/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/Manifest | 14 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.2 | 2 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/qemu-softmmu-0.7.2.ebuild | 143 |
4 files changed, 159 insertions, 7 deletions
diff --git a/app-emulation/qemu-softmmu/ChangeLog b/app-emulation/qemu-softmmu/ChangeLog index 0419a88a7f2b..da5a725ec1b2 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.6 2005/08/19 21:37:02 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/ChangeLog,v 1.7 2005/09/11 02:25:08 lu_zero Exp $ + +*qemu-softmmu-0.7.2 (11 Sep 2005) + + 11 Sep 2005; Luca Barbato <lu_zero@gentoo.org> +qemu-softmmu-0.7.2.ebuild: + New release 19 Aug 2005; Aron Griffis <agriffis@gentoo.org> qemu-softmmu-0.7.1-r1.ebuild: diff --git a/app-emulation/qemu-softmmu/Manifest b/app-emulation/qemu-softmmu/Manifest index b171fcef461e..1abfd622e0f9 100644 --- a/app-emulation/qemu-softmmu/Manifest +++ b/app-emulation/qemu-softmmu/Manifest @@ -1,11 +1,13 @@ -MD5 71427aafd803ca5b894962efee04123d qemu-softmmu-0.7.1-r1.ebuild 4035 +MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223 MD5 159c47c6f540254c4f4318ed833ad4cb qemu-softmmu-0.7.1.ebuild 3992 +MD5 2fa932d1360b876ff774f82163149ae6 qemu-softmmu-0.7.2.ebuild 3951 MD5 754955c38d3fe7db22e4bb6842c93c05 qemu-softmmu-0.7.0-r1.ebuild 3956 -MD5 2a8e225909a3327d5814db17177b9d8a ChangeLog 1400 -MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223 -MD5 fd7335121f3422f52ac0dfe371ffb6b8 files/digest-qemu-softmmu-0.7.1 125 -MD5 3202f7445799cce82ccaac9749e1443d files/qemu-softmmu-0.7.0-errno.patch 487 -MD5 1d5ef12a594467dced5bfce6c07ed893 files/kqemu-0.7.1-sysfs.patch 1631 +MD5 7b4a45f1280738374cf5d7436888f1e3 ChangeLog 1527 +MD5 71427aafd803ca5b894962efee04123d qemu-softmmu-0.7.1-r1.ebuild 4035 MD5 f2e48bae97dad4e6e6bccdb212124ae0 files/digest-qemu-softmmu-0.7.0-r1 127 MD5 72280464fdfd2d1cfe66d86515efdd4d files/digest-qemu-softmmu-0.7.1-r1 127 +MD5 fd7335121f3422f52ac0dfe371ffb6b8 files/digest-qemu-softmmu-0.7.1 125 +MD5 cc5c9529eecf67b3b9075faef545833f files/digest-qemu-softmmu-0.7.2 125 MD5 87ec2e1fa832612fb834d7dd49cf7e5c files/kqemu-sysfs.patch 2094 +MD5 1d5ef12a594467dced5bfce6c07ed893 files/kqemu-0.7.1-sysfs.patch 1631 +MD5 3202f7445799cce82ccaac9749e1443d files/qemu-softmmu-0.7.0-errno.patch 487 diff --git a/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.2 b/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.2 new file mode 100644 index 000000000000..2e8374c40c48 --- /dev/null +++ b/app-emulation/qemu-softmmu/files/digest-qemu-softmmu-0.7.2 @@ -0,0 +1,2 @@ +MD5 7d69dd96edf7ae5298a9a7283a0e9fb8 qemu-0.7.2.tar.gz 1341993 +MD5 02cfdecda90458d6393781496ec6b48b kqemu-0.7.2.tar.gz 79314 diff --git a/app-emulation/qemu-softmmu/qemu-softmmu-0.7.2.ebuild b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.2.ebuild new file mode 100644 index 000000000000..f4d48d980f33 --- /dev/null +++ b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.2.ebuild @@ -0,0 +1,143 @@ +# 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.2.ebuild,v 1.1 2005/09/11 02:25:08 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="${HOMEPAGE}${P/-softmmu}.tar.gz + kqemu? ( ${HOMEPAGE}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}" + +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 + + MODULE_NAMES="$(useq kqemu && echo "kqemu(misc:${S}/kqemu)")" + # $(useq qvm86 && echo "qvm86(misc:${S}/qvm86)")" + #( use kqemu || use qvm86 ) && linux-mod_pkg_setup + use kqemu && linux-mod_pkg_setup + + if use kqemu ; then + einfo "QEMU Accelerator enabled (USE=kqemu)" + 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" + fi +} + +#RUNTIME_PATH="/emul/gnemul/" +src_unpack() { + unpack ${A} + + if use kqemu; then + mv ${WORKDIR}/kqemu ${S} + cd ${S}/kqemu + sed -i -e 's:#ifndef PAGE_KERNEL_EXEC:#if 1:' ${S}/kqemu/kqemu-linux.c + # The class_simple interfaces were removed in 2.6.13-rc1, leaving only + # GPL symbols behind, which this module can't use. Until there's a fix + # from Fabrice, kqemu+udev no worky. + 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="" + if ! use sdl ; then + myconf="$myconf --disable-gfx-check" + fi + 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 + 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 +} |