Gentoo Archives: gentoo-commits

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