Gentoo Archives: gentoo-commits

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