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