Gentoo Archives: gentoo-commits

From: "Micheal Marineau (marineam)" <marineam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/libvirt: libvirt-0.4.6-r1.ebuild libvirt-0.5.1.ebuild ChangeLog metadata.xml libvirt-0.4.6.ebuild libvirt-0.4.4-r2.ebuild
Date: Fri, 09 Jan 2009 04:31:39
Message-Id: E1LL91v-0001OQ-65@stork.gentoo.org
1 marineam 09/01/09 04:31:31
2
3 Modified: ChangeLog metadata.xml
4 Added: libvirt-0.4.6-r1.ebuild libvirt-0.5.1.ebuild
5 Removed: libvirt-0.4.6.ebuild libvirt-0.4.4-r2.ebuild
6 Log:
7 Bump libvirt to 0.5.1 and fix CVE-2008-5086
8 (Portage version: 2.1.6.4/cvs/Linux 2.6.28-00001-g607f448 x86_64)
9
10 Revision Changes Path
11 1.19 app-emulation/libvirt/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 23 Nov 2008 22:54:37 -0000 1.18
24 +++ ChangeLog 9 Jan 2009 04:31:31 -0000 1.19
25 @@ -1,6 +1,17 @@
26 # ChangeLog for app-emulation/libvirt
27 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.18 2008/11/23 22:54:37 marineam Exp $
29 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.19 2009/01/09 04:31:31 marineam Exp $
31 +
32 +*libvirt-0.5.1 (09 Jan 2009)
33 +*libvirt-0.4.6-r1 (09 Jan 2009)
34 +
35 + 09 Jan 2009; Michael Marineau <marineam@g.o>
36 + +files/libvirt-0.4.6-add-missing-permission-checks.patch,
37 + +files/libvirt-0.5.1-add-missing-permission-checks.patch,
38 + +files/libvirt-0.5.1-libgnu-reposition.patch, -libvirt-0.4.4-r2.ebuild,
39 + -libvirt-0.4.6.ebuild, +libvirt-0.4.6-r1.ebuild, +libvirt-0.5.1.ebuild:
40 + Fix security bypass (CVE-2008-5086), resolves bug #252205
41 + Bump to 0.5.1, resolves bug #249102
42
43 23 Nov 2008; Michael Marineau <marineam@g.o>
44 libvirt-0.4.4-r2.ebuild, libvirt-0.4.6.ebuild:
45
46
47
48 1.9 app-emulation/libvirt/metadata.xml
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.9&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.9&content-type=text/plain
52 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/metadata.xml?r1=1.8&r2=1.9
53
54 Index: metadata.xml
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/metadata.xml,v
57 retrieving revision 1.8
58 retrieving revision 1.9
59 diff -u -r1.8 -r1.9
60 --- metadata.xml 5 Jan 2009 03:40:32 -0000 1.8
61 +++ metadata.xml 9 Jan 2009 04:31:31 -0000 1.9
62 @@ -21,10 +21,13 @@
63 virtual machines</flag>
64 <flag name='lvm'>Add support for the Logical Volume Manager
65 <pkg>sys-apps/lvm2</pkg></flag>
66 + <flag name='lxc'>Add support for the Linux Containers</flag>
67 <flag name='openvz'>Add support for <pkg>sys-kernel/openvz-sources</pkg>
68 OpenVZ-based virtual machines</flag>
69 <flag name='parted'>Add support for the <pkg>sys-apps/parted</pkg>
70 partition editor</flag>
71 + <flag name='uml'>Add support for User Mode Linux based virtual
72 + machines</flag>
73 <flag name='qemu'>Add support for <pkg>app-emulation/qemu</pkg> based
74 virtual machines</flag>
75 <flag name='xen'>Add support for <pkg>app-emulation/xen</pkg> based
76
77
78
79 1.1 app-emulation/libvirt/libvirt-0.4.6-r1.ebuild
80
81 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.4.6-r1.ebuild?rev=1.1&view=markup
82 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.4.6-r1.ebuild?rev=1.1&content-type=text/plain
83
84 Index: libvirt-0.4.6-r1.ebuild
85 ===================================================================
86 # Copyright 1999-2009 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 # $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.4.6-r1.ebuild,v 1.1 2009/01/09 04:31:31 marineam Exp $
89
90 inherit eutils autotools
91
92 DESCRIPTION="C toolkit to manipulate virtual machines"
93 HOMEPAGE="http://www.libvirt.org/"
94 SRC_URI="http://libvirt.org/sources/${P}.tar.gz"
95
96 LICENSE="LGPL-2.1"
97 SLOT="0"
98 KEYWORDS="~amd64 ~x86"
99 IUSE="avahi iscsi lvm kvm openvz parted qemu sasl selinux xen" #policykit is in package.mask
100
101 DEPEND="sys-libs/readline
102 sys-libs/ncurses
103 >=dev-libs/libxml2-2.5
104 >=net-libs/gnutls-1.0.25
105 dev-lang/python
106 sys-fs/sysfsutils
107 net-misc/bridge-utils
108 net-analyzer/netcat
109 net-dns/dnsmasq
110 avahi? ( >=net-dns/avahi-0.6 )
111 iscsi? ( sys-block/open-iscsi )
112 kvm? ( app-emulation/kvm )
113 lvm? ( sys-fs/lvm2 )
114 openvz? ( sys-kernel/openvz-sources )
115 parted? ( >=sys-apps/parted-1.8 )
116 qemu? ( app-emulation/qemu )
117 sasl? ( dev-libs/cyrus-sasl )
118 selinux? ( sys-libs/libselinux )
119 xen? ( app-emulation/xen-tools app-emulation/xen )
120 "
121 #policykit? ( >=sys-auth/policykit-0.6 )
122
123 src_unpack() {
124 unpack ${A}
125 cd "${S}"
126
127 epatch "${FILESDIR}"/"${P}"-qemu-img-name.patch
128 epatch "${FILESDIR}"/"${P}"-parallel-build-fix.patch
129 epatch "${FILESDIR}"/"${P}"-add-missing-permission-checks.patch
130 eautoreconf
131 }
132
133 pkg_setup() {
134 if ! use qemu && ! use xen && ! use openvz && ! use kvm ; then
135 local msg="You must enable one of these USE flags: qemu xen openvz kvm"
136 eerror "$msg"
137 die "$msg"
138 fi
139 }
140
141 src_compile() {
142 local my_conf=""
143 if use qemu || use kvm ; then
144 # fix path for kvm-img but use qemu-img if the useflag is set
145 my_conf="--with-qemu \
146 $(use_with !qemu qemu-img-name kvm-img)"
147 else
148 my_conf="--without-qemu"
149 fi
150
151 econf \
152 $(use_with avahi) \
153 $(use_with iscsi storage-iscsi) \
154 $(use_with lvm storage-lvm) \
155 $(use_with openvz) \
156 $(use_with parted storage-disk) \
157 $(use_with sasl) \
158 $(use_with selinux) \
159 $(use_with xen) \
160 ${my_conf} \
161 --with-remote \
162 --disable-iptables-lokkit \
163 --localstatedir=/var \
164 --with-remote-pid-file=/var/run/libvirtd.pid \
165 || die "econf failed"
166 #$(use_with policykit) \
167 emake || die "emake failed"
168 }
169
170 src_install() {
171 emake DESTDIR="${D}" install || die
172 mv "${D}"/usr/share/doc/{${PN}-python*,${P}/python}
173 newinitd "${FILESDIR}"/libvirtd.init libvirtd
174 newconfd "${FILESDIR}"/libvirtd.confd libvirtd
175 }
176
177
178
179 1.1 app-emulation/libvirt/libvirt-0.5.1.ebuild
180
181 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.5.1.ebuild?rev=1.1&view=markup
182 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.5.1.ebuild?rev=1.1&content-type=text/plain
183
184 Index: libvirt-0.5.1.ebuild
185 ===================================================================
186 # Copyright 1999-2009 Gentoo Foundation
187 # Distributed under the terms of the GNU General Public License v2
188 # $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.5.1.ebuild,v 1.1 2009/01/09 04:31:31 marineam Exp $
189
190 inherit eutils autotools
191
192 DESCRIPTION="C toolkit to manipulate virtual machines"
193 HOMEPAGE="http://www.libvirt.org/"
194 SRC_URI="http://libvirt.org/sources/${P}.tar.gz"
195
196 LICENSE="LGPL-2.1"
197 SLOT="0"
198 KEYWORDS="~amd64 ~x86"
199 IUSE="avahi iscsi lvm lxc hal kvm openvz parted qemu sasl selinux uml xen"
200 # policykit is in package.mask
201 # devicekit isn't in portage
202
203 DEPEND="sys-libs/readline
204 sys-libs/ncurses
205 >=dev-libs/libxml2-2.5
206 >=net-libs/gnutls-1.0.25
207 dev-lang/python
208 sys-fs/sysfsutils
209 net-misc/bridge-utils
210 net-analyzer/netcat
211 net-dns/dnsmasq
212 avahi? ( >=net-dns/avahi-0.6 )
213 iscsi? ( sys-block/open-iscsi )
214 kvm? ( app-emulation/kvm )
215 lvm? ( sys-fs/lvm2 )
216 openvz? ( sys-kernel/openvz-sources )
217 parted? ( >=sys-apps/parted-1.8 )
218 qemu? ( app-emulation/qemu )
219 sasl? ( dev-libs/cyrus-sasl )
220 selinux? ( sys-libs/libselinux )
221 xen? ( app-emulation/xen-tools app-emulation/xen )
222 "
223 #policykit? ( >=sys-auth/policykit-0.6 )
224
225 src_unpack() {
226 unpack ${A}
227 cd "${S}"
228
229 epatch "${FILESDIR}"/"${PN}"-0.4.6-qemu-img-name.patch
230 epatch "${FILESDIR}"/"${PN}"-0.4.6-parallel-build-fix.patch
231 epatch "${FILESDIR}"/"${P}"-libgnu-reposition.patch
232 epatch "${FILESDIR}"/"${P}"-add-missing-permission-checks.patch
233 eautoreconf
234 }
235
236 pkg_setup() {
237 local hasbackend=0
238 local backends="lxc kvm openvz qemu uml xen"
239 local backend
240
241 for backend in $backends ; do
242 use $backend && hasbackend=1
243 done
244
245 if [ "$hasbackend" == 0 ]; then
246 local msg="You must enable one of these USE flags: $backends"
247 eerror "$msg"
248 die "$msg"
249 fi
250 }
251
252 src_compile() {
253 local my_conf=""
254 if use qemu || use kvm ; then
255 # fix path for kvm-img but use qemu-img if the useflag is set
256 my_conf="--with-qemu \
257 $(use_with !qemu qemu-img-name kvm-img)"
258 else
259 my_conf="--without-qemu"
260 fi
261
262 econf \
263 $(use_with avahi) \
264 $(use_with iscsi storage-iscsi) \
265 $(use_with lvm storage-lvm) \
266 $(use_with lxc) \
267 $(use_with hal) \
268 $(use_with openvz) \
269 $(use_with parted storage-disk) \
270 $(use_with sasl) \
271 $(use_with selinux) \
272 $(use_with uml) \
273 $(use_with xen) \
274 ${my_conf} \
275 --without-devkit \
276 --without-polkit \
277 --with-remote \
278 --disable-iptables-lokkit \
279 --localstatedir=/var \
280 --with-remote-pid-file=/var/run/libvirtd.pid \
281 || die "econf failed"
282 #$(use_with policykit) \
283 emake || die "emake failed"
284 }
285
286 src_install() {
287 emake DESTDIR="${D}" install || die
288 mv "${D}"/usr/share/doc/{${PN}-python*,${P}/python}
289 newinitd "${FILESDIR}"/libvirtd.init libvirtd
290 newconfd "${FILESDIR}"/libvirtd.confd libvirtd
291 }
292
293 pkg_postinst() {
294 elog "To allow normal users to connect to libvirtd you must change the"
295 elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf"
296 }