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