1 |
flameeyes 10/10/29 16:55:55 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: libvirt-0.8.5.ebuild |
5 |
Log: |
6 |
Version bump, which include my (partial) fix for USB devices from upstream; add a backport for the check target broken in 0.8.5 release when xen is not enabled; allow the backport tarball to be fetched either from my dev space or from Doug's. Audit support is disabled until properly tested. |
7 |
|
8 |
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.23 app-emulation/libvirt/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.23&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/metadata.xml?rev=1.23&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/metadata.xml?r1=1.22&r2=1.23 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/metadata.xml,v |
20 |
retrieving revision 1.22 |
21 |
retrieving revision 1.23 |
22 |
diff -u -r1.22 -r1.23 |
23 |
--- metadata.xml 24 Oct 2010 13:20:01 -0000 1.22 |
24 |
+++ metadata.xml 29 Oct 2010 16:55:55 -0000 1.23 |
25 |
@@ -1,41 +1,44 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>virtualization</herd> |
30 |
- <maintainer> |
31 |
- <email>cardoe@g.o</email> |
32 |
- <name>Doug Goldstein</name> |
33 |
- </maintainer> |
34 |
- <use> |
35 |
- <flag name='iscsi'>Add support for iSCSI (Internet SCSI) remote |
36 |
- storage</flag> |
37 |
- <flag name='lvm'>Add support for the Logical Volume Manager |
38 |
- <pkg>sys-apps/lvm2</pkg></flag> |
39 |
- <flag name='lxc'>Add support for the Linux Containers</flag> |
40 |
- <flag name='openvz'>Add support for <pkg>sys-kernel/openvz-sources</pkg> |
41 |
- OpenVZ-based virtual machines</flag> |
42 |
- <flag name='parted'>Add support for the <pkg>sys-block/parted</pkg> |
43 |
- partition editor</flag> |
44 |
- <flag name='uml'>Add support for User Mode Linux based virtual |
45 |
- machines</flag> |
46 |
- <flag name='qemu'>Add support for <pkg>app-emulation/qemu</pkg> based |
47 |
- virtual machines</flag> |
48 |
- <flag name='xen'>Add support for <pkg>app-emulation/xen</pkg> based |
49 |
- virtual machines</flag> |
50 |
- <flag name='network'>Enable networking support for guests</flag> |
51 |
- <flag name='virtualbox'>Adds support for VirtualBox based virtual |
52 |
- machines</flag> |
53 |
- <flag name='numa'>Use NUMA for memory segmenting via |
54 |
- <pkg>sys-process/numactl</pkg></flag> |
55 |
- <flag name='nfs'>Allow the libvirtd daemon store VM images on NFS |
56 |
- mounts</flag> |
57 |
- <flag name='libvirtd'>Builds the libvirtd daemon as well as the client |
58 |
- utilities instead of just the client utilities</flag> |
59 |
- <flag name='phyp'>Support the PHYP hypervisor protocol</flag> |
60 |
- <flag name='pcap'>Support auto learning IP addreses for routing</flag> |
61 |
- <flag name='macvtap'>Support for MAC-based TAP (macvlan/macvtap). For |
62 |
- networking instead of the normal TUN/TAP. It has its advantages and |
63 |
- disadvantages. macvtap support requires very new kernels and is |
64 |
- currently evolving. Support for this is experimental at best</flag> |
65 |
- </use> |
66 |
+ <herd>virtualization</herd> |
67 |
+ <maintainer> |
68 |
+ <email>cardoe@g.o</email> |
69 |
+ <name>Doug Goldstein</name> |
70 |
+ </maintainer> |
71 |
+ <use> |
72 |
+ <flag name='iscsi'>Add support for iSCSI (Internet SCSI) remote |
73 |
+ storage</flag> |
74 |
+ <flag name='lvm'>Add support for the Logical Volume Manager |
75 |
+ <pkg>sys-apps/lvm2</pkg></flag> |
76 |
+ <flag name='lxc'>Add support for the Linux Containers</flag> |
77 |
+ <flag name='openvz'>Add support for <pkg>sys-kernel/openvz-sources</pkg> |
78 |
+ OpenVZ-based virtual machines</flag> |
79 |
+ <flag name='parted'>Add support for the <pkg>sys-block/parted</pkg> |
80 |
+ partition editor</flag> |
81 |
+ <flag name='uml'>Add support for User Mode Linux based virtual |
82 |
+ machines</flag> |
83 |
+ <flag name='qemu'>Add support for <pkg>app-emulation/qemu</pkg> based |
84 |
+ virtual machines</flag> |
85 |
+ <flag name='xen'>Add support for <pkg>app-emulation/xen</pkg> based |
86 |
+ virtual machines</flag> |
87 |
+ <flag name='network'>Enable networking support for guests</flag> |
88 |
+ <flag name='virtualbox'>Adds support for VirtualBox based virtual |
89 |
+ machines</flag> |
90 |
+ <flag name='numa'>Use NUMA for memory segmenting via |
91 |
+ <pkg>sys-process/numactl</pkg></flag> |
92 |
+ <flag name='nfs'>Allow the libvirtd daemon store VM images on NFS |
93 |
+ mounts</flag> |
94 |
+ <flag name='libvirtd'>Builds the libvirtd daemon as well as the client |
95 |
+ utilities instead of just the client utilities</flag> |
96 |
+ <flag name='phyp'>Support the PHYP hypervisor protocol</flag> |
97 |
+ <flag name='pcap'>Support auto learning IP addreses for routing</flag> |
98 |
+ <flag name='macvtap'>Support for MAC-based TAP (macvlan/macvtap). For |
99 |
+ networking instead of the normal TUN/TAP. It has its advantages and |
100 |
+ disadvantages. macvtap support requires very new kernels and is |
101 |
+ currently evolving. Support for this is experimental at best</flag> |
102 |
+ <flag name='json'> |
103 |
+ Support QEmu 0.13 JSON-based interface, using <pkg>dev-libs/yajl</pkg>. |
104 |
+ </flag> |
105 |
+ </use> |
106 |
</pkgmetadata> |
107 |
|
108 |
|
109 |
|
110 |
1.77 app-emulation/libvirt/ChangeLog |
111 |
|
112 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.77&view=markup |
113 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.77&content-type=text/plain |
114 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.76&r2=1.77 |
115 |
|
116 |
Index: ChangeLog |
117 |
=================================================================== |
118 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v |
119 |
retrieving revision 1.76 |
120 |
retrieving revision 1.77 |
121 |
diff -u -r1.76 -r1.77 |
122 |
--- ChangeLog 15 Oct 2010 14:28:10 -0000 1.76 |
123 |
+++ ChangeLog 29 Oct 2010 16:55:55 -0000 1.77 |
124 |
@@ -1,6 +1,16 @@ |
125 |
# ChangeLog for app-emulation/libvirt |
126 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
127 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.76 2010/10/15 14:28:10 flameeyes Exp $ |
128 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.77 2010/10/29 16:55:55 flameeyes Exp $ |
129 |
+ |
130 |
+*libvirt-0.8.5 (29 Oct 2010) |
131 |
+ |
132 |
+ 29 Oct 2010; Diego E. Pettenò <flameeyes@g.o> |
133 |
+ +libvirt-0.8.5.ebuild, metadata.xml: |
134 |
+ Version bump, which include my (partial) fix for USB devices from |
135 |
+ upstream; add a backport for the check target broken in 0.8.5 release when |
136 |
+ xen is not enabled; allow the backport tarball to be fetched either from |
137 |
+ my dev space or from Doug's. Audit support is disabled until properly |
138 |
+ tested. |
139 |
|
140 |
15 Oct 2010; Diego E. Pettenò <flameeyes@g.o> |
141 |
-libvirt-0.8.2-r1.ebuild, -libvirt-0.8.3.ebuild, -libvirt-0.8.3-r1.ebuild, |
142 |
|
143 |
|
144 |
|
145 |
1.1 app-emulation/libvirt/libvirt-0.8.5.ebuild |
146 |
|
147 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.8.5.ebuild?rev=1.1&view=markup |
148 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.8.5.ebuild?rev=1.1&content-type=text/plain |
149 |
|
150 |
Index: libvirt-0.8.5.ebuild |
151 |
=================================================================== |
152 |
# Copyright 1999-2010 Gentoo Foundation |
153 |
# Distributed under the terms of the GNU General Public License v2 |
154 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.8.5.ebuild,v 1.1 2010/10/29 16:55:55 flameeyes Exp $ |
155 |
|
156 |
BACKPORTS=1 |
157 |
|
158 |
EAPI="2" |
159 |
|
160 |
PYTHON_DEPEND="python? 2:2.4" |
161 |
#RESTRICT_PYTHON_ABIS="3.*" |
162 |
#SUPPORT_PYTHON_ABIS="1" |
163 |
|
164 |
inherit eutils python autotools |
165 |
|
166 |
DESCRIPTION="C toolkit to manipulate virtual machines" |
167 |
HOMEPAGE="http://www.libvirt.org/" |
168 |
SRC_URI="http://libvirt.org/sources/${P}.tar.gz |
169 |
${BACKPORTS:+ |
170 |
http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2 |
171 |
http://dev.gentoo.org/~cardoe/${PN}/${P}-backports-${BACKPORTS}.tar.bz2}" |
172 |
LICENSE="LGPL-2.1" |
173 |
SLOT="0" |
174 |
KEYWORDS="~amd64 ~x86" |
175 |
IUSE="avahi caps debug iscsi +libvirtd lvm +lxc macvtap +network nfs nls \ |
176 |
numa openvz parted pcap phyp policykit python qemu sasl selinux |
177 |
uml virtualbox xen udev +json" |
178 |
# IUSE=one : bug #293416 & bug #299011 |
179 |
|
180 |
RDEPEND="sys-libs/readline |
181 |
sys-libs/ncurses |
182 |
>=net-misc/curl-7.18.0 |
183 |
>=dev-libs/libxml2-2.7.6 |
184 |
>=dev-libs/libnl-1.1 |
185 |
>=net-libs/gnutls-1.0.25 |
186 |
sys-fs/sysfsutils |
187 |
sys-apps/util-linux |
188 |
>=net-analyzer/netcat6-1.0-r2 |
189 |
avahi? ( >=net-dns/avahi-0.6[dbus] ) |
190 |
caps? ( sys-libs/libcap-ng ) |
191 |
iscsi? ( sys-block/open-iscsi ) |
192 |
libvirtd? ( net-misc/bridge-utils ) |
193 |
lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) |
194 |
macvtap? ( >=dev-libs/libnl-1.1 ) |
195 |
nfs? ( net-fs/nfs-utils ) |
196 |
numa? ( sys-process/numactl ) |
197 |
openvz? ( sys-kernel/openvz-sources ) |
198 |
parted? ( >=sys-block/parted-1.8[device-mapper] ) |
199 |
pcap? ( >=net-libs/libpcap-1.0.0 ) |
200 |
phyp? ( net-libs/libssh2 ) |
201 |
policykit? ( >=sys-auth/polkit-0.9 ) |
202 |
qemu? ( || ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 app-emulation/qemu-kvm-spice ) ) |
203 |
sasl? ( dev-libs/cyrus-sasl ) |
204 |
selinux? ( >=sys-libs/libselinux-2.0.85 ) |
205 |
virtualbox? ( || ( >=app-emulation/virtualbox-ose-2.2.0 >=app-emulation/virtualbox-bin-2.2.0 ) ) |
206 |
xen? ( app-emulation/xen-tools app-emulation/xen ) |
207 |
udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 ) |
208 |
json? ( dev-libs/yajl )" |
209 |
# one? ( dev-libs/xmlrpc-c ) |
210 |
DEPEND="${RDEPEND} |
211 |
dev-util/pkgconfig |
212 |
nls? ( sys-devel/gettext )" |
213 |
|
214 |
pkg_setup() { |
215 |
python_set_active_version 2 |
216 |
} |
217 |
|
218 |
src_prepare() { |
219 |
[[ -n ${BACKPORTS} ]] && \ |
220 |
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ |
221 |
epatch |
222 |
|
223 |
eautoreconf |
224 |
} |
225 |
|
226 |
src_configure() { |
227 |
local myconf="" |
228 |
|
229 |
myconf="${myconf} $(use_enable debug)" |
230 |
|
231 |
## enable/disable daemon, otherwise client only utils |
232 |
myconf="${myconf} $(use_with libvirtd)" |
233 |
|
234 |
## enable/disable the daemon using avahi to find VMs |
235 |
myconf="${myconf} $(use_with avahi)" |
236 |
|
237 |
## hypervisors on the local host |
238 |
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" |
239 |
if ! use policykit && use xen; then |
240 |
myconf="${myconf} --with-xen-proxy" |
241 |
fi |
242 |
myconf="${myconf} $(use_with openvz)" |
243 |
myconf="${myconf} $(use_with lxc)" |
244 |
if use virtualbox && has_version app-emulation/virtualbox-ose; then |
245 |
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" |
246 |
else |
247 |
myconf="${myconf} $(use_with virtualbox vbox)" |
248 |
fi |
249 |
myconf="${myconf} $(use_with uml)" |
250 |
myconf="${myconf} $(use_with qemu)" |
251 |
# doesn't belong with hypervisors but links to libvirtd for some reason |
252 |
#myconf="${myconf} $(use_with one)" |
253 |
|
254 |
## hypervisor protocols |
255 |
myconf="${myconf} $(use_with phyp)" |
256 |
myconf="${myconf} --with-esx" |
257 |
|
258 |
## additional host drivers |
259 |
myconf="${myconf} $(use_with network)" |
260 |
myconf="${myconf} --with-storage-fs" |
261 |
myconf="${myconf} $(use_with lvm storage-lvm)" |
262 |
myconf="${myconf} $(use_with iscsi storage-iscsi)" |
263 |
myconf="${myconf} $(use_with parted storage-disk)" |
264 |
myconf="${myconf} $(use_with lvm storage-mpath)" |
265 |
myconf="${myconf} $(use_with numa numactl)" |
266 |
myconf="${myconf} $(use_with selinux)" |
267 |
|
268 |
# udev for device support details |
269 |
myconf="${myconf} $(use_with udev)" |
270 |
|
271 |
# linux capability support so we don't need privileged accounts |
272 |
myconf="${myconf} $(use_with caps capng)" |
273 |
|
274 |
## auth stuff |
275 |
myconf="${myconf} $(use_with policykit polkit)" |
276 |
myconf="${myconf} $(use_with sasl)" |
277 |
|
278 |
# network biits |
279 |
myconf="${myconf} $(use_with pcap libpcap)" |
280 |
myconf="${myconf} $(use_with macvtap)" |
281 |
|
282 |
## other |
283 |
myconf="${myconf} $(use_enable nls)" |
284 |
myconf="${myconf} $(use_with python)" |
285 |
myconf="${myconf} $(use_with json yajl)" |
286 |
|
287 |
## stuff we don't yet support |
288 |
myconf="${myconf} --without-netcf --without-audit" |
289 |
|
290 |
# we use udev over hal |
291 |
myconf="${myconf} --without-hal" |
292 |
|
293 |
# this is a nasty trick to work around the problem in bug |
294 |
# #275073. The reason why we don't solve this properly is that |
295 |
# it'll require us to rebuild autotools (and we don't really want |
296 |
# to do that right now). The proper solution has been sent |
297 |
# upstream and should hopefully land in 0.7.7, in the mean time, |
298 |
# mime the same functionality with this. |
299 |
case ${CHOST} in |
300 |
*cygwin* | *mingw* ) |
301 |
;; |
302 |
*) |
303 |
ac_cv_prog_WINDRES=no |
304 |
;; |
305 |
esac |
306 |
|
307 |
econf \ |
308 |
${myconf} \ |
309 |
--disable-static \ |
310 |
--docdir=/usr/share/doc/${PF} \ |
311 |
--with-remote \ |
312 |
--localstatedir=/var \ |
313 |
--with-remote-pid-file=/var/run/libvirtd.pid |
314 |
} |
315 |
|
316 |
src_test() { |
317 |
# Explicitly allow parallel build of tests |
318 |
emake check || die "tests failed" |
319 |
} |
320 |
|
321 |
src_install() { |
322 |
emake install \ |
323 |
DESTDIR="${D}" \ |
324 |
HTML_DIR=/usr/share/doc/${PF}/html \ |
325 |
DOCS_DIR=/usr/share/doc/${PF}/python \ |
326 |
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ |
327 |
|| die "emake install failed" |
328 |
|
329 |
find "${D}" -name '*.la' -delete || die |
330 |
|
331 |
use libvirtd || return 0 |
332 |
# From here, only libvirtd-related instructions, be warned! |
333 |
|
334 |
newinitd "${FILESDIR}/libvirtd.init-r1" libvirtd || die |
335 |
newconfd "${FILESDIR}/libvirtd.confd-r1" libvirtd || die |
336 |
|
337 |
keepdir /var/lib/libvirt/images |
338 |
} |
339 |
|
340 |
pkg_preinst() { |
341 |
# we only ever want to generate this once |
342 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
343 |
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
344 |
fi |
345 |
|
346 |
# We really don't want to use or support old PolicyKit cause it |
347 |
# screws with the new polkit integration |
348 |
if has_version sys-auth/policykit; then |
349 |
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy |
350 |
fi |
351 |
} |
352 |
|
353 |
pkg_postinst() { |
354 |
use python && python_mod_optimize $(python_get_sitedir)/libvirt.py |
355 |
|
356 |
elog |
357 |
if use policykit && has_version sys-auth/policykit; then |
358 |
elog "You must have run the following at least once:" |
359 |
elog |
360 |
elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" |
361 |
elog |
362 |
elog "to grant USERNAME access to libvirt when using USE=policykit" |
363 |
else |
364 |
elog "To allow normal users to connect to libvirtd you must change the" |
365 |
elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" |
366 |
fi |
367 |
|
368 |
use libvirtd || return 0 |
369 |
# From here, only libvirtd-related instructions, be warned! |
370 |
|
371 |
elog |
372 |
elog "For the basic networking support (bridged and routed networks)" |
373 |
elog "you don't need any extra software. For more complex network modes" |
374 |
elog "including but not limited to NATed network, you'll need the" |
375 |
elog "following packages": |
376 |
elog |
377 |
elog " net-dns/dnsmasq" |
378 |
elog " >=net-firewall/iptables-1.4.9" |
379 |
elog " net-firewall/ebtables" |
380 |
elog |
381 |
if has_version net-dns/dnsmasq; then |
382 |
ewarn "If you have a DNS server setup on your machine, you will have" |
383 |
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " |
384 |
ewarn " bind-interfaces" |
385 |
ewarn " interface or except-interface" |
386 |
ewarn |
387 |
ewarn "Otherwise you might have issues with your existing DNS server." |
388 |
fi |
389 |
} |
390 |
|
391 |
pkg_postrm() { |
392 |
use python && python_mod_cleanup $(python_get_sitedir)/libvirt.py |
393 |
} |