1 |
cardoe 12/06/30 01:44:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libvirt-0.9.11.4.ebuild |
5 |
Log: |
6 |
Version bump in the stable tree |
7 |
|
8 |
(Portage version: 2.1.11.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.192 app-emulation/libvirt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.192&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.192&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.191&r2=1.192 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v |
20 |
retrieving revision 1.191 |
21 |
retrieving revision 1.192 |
22 |
diff -u -r1.191 -r1.192 |
23 |
--- ChangeLog 27 Jun 2012 15:52:51 -0000 1.191 |
24 |
+++ ChangeLog 30 Jun 2012 01:44:00 -0000 1.192 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-emulation/libvirt |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.191 2012/06/27 15:52:51 cardoe Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.192 2012/06/30 01:44:00 cardoe Exp $ |
30 |
+ |
31 |
+*libvirt-0.9.11.4 (30 Jun 2012) |
32 |
+ |
33 |
+ 30 Jun 2012; Doug Goldstein <cardoe@g.o> +libvirt-0.9.11.4.ebuild: |
34 |
+ Version bump in the stable tree |
35 |
|
36 |
27 Jun 2012; Doug Goldstein <cardoe@g.o> libvirt-0.9.12.ebuild, |
37 |
libvirt-0.9.12-r1.ebuild, libvirt-9999.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-emulation/libvirt/libvirt-0.9.11.4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.9.11.4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.9.11.4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libvirt-0.9.11.4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.9.11.4.ebuild,v 1.1 2012/06/30 01:44:00 cardoe Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
#BACKPORTS=1 |
55 |
#AUTOTOOLIZE=yes |
56 |
|
57 |
MY_P="${P/_rc/-rc}" |
58 |
|
59 |
if [[ ${PV} = *9999* ]]; then |
60 |
EGIT_REPO_URI="git://libvirt.org/libvirt.git" |
61 |
AUTOTOOLIZE=yes |
62 |
fi |
63 |
|
64 |
PYTHON_DEPEND="python? 2:2.5" |
65 |
#RESTRICT_PYTHON_ABIS="3.*" |
66 |
#SUPPORT_PYTHON_ABIS="1" |
67 |
|
68 |
inherit eutils python |
69 |
|
70 |
if [[ ${PV} = *9999* ]]; then |
71 |
inherit autotools git-2 |
72 |
SRC_URI="" |
73 |
KEYWORDS="" |
74 |
else |
75 |
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz |
76 |
ftp://libvirt.org/libvirt/stable_updates/${MY_P}.tar.gz |
77 |
${BACKPORTS:+ |
78 |
http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-bp-${BACKPORTS}.tar.bz2}" |
79 |
KEYWORDS="~amd64 ~x86" |
80 |
fi |
81 |
S="${WORKDIR}/${P%_rc*}" |
82 |
|
83 |
DESCRIPTION="C toolkit to manipulate virtual machines" |
84 |
HOMEPAGE="http://www.libvirt.org/" |
85 |
LICENSE="LGPL-2.1" |
86 |
SLOT="0" |
87 |
IUSE="avahi caps debug iscsi +libvirtd lvm +lxc macvtap nfs \ |
88 |
nls numa openvz parted pcap phyp policykit python qemu sasl selinux +udev \ |
89 |
uml virtualbox virt-network xen elibc_glibc" |
90 |
# IUSE=one : bug #293416 & bug #299011 |
91 |
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) |
92 |
lxc? ( libvirtd ) openvz? ( libvirtd ) qemu? ( libvirtd ) uml? ( libvirtd ) |
93 |
virtualbox? ( libvirtd ) xen? ( libvirtd )" |
94 |
|
95 |
# gettext.sh command is used by the libvirt command wrappers, and it's |
96 |
# non-optional, so put it into RDEPEND. |
97 |
RDEPEND="sys-libs/readline |
98 |
sys-libs/ncurses |
99 |
>=net-misc/curl-7.18.0 |
100 |
dev-libs/libgcrypt |
101 |
>=dev-libs/libxml2-2.7.6 |
102 |
>=dev-libs/libnl-1.1:1.1 |
103 |
>=net-libs/gnutls-1.0.25 |
104 |
sys-apps/dmidecode |
105 |
>=sys-apps/util-linux-2.17 |
106 |
sys-devel/gettext |
107 |
>=net-analyzer/netcat6-1.0-r2 |
108 |
app-misc/scrub |
109 |
avahi? ( >=net-dns/avahi-0.6[dbus] ) |
110 |
caps? ( sys-libs/libcap-ng ) |
111 |
iscsi? ( sys-block/open-iscsi ) |
112 |
lxc? ( sys-power/pm-utils ) |
113 |
lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) |
114 |
nfs? ( net-fs/nfs-utils ) |
115 |
numa? ( >sys-process/numactl-2.0.2 ) |
116 |
openvz? ( sys-kernel/openvz-sources ) |
117 |
parted? ( |
118 |
>=sys-block/parted-1.8[device-mapper] |
119 |
sys-fs/lvm2 |
120 |
) |
121 |
pcap? ( >=net-libs/libpcap-1.0.0 ) |
122 |
phyp? ( net-libs/libssh2 ) |
123 |
policykit? ( >=sys-auth/polkit-0.9 ) |
124 |
qemu? ( |
125 |
|| ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 ) |
126 |
dev-libs/yajl |
127 |
sys-power/pm-utils |
128 |
) |
129 |
sasl? ( dev-libs/cyrus-sasl ) |
130 |
selinux? ( >=sys-libs/libselinux-2.0.85 ) |
131 |
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) |
132 |
xen? ( app-emulation/xen-tools app-emulation/xen ) |
133 |
udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 ) |
134 |
virt-network? ( net-dns/dnsmasq |
135 |
>=net-firewall/iptables-1.4.10 |
136 |
net-firewall/ebtables |
137 |
sys-apps/iproute2[-minimal] ) |
138 |
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" |
139 |
# one? ( dev-libs/xmlrpc-c ) |
140 |
DEPEND="${RDEPEND} |
141 |
virtual/pkgconfig |
142 |
app-text/xhtml1" |
143 |
|
144 |
pkg_setup() { |
145 |
use python && python_set_active_version 2 |
146 |
python_pkg_setup |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
[[ -n ${BACKPORTS} ]] && \ |
151 |
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ |
152 |
epatch |
153 |
|
154 |
if [[ ${PV} = *9999* ]]; then |
155 |
# git checkouts require bootstrapping to create the configure script. |
156 |
# Additionally the submodules must be cloned to the right locations |
157 |
# bug #377279 |
158 |
./bootstrap || die "bootstrap failed" |
159 |
( |
160 |
git submodule status | sed 's/^[ +-]//;s/ .*//' |
161 |
git hash-object bootstrap.conf |
162 |
) >.git-module-status |
163 |
fi |
164 |
|
165 |
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf |
166 |
} |
167 |
|
168 |
src_configure() { |
169 |
local myconf="" |
170 |
|
171 |
myconf="${myconf} $(use_enable debug)" |
172 |
|
173 |
## enable/disable daemon, otherwise client only utils |
174 |
myconf="${myconf} $(use_with libvirtd)" |
175 |
|
176 |
## enable/disable the daemon using avahi to find VMs |
177 |
myconf="${myconf} $(use_with avahi)" |
178 |
|
179 |
## hypervisors on the local host |
180 |
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" |
181 |
# leave it automagic as it depends on the version of xen used. |
182 |
use xen || myconf+=" --without-libxl" |
183 |
|
184 |
myconf="${myconf} $(use_with openvz)" |
185 |
myconf="${myconf} $(use_with lxc)" |
186 |
if use virtualbox && has_version app-emulation/virtualbox-ose; then |
187 |
myconf="${myconf} --with-vbox=/usr/lib/virtualbox-ose/" |
188 |
else |
189 |
myconf="${myconf} $(use_with virtualbox vbox)" |
190 |
fi |
191 |
myconf="${myconf} $(use_with uml)" |
192 |
myconf="${myconf} $(use_with qemu)" |
193 |
myconf="${myconf} $(use_with qemu yajl)" # Use QMP over HMP |
194 |
# doesn't belong with hypervisors but links to libvirtd for some reason |
195 |
#myconf="${myconf} $(use_with one)" |
196 |
|
197 |
## hypervisor protocols |
198 |
myconf="${myconf} $(use_with phyp)" |
199 |
myconf="${myconf} --with-esx" |
200 |
|
201 |
## additional host drivers |
202 |
myconf="${myconf} $(use_with virt-network network)" |
203 |
myconf="${myconf} --with-storage-fs" |
204 |
myconf="${myconf} $(use_with lvm storage-lvm)" |
205 |
myconf="${myconf} $(use_with iscsi storage-iscsi)" |
206 |
myconf="${myconf} $(use_with parted storage-disk)" |
207 |
myconf="${myconf} $(use_with lvm storage-mpath)" |
208 |
myconf="${myconf} $(use_with numa numactl)" |
209 |
myconf="${myconf} $(use_with selinux)" |
210 |
|
211 |
# udev for device support details |
212 |
myconf="${myconf} $(use_with udev)" |
213 |
|
214 |
# linux capability support so we don't need privileged accounts |
215 |
myconf="${myconf} $(use_with caps capng)" |
216 |
|
217 |
## auth stuff |
218 |
myconf="${myconf} $(use_with policykit polkit)" |
219 |
myconf="${myconf} $(use_with sasl)" |
220 |
|
221 |
# network bits |
222 |
myconf="${myconf} $(use_with macvtap)" |
223 |
myconf="${myconf} $(use_with pcap libpcap)" |
224 |
|
225 |
## other |
226 |
myconf="${myconf} $(use_enable nls)" |
227 |
myconf="${myconf} $(use_with python)" |
228 |
|
229 |
## stuff we don't yet support |
230 |
myconf="${myconf} --without-netcf --without-audit" |
231 |
|
232 |
# we use udev over hal |
233 |
myconf="${myconf} --without-hal" |
234 |
|
235 |
# locking support |
236 |
myconf="${myconf} --without-sanlock" |
237 |
|
238 |
# this is a nasty trick to work around the problem in bug |
239 |
# #275073. The reason why we don't solve this properly is that |
240 |
# it'll require us to rebuild autotools (and we don't really want |
241 |
# to do that right now). The proper solution has been sent |
242 |
# upstream and should hopefully land in 0.7.7, in the mean time, |
243 |
# mime the same functionality with this. |
244 |
case ${CHOST} in |
245 |
*cygwin* | *mingw* ) |
246 |
;; |
247 |
*) |
248 |
ac_cv_prog_WINDRES=no |
249 |
;; |
250 |
esac |
251 |
|
252 |
econf \ |
253 |
${myconf} \ |
254 |
--disable-static \ |
255 |
--docdir=/usr/share/doc/${PF} \ |
256 |
--with-remote \ |
257 |
--localstatedir=/var |
258 |
|
259 |
if [[ ${PV} = *9999* ]]; then |
260 |
# Restore gnulib's config.sub and config.guess |
261 |
# bug #377279 |
262 |
(cd .gnulib && git reset --hard > /dev/null) |
263 |
fi |
264 |
} |
265 |
|
266 |
src_test() { |
267 |
# Explicitly allow parallel build of tests |
268 |
HOME="${T}" emake check || die "tests failed" |
269 |
} |
270 |
|
271 |
src_install() { |
272 |
emake install \ |
273 |
DESTDIR="${D}" \ |
274 |
HTML_DIR=/usr/share/doc/${PF}/html \ |
275 |
DOCS_DIR=/usr/share/doc/${PF}/python \ |
276 |
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ |
277 |
|| die "emake install failed" |
278 |
|
279 |
find "${D}" -name '*.la' -delete || die |
280 |
|
281 |
use libvirtd || return 0 |
282 |
# From here, only libvirtd-related instructions, be warned! |
283 |
|
284 |
newinitd "${FILESDIR}/libvirtd.init-r8" libvirtd || die |
285 |
newconfd "${FILESDIR}/libvirtd.confd-r3" libvirtd || die |
286 |
|
287 |
keepdir /var/lib/libvirt/images |
288 |
} |
289 |
|
290 |
pkg_preinst() { |
291 |
# we only ever want to generate this once |
292 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
293 |
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
294 |
fi |
295 |
|
296 |
# We really don't want to use or support old PolicyKit cause it |
297 |
# screws with the new polkit integration |
298 |
if has_version sys-auth/policykit; then |
299 |
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy |
300 |
fi |
301 |
|
302 |
# Only sysctl files ending in .conf work |
303 |
mv "${D}"/etc/sysctl.d/libvirtd "${D}"/etc/sysctl.d/libvirtd.conf |
304 |
} |
305 |
|
306 |
pkg_postinst() { |
307 |
use python && python_mod_optimize libvirt.py |
308 |
|
309 |
elog |
310 |
if use policykit && has_version sys-auth/policykit; then |
311 |
elog "You must have run the following at least once:" |
312 |
elog |
313 |
elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" |
314 |
elog |
315 |
elog "to grant USERNAME access to libvirt when using USE=policykit" |
316 |
else |
317 |
elog "To allow normal users to connect to libvirtd you must change the" |
318 |
elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" |
319 |
fi |
320 |
|
321 |
use libvirtd || return 0 |
322 |
# From here, only libvirtd-related instructions, be warned! |
323 |
|
324 |
elog |
325 |
elog "For the basic networking support (bridged and routed networks)" |
326 |
elog "you don't need any extra software. For more complex network modes" |
327 |
elog "including but not limited to NATed network, you can enable the" |
328 |
elog "'virt-network' USE flag." |
329 |
elog |
330 |
if has_version net-dns/dnsmasq; then |
331 |
ewarn "If you have a DNS server setup on your machine, you will have" |
332 |
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " |
333 |
ewarn " bind-interfaces" |
334 |
ewarn " interface or except-interface" |
335 |
ewarn |
336 |
ewarn "Otherwise you might have issues with your existing DNS server." |
337 |
fi |
338 |
} |
339 |
|
340 |
pkg_postrm() { |
341 |
use python && python_mod_cleanup libvirt.py |
342 |
} |