diff options
author | 2007-09-16 16:47:08 +0000 | |
---|---|---|
committer | 2007-09-16 16:47:08 +0000 | |
commit | 46b2b12eb750ba28f96498537614c982a018662c (patch) | |
tree | 58d77360a6dfd29164e64e35541611fa2778b030 | |
parent | Version bump to kvm-39. Removed obsolete versions. (diff) | |
download | philantrop-46b2b12eb750ba28f96498537614c982a018662c.tar.gz philantrop-46b2b12eb750ba28f96498537614c982a018662c.tar.bz2 philantrop-46b2b12eb750ba28f96498537614c982a018662c.zip |
Version bump to kvm-40.
svn path=/trunk/; revision=37
-rw-r--r-- | app-emulation/kvm/ChangeLog | 3 | ||||
-rw-r--r-- | app-emulation/kvm/Manifest | 24 | ||||
-rw-r--r-- | app-emulation/kvm/files/digest-kvm-40 | 3 | ||||
-rw-r--r-- | app-emulation/kvm/kvm-40.ebuild | 122 |
4 files changed, 144 insertions, 8 deletions
diff --git a/app-emulation/kvm/ChangeLog b/app-emulation/kvm/ChangeLog index 606559e..f214a80 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: $ + 16 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> +kvm-40.ebuild: + Version bump to kvm-40. + 12 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org> -files/kvm_add-scripts-qemu-ifup.patch, -files/kvm_use_bios_files_in_usr_share_kvm.patch, diff --git a/app-emulation/kvm/Manifest b/app-emulation/kvm/Manifest index bbaffcc..a35d5f7 100644 --- a/app-emulation/kvm/Manifest +++ b/app-emulation/kvm/Manifest @@ -19,6 +19,7 @@ RMD160 631b0804395115eb12aa411017982ca41233a181 files/scripts-qemu-ifup.patch 84 SHA256 09e519488c0aa9b2ea6001d46c51ca3058e35409299bc13e79c9cb7cdac6e532 files/scripts-qemu-ifup.patch 847 DIST kvm-37.tar.gz 2678709 RMD160 71d916ead7c0aa9f386ea53cb6b807ceba9aa800 SHA1 306fde7e4f8e80d5ebd69eaf26732aa7119aab09 SHA256 de9e80c69ddf58a33b1a080c301f3ade37d2eea8472a3b09182f01566fe455a8 DIST kvm-39.tar.gz 3065442 RMD160 97123332cd5532708a659ffbbb201f8cbbb53677 SHA1 bae806a81b8fdb8b476d13d1e7cbeaef47f14fe1 SHA256 c3e57e15229bf94f0847bd71551e0d4ab01450676ae32f4a4fa28f36f911c156 +DIST kvm-40.tar.gz 2559228 RMD160 a77147923102cbe7fef2b455f05895f9d3b98693 SHA1 00d33d9c448787631e845a372c47612f3c59864d SHA256 8a367fd870ae68f48386b8ba5d5b673b5f8142bc7d87439cef9a5b282ce4dbbc EBUILD kvm-37.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a437cceca6f603e47883745ed3a016f2d6dbaff1 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e MD5 26e3fb7d8265357601478499fee41b8c kvm-37.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-37.ebuild 3765 @@ -27,10 +28,14 @@ EBUILD kvm-39.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a MD5 26e3fb7d8265357601478499fee41b8c kvm-39.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-39.ebuild 3765 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e kvm-39.ebuild 3765 -MISC ChangeLog 1091 RMD160 6bc9027965cc0a5f642ee0a6fa1b837d9a16cfd3 SHA1 e956f8c9244ffe2ce87dcb74a4ff8cdac6c77d99 SHA256 b48f9317f684925f267ec85b7f02987dc2819e111c20063fd4726ea2340e817f -MD5 903255ff50939d073ecc7414a07d7d05 ChangeLog 1091 -RMD160 6bc9027965cc0a5f642ee0a6fa1b837d9a16cfd3 ChangeLog 1091 -SHA256 b48f9317f684925f267ec85b7f02987dc2819e111c20063fd4726ea2340e817f ChangeLog 1091 +EBUILD kvm-40.ebuild 3765 RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 SHA1 a437cceca6f603e47883745ed3a016f2d6dbaff1 SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e +MD5 26e3fb7d8265357601478499fee41b8c kvm-40.ebuild 3765 +RMD160 7053a04370c6ab63bc8679a61e25df4999014ed0 kvm-40.ebuild 3765 +SHA256 66cd7eeb55042b303317799322117afe61906e70edb8ff4f3999d66a3ba0249e kvm-40.ebuild 3765 +MISC ChangeLog 1189 RMD160 355083d1ecb9b67ae8359b861f6e7e824123cee8 SHA1 9d1bf400174e301e42446eed1918529d074e40e6 SHA256 3c07b661e7d88d44063441a216668cb45ea73ca8fc77ba54eec78e45f9e35fc7 +MD5 c9cbe9165548f4f38635664e14b8eb84 ChangeLog 1189 +RMD160 355083d1ecb9b67ae8359b861f6e7e824123cee8 ChangeLog 1189 +SHA256 3c07b661e7d88d44063441a216668cb45ea73ca8fc77ba54eec78e45f9e35fc7 ChangeLog 1189 MISC metadata.xml 413 RMD160 dd5972a65a0cc44b4a9bd61cbcfe197270bb355f SHA1 c14660bd6d54594bef13c86f243308fc92687eb0 SHA256 32796ad3337db69538c94738b611438b27e6f199d19df26f0e20a471e313c988 MD5 5c1d1436d6cc39b3b6bf03f9d4b611ec metadata.xml 413 RMD160 dd5972a65a0cc44b4a9bd61cbcfe197270bb355f metadata.xml 413 @@ -41,10 +46,13 @@ SHA256 8686d44d82b61436f315b0129690badc6ffba7876989bba7837a6bb8c7aa8a1c files/di MD5 a89e7fa054b5998929d28a4d5ab17f5f files/digest-kvm-39 223 RMD160 47c1753cbae3816746dfbe58ff487f5647b4cddf files/digest-kvm-39 223 SHA256 6c1d6fb06d80f0d972f18a24f384d352357dfd09d2d61f2bfb233522a83a0d14 files/digest-kvm-39 223 +MD5 bdec212228261cb8cb10e8e68ca3d255 files/digest-kvm-40 223 +RMD160 65435308040733695b8fbf75c856f58c41c40014 files/digest-kvm-40 223 +SHA256 86a4ce2cc97f780a7ca3e77a49fb096bcb8fe04b2773343417af566285ddd19f files/digest-kvm-40 223 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.6 (GNU/Linux) +Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFG6BP8CkvF58q80IkRAicaAJ9/RoFWa+Nc59N2wJaTYrtytstV1wCfSFKR -BN5Ot146XrSSDuusCqljuAY= -=Zg4C +iD8DBQFG7V1uCkvF58q80IkRAiAbAJ0Ryq6QECshW88Wqo2PaMX0fOIKOgCggNq3 +jw9TzOLkCLu/Nmd/TGf7bxs= +=JuDh -----END PGP SIGNATURE----- diff --git a/app-emulation/kvm/files/digest-kvm-40 b/app-emulation/kvm/files/digest-kvm-40 new file mode 100644 index 0000000..4b8afb3 --- /dev/null +++ b/app-emulation/kvm/files/digest-kvm-40 @@ -0,0 +1,3 @@ +MD5 eae60d966e8f98171ff98cf59355b28b kvm-40.tar.gz 2559228 +RMD160 a77147923102cbe7fef2b455f05895f9d3b98693 kvm-40.tar.gz 2559228 +SHA256 8a367fd870ae68f48386b8ba5d5b673b5f8142bc7d87439cef9a5b282ce4dbbc kvm-40.tar.gz 2559228 diff --git a/app-emulation/kvm/kvm-40.ebuild b/app-emulation/kvm/kvm-40.ebuild new file mode 100644 index 0000000..792b7c4 --- /dev/null +++ b/app-emulation/kvm/kvm-40.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" +} |