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