1 |
cardoe 10/02/03 19:57:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libvirt-0.7.6.ebuild |
5 |
Log: |
6 |
version bump. fix bug #302443 & bug #293416 |
7 |
(Portage version: 2.1.7.17/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.48 app-emulation/libvirt/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.48&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.48&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.47&r2=1.48 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v |
19 |
retrieving revision 1.47 |
20 |
retrieving revision 1.48 |
21 |
diff -u -r1.47 -r1.48 |
22 |
--- ChangeLog 6 Jan 2010 17:02:33 -0000 1.47 |
23 |
+++ ChangeLog 3 Feb 2010 19:57:01 -0000 1.48 |
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.47 2010/01/06 17:02:33 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.48 2010/02/03 19:57:01 cardoe Exp $ |
29 |
+ |
30 |
+*libvirt-0.7.6 (03 Feb 2010) |
31 |
+ |
32 |
+ 03 Feb 2010; Doug Goldstein <cardoe@g.o> +libvirt-0.7.6.ebuild: |
33 |
+ version bump. fix bug #302443 & bug #293416 |
34 |
|
35 |
06 Jan 2010; Doug Goldstein <cardoe@g.o> libvirt-0.7.5.ebuild: |
36 |
avahi support requires avahi to be built with USE=dbus, adding it as a USE |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-emulation/libvirt/libvirt-0.7.6.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.7.6.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/libvirt/libvirt-0.7.6.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: libvirt-0.7.6.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.7.6.ebuild,v 1.1 2010/02/03 19:57:01 cardoe 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 |
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 |
econf \ |
165 |
${myconf} \ |
166 |
--disable-static \ |
167 |
--docdir=/usr/share/doc/${PF} \ |
168 |
--with-remote \ |
169 |
--localstatedir=/var \ |
170 |
--with-remote-pid-file=/var/run/libvirtd.pid |
171 |
} |
172 |
|
173 |
src_test() { |
174 |
# Explicitly allow parallel build of tests |
175 |
emake check || die "tests failed" |
176 |
} |
177 |
|
178 |
src_install() { |
179 |
emake install \ |
180 |
DESTDIR="${D}" \ |
181 |
HTML_DIR=/usr/share/doc/${PF}/html \ |
182 |
DOCS_DIR=/usr/share/doc/${PF}/python \ |
183 |
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ |
184 |
|| die "emake install failed" |
185 |
|
186 |
newinitd "${FILESDIR}/libvirtd.init" libvirtd || die |
187 |
newconfd "${FILESDIR}/libvirtd.confd" libvirtd || die |
188 |
|
189 |
keepdir /var/lib/libvirt/images |
190 |
|
191 |
find "${D}" -name '*.la' -delete || die |
192 |
} |
193 |
|
194 |
pkg_preinst() { |
195 |
# we only ever want to generate this once |
196 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
197 |
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
198 |
fi |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
use python && python_mod_optimize $(python_get_sitedir)/libvirt.py |
203 |
|
204 |
if use policykit; then |
205 |
elog "You must have run the following at least once" |
206 |
elog "polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" |
207 |
elog "to grant USERNAME access to libvirt when using USE=policykit" |
208 |
else |
209 |
elog "To allow normal users to connect to libvirtd you must change the" |
210 |
elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" |
211 |
fi |
212 |
elog |
213 |
elog "For the basic networking support (bridged and routed networks)" |
214 |
elog "you don't need any extra software. For more complex network modes" |
215 |
elog "including but not limited to NATed network, you'll need the" |
216 |
elog "following packages": |
217 |
elog |
218 |
elog " net-dns/dnsmasq" |
219 |
elog " net-firewall/iptables" |
220 |
elog " net-firewall/ebtables" |
221 |
elog |
222 |
ewarn "If you have a DNS server setup on your machine, you will have" |
223 |
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " |
224 |
ewarn " bind-interfaces" |
225 |
ewarn " interface or except-interface" |
226 |
elog |
227 |
ewarn "Otherwise you might have issues with your existing DNS server." |
228 |
} |
229 |
|
230 |
pkg_postrm() { |
231 |
use python && python_mod_cleanup |
232 |
} |