Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/kvm-kmod: ChangeLog kvm-kmod-2.6.35.ebuild
Date: Fri, 20 Aug 2010 21:34:07
Message-Id: 20100820213403.74EE62004C@flycatcher.gentoo.org
1 cardoe 10/08/20 21:34:03
2
3 Modified: ChangeLog
4 Added: kvm-kmod-2.6.35.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 app-emulation/kvm-kmod/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/kvm-kmod/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/kvm-kmod/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/kvm-kmod/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 7 Jul 2010 18:01:38 -0000 1.12
23 +++ ChangeLog 20 Aug 2010 21:34:03 -0000 1.13
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-emulation/kvm-kmod
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/ChangeLog,v 1.12 2010/07/07 18:01:38 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/ChangeLog,v 1.13 2010/08/20 21:34:03 cardoe Exp $
29 +
30 +*kvm-kmod-2.6.35 (20 Aug 2010)
31 +
32 + 20 Aug 2010; Doug Goldstein <cardoe@g.o> +kvm-kmod-2.6.35.ebuild:
33 + version bump
34
35 *kvm-kmod-2.6.34.1 (07 Jul 2010)
36 *kvm-kmod-2.6.32.16 (07 Jul 2010)
37
38
39
40 1.1 app-emulation/kvm-kmod/kvm-kmod-2.6.35.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-2.6.35.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-2.6.35.ebuild?rev=1.1&content-type=text/plain
44
45 Index: kvm-kmod-2.6.35.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-emulation/kvm-kmod/kvm-kmod-2.6.35.ebuild,v 1.1 2010/08/20 21:34:03 cardoe Exp $
50
51 EAPI="2"
52
53 inherit eutils linux-mod
54
55 SRC_URI="mirror://sourceforge/kvm/${P}.tar.bz2"
56
57 DESCRIPTION="Kernel-based Virtual Machine kernel modules"
58 HOMEPAGE="http://www.linux-kvm.org"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="-* ~amd64 ~x86"
63 IUSE=""
64 RESTRICT="test"
65
66 RDEPEND=""
67 DEPEND="${RDEPEND}"
68
69 pkg_setup() {
70 linux-info_pkg_setup
71 if ! linux_chkconfig_present KVM; then
72 eerror "KVM now needs CONFIG_KVM built into your kernel, even"
73 eerror "if you're using the external modules from this package."
74 eerror "Please enable KVM support in your kernel, found at:"
75 eerror
76 eerror " Virtualization"
77 eerror " Kernel-based Virtual Machine (KVM) support"
78 eerror
79 die "KVM support not detected!"
80 fi
81 BUILD_TARGETS="all"
82 MODULE_NAMES="kvm(kernel/arch/x86/kvm/:${S}:${S}/x86)"
83 MODULE_NAMES="${MODULE_NAMES} kvm-intel(kernel/arch/x86/kvm/:${S}:${S}/x86)"
84 MODULE_NAMES="${MODULE_NAMES} kvm-amd(kernel/arch/x86/kvm/:${S}:${S}/x86)"
85 linux-mod_pkg_setup
86 }
87
88 src_configure() {
89 local conf_opts
90
91 conf_opts="--kerneldir=$KV_DIR"
92
93 if has_multilib_profile && [[ "${DEFAULT_ABI}" == "x86" ]] ; then
94 conf_opts="$conf_opts --arch=x86"
95 fi
96
97 ./configure ${conf_opts} || die "configure failed"
98 }
99
100 src_compile() {
101 linux-mod_src_compile
102 }
103
104 src_install() {
105 linux-mod_src_install
106 }
107
108 pkg_preinst() {
109 find /lib/modules/${KV_FULL} -name 'kvm*.ko' -type f -delete
110
111 linux-mod_pkg_preinst
112 }