diff options
author | 2007-09-23 15:47:36 +0000 | |
---|---|---|
committer | 2007-09-23 15:47:36 +0000 | |
commit | 2523ba5867051c9488ab75912e939b1f13ccbd4a (patch) | |
tree | 19671c52e84fef34366e064e8ed97be34c2793a7 | |
parent | Applied upstream patch to fix bug 192657. (diff) | |
download | philantrop-2523ba5867051c9488ab75912e939b1f13ccbd4a.tar.gz philantrop-2523ba5867051c9488ab75912e939b1f13ccbd4a.tar.bz2 philantrop-2523ba5867051c9488ab75912e939b1f13ccbd4a.zip |
Version bump to kvm-44.
svn path=/trunk/; revision=42
-rw-r--r-- | app-emulation/kvm/ChangeLog | 3 | ||||
-rw-r--r-- | app-emulation/kvm/Manifest | 26 | ||||
-rw-r--r-- | app-emulation/kvm/files/digest-kvm-44 | 3 | ||||
-rw-r--r-- | app-emulation/kvm/kvm-44.ebuild | 122 |
4 files changed, 150 insertions, 4 deletions
diff --git a/app-emulation/kvm/ChangeLog b/app-emulation/kvm/ChangeLog index 8539b9e..5803a49 100644 --- a/app-emulation/kvm/ChangeLog +++ b/app-emulation/kvm/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 23 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> +kvm-44.ebuild: + Version bump to kvm-44. + 21 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> -kvm-42.ebuild, +kvm-43.ebuild: Version bump to kvm-43. Removed obsolete and buggy version 42. diff --git a/app-emulation/kvm/Manifest b/app-emulation/kvm/Manifest index dbe179f..f0c89d0 100644 --- a/app-emulation/kvm/Manifest +++ b/app-emulation/kvm/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX kvm-kvm.patch 3506 RMD160 80e46ff357060c90f6d19f14d4f216c40ee0b26a SHA1 0bb8473725698bfb5997f962fd501493cde0e9c7 SHA256 bb1c3a2a16ef511b92f596d21ba005d88aee347a2a50a5da20d91229398ce2ef MD5 09611c7bc9c955a13e2d65b241cfd405 files/kvm-kvm.patch 3506 RMD160 80e46ff357060c90f6d19f14d4f216c40ee0b26a files/kvm-kvm.patch 3506 @@ -18,6 +21,7 @@ DIST kvm-37.tar.gz 2678709 RMD160 71d916ead7c0aa9f386ea53cb6b807ceba9aa800 SHA1 DIST kvm-39.tar.gz 3065442 RMD160 97123332cd5532708a659ffbbb201f8cbbb53677 SHA1 bae806a81b8fdb8b476d13d1e7cbeaef47f14fe1 SHA256 c3e57e15229bf94f0847bd71551e0d4ab01450676ae32f4a4fa28f36f911c156 DIST kvm-40.tar.gz 2559228 RMD160 a77147923102cbe7fef2b455f05895f9d3b98693 SHA1 00d33d9c448787631e845a372c47612f3c59864d SHA256 8a367fd870ae68f48386b8ba5d5b673b5f8142bc7d87439cef9a5b282ce4dbbc DIST kvm-43.tar.gz 2569751 RMD160 b1cd1ea3152a906415523f2d324d37eb001af63e SHA1 e726c2bc85267544e6106352c1f13bae5f82a1f7 SHA256 964a28a95d71286d3ed87b66e6f598813456bf50aca284b7a50ed305772b3943 +DIST kvm-44.tar.gz 2573175 RMD160 a928b6776228b8fcec3ae16a7c3a47f246f9507e SHA1 ce300a886c506b15a5aab5c0728e0a63e6a4156d SHA256 71b42db52230bc41d7830e5bf6e86d630cd9f1c58d47681402ddbc5663a1d2dc EBUILD kvm-37.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a437cceca6f603e47883745ed3a016f2d6dbaff1 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e MD5 26e3fb7d8265357601478499fee41b8c kvm-37.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-37.ebuild 3765 @@ -34,10 +38,14 @@ EBUILD kvm-43.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a MD5 26e3fb7d8265357601478499fee41b8c kvm-43.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-43.ebuild 3765 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e kvm-43.ebuild 3765 -MISC ChangeLog 1442 RMD160 f8c4a02f6ce575e2998203d899eae474c15cfdbe SHA1 ee1eab151259c71baa4358410e81aefe306a9866 SHA256 94ec462df5f3f84291b224ef50a587dbb6bd28d40067a566836d8955bca4527e -MD5 13418a7a696569189a2dc1641c5b9368 ChangeLog 1442 -RMD160 f8c4a02f6ce575e2998203d899eae474c15cfdbe ChangeLog 1442 -SHA256 94ec462df5f3f84291b224ef50a587dbb6bd28d40067a566836d8955bca4527e ChangeLog 1442 +EBUILD kvm-44.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a437cceca6f603e47883745ed3a016f2d6dbaff1 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e +MD5 26e3fb7d8265357601478499fee41b8c kvm-44.ebuild 3765 +RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-44.ebuild 3765 +SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e kvm-44.ebuild 3765 +MISC ChangeLog 1540 RMD160 b15872e26b8f3a8b2370239a6f8575cd312b674b SHA1 2a823b1434c3cd93e5dc4376c0e5b4e6057208f7 SHA256 922b309b1271128e081033f743d221d314ffb511bca173a0f479c03fe24ee808 +MD5 576320b39b9d192ebf8cfbb79b083a3e ChangeLog 1540 +RMD160 b15872e26b8f3a8b2370239a6f8575cd312b674b ChangeLog 1540 +SHA256 922b309b1271128e081033f743d221d314ffb511bca173a0f479c03fe24ee808 ChangeLog 1540 MISC metadata.xml 413 RMD160 dd5972a65a0cc44b4a9bd61cbcfe197270bb355f SHA1 c14660bd6d54594bef13c86f243308fc92687eb0 SHA256 32796ad3337db69538c94738b611438b27e6f199d19df26f0e20a471e313c988 MD5 5c1d1436d6cc39b3b6bf03f9d4b611ec metadata.xml 413 RMD160 dd5972a65a0cc44b4a9bd61cbcfe197270bb355f metadata.xml 413 @@ -54,3 +62,13 @@ SHA256 86a4ce2cc97f780a7ca3e77a49fb096bcb8fe04b2773343417af566285ddd19f files/di MD5 d11efbc789e669d0c5209c248d92c571 files/digest-kvm-43 223 RMD160 e3c458fdf44841fb38e32d92b05ab42cb6f85e58 files/digest-kvm-43 223 SHA256 3ce053d2ecd8ae0f948f4da20f365491355fd471638af9af02aae104a2ca62e6 files/digest-kvm-43 223 +MD5 e0be467bb60641e29768ee5ac4f6c507 files/digest-kvm-44 223 +RMD160 55b69de8c390558267bc841630c8aaf905b24487 files/digest-kvm-44 223 +SHA256 f1ada00fd8ec1ed56b42795bf6e4bd12f6fd59003d75bdda8decb9e9718cee83 files/digest-kvm-44 223 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFG9opxCkvF58q80IkRAs5tAJ4huEf0Y6nYnZUbRNaYs6YwSMQpLQCfdgEF +5EC/Y1OiMtRzmJ28ZGXCQu0= +=DDQr +-----END PGP SIGNATURE----- diff --git a/app-emulation/kvm/files/digest-kvm-44 b/app-emulation/kvm/files/digest-kvm-44 new file mode 100644 index 0000000..0ba89e0 --- /dev/null +++ b/app-emulation/kvm/files/digest-kvm-44 @@ -0,0 +1,3 @@ +MD5 f6cbfa0c81e855a06980a7564d027483 kvm-44.tar.gz 2573175 +RMD160 a928b6776228b8fcec3ae16a7c3a47f246f9507e kvm-44.tar.gz 2573175 +SHA256 71b42db52230bc41d7830e5bf6e86d630cd9f1c58d47681402ddbc5663a1d2dc kvm-44.tar.gz 2573175 diff --git a/app-emulation/kvm/kvm-44.ebuild b/app-emulation/kvm/kvm-44.ebuild new file mode 100644 index 0000000..792b7c4 --- /dev/null +++ b/app-emulation/kvm/kvm-44.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod eutils + +DESCRIPTION="KVM is a full virtualisation solution for Linux on hardware containing virtualization extensions (Intel VT or AMD-V)" +HOMEPAGE="http://kvm.qumranet.com/kvmwiki" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +DEPEND=">=media-libs/libsdl-1.2.11 + >=media-libs/alsa-lib-1.0.13 + app-text/texi2html + !app-emulation/qemu + dev-lang/python + >=sys-fs/e2fsprogs-1.39" +RDEPEND="${DEPEND} + sys-apps/usermode-utilities" + +RESTRICT="strip" + +BUILD_TARGETS="all" +MODULE_NAMES="kvm(extra:"${S}"/kernel:"${S}"/kernel) + kvm-intel(extra:"${S}"/kernel:"${S}"/kernel) + kvm-amd(extra:"${S}"/kernel:"${S}"/kernel)" + +QA_TEXTRELS="usr/bin/qemu + usr/bin/qemu-system-sparc + usr/bin/qemu-system-arm + usr/bin/qemu-system-ppc + usr/bin/qemu-system-mips + usr/bin/qemu-system-x86_64" +QA_EXECSTACK="usr/share/kvm/openbios-sparc32" +QA_WX_LOAD="usr/share/kvm/openbios-sparc32" + +src_unpack() { + # Don't continue if the KVM modules that come with the kernel are compiled + if linux_chkconfig_present KVM ; then + eerror "${P} doesn't work with the kernel modules" + die "${PN} module is included in the kernel" + fi + unpack ${A} + cd "${S}" + + # Change script to change some options. + epatch "${FILESDIR}/kvm-kvm.patch" + # Improve the ifup script to allow for non-root use, etc. + epatch "${FILESDIR}/scripts-qemu-ifup.patch" + # Change the path to the network stuff to /etc/kvm + epatch "${FILESDIR}/qemu-vl.c.patch" + # Change the DATADIR to kvm instead of qemu + epatch "${FILESDIR}/qemu-configure.patch" +} + +src_compile() { + # fix make install to not install modules + sed -i -e '/$(kcmd)/d' "${WORKDIR}/${P}/Makefile" + + # The included qemu is not intended to run without kvm. Thus, we can use + # gcc4 as well and disable the gcc-check for gcc3. + conf_opts="--prefix=/usr --disable-gcc-check --qemu-cc=gcc" + + linux-mod_pkg_setup + + # Non-standard configure script. So econf doesn't work here. + ./configure ${conf_opts} || die "Configure failed" + + linux-mod_src_compile + + emake user qemu || die "make failed" +} + +src_install() { + # fix make install to not install modules + sed -i -e '/$(kcmd)/d' "${WORKDIR}/${P}/Makefile" + + emake DESTDIR="${D}" install || die "make install failed" + linux-mod_src_install + + exeinto /usr/bin/ + doexe "${S}/kvm" "${S}/kvm_stat" + + mv "${D}/usr/share/doc/qemu" "${D}/usr/share/doc/kvm" + mv "${D}/usr/share/man/man1/qemu.1" "${D}/usr/share/man/man1/kvm.1" + + insinto /etc/udev/rules.d/ + doins "${WORKDIR}/${P}/scripts/65-kvm.rules" + + insinto /etc/kvm/ + insopts -m0755 + doins "${WORKDIR}/${P}/scripts/qemu-ifup" +} + +pkg_postinst() { + linux-mod_pkg_postinst + enewgroup kvm + + elog "Make sure you have the kernel module loaded before running kvm." + elog "The easiest way to ensure that the kernel module is loaded is to load it" + elog "on boot." + elog "For AMD CPUs:" + elog "echo kvm-amd >> /etc/modules.autoload.d/kernel-2.6" + elog "For Intel CPUs:" + elog "echo kvm-intel >> /etc/modules.autoload.d/kernel-2.6" + echo + elog "Make sure your user is in the 'kvm' group" + elog "Just run 'gpasswd -a <USER> kvm', then have <USER> re-login." + echo + elog "If qemu complains about not having a 1024 Hz timer, then run this:" + elog "echo dev.rtc.max-user-freq=1024 >> /etc/sysctl.conf" + echo + elog "If you want network support in the guest OS, you'll need to make" + elog "sure you compile in support for 802.1d Ethernet Bridging in the " + elog "kernel, set up a bridge network interface and make sure you" + elog "compile Universal TUN/TAP device driver support as a kernel module" + elog "and make it load on boot:" + elog "echo tun >> /etc/modules.autoload.d/kernel-2.6" +} |