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