Gentoo Archives: gentoo-commits

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