1 |
tamiko 15/06/24 11:07:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libvirt-1.2.16-r2.ebuild |
5 |
Removed: libvirt-1.2.16-r1.ebuild |
6 |
Log: |
7 |
adjust paths in libvirt-guests.sh (fixed in 1.2.16-r2 only) |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key BD3A97A3) |
10 |
|
11 |
Revision Changes Path |
12 |
1.434 app-emulation/libvirt/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.434&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.434&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.433&r2=1.434 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v |
21 |
retrieving revision 1.433 |
22 |
retrieving revision 1.434 |
23 |
diff -u -r1.433 -r1.434 |
24 |
--- ChangeLog 24 Jun 2015 09:48:26 -0000 1.433 |
25 |
+++ ChangeLog 24 Jun 2015 11:07:37 -0000 1.434 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-emulation/libvirt |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.433 2015/06/24 09:48:26 tamiko Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.434 2015/06/24 11:07:37 tamiko Exp $ |
31 |
+ |
32 |
+*libvirt-1.2.16-r2 (24 Jun 2015) |
33 |
+ |
34 |
+ 24 Jun 2015; Matthias Maier <tamiko@g.o> |
35 |
+ +files/libvirt-1.2.16-fix_paths_in_libvirt-guests_sh.patch, |
36 |
+ +libvirt-1.2.16-r2.ebuild, -libvirt-1.2.16-r1.ebuild, files/libvirtd.init-r14: |
37 |
+ adjust paths in libvirt-guests.sh (fixed in 1.2.16-r2 only) |
38 |
|
39 |
*libvirt-1.2.16-r1 (24 Jun 2015) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-emulation/libvirt/libvirt-1.2.16-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-1.2.16-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-1.2.16-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: libvirt-1.2.16-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.16-r2.ebuild,v 1.1 2015/06/24 11:07:37 tamiko Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
AUTOTOOLIZE=yes |
58 |
|
59 |
MY_P="${P/_rc/-rc}" |
60 |
|
61 |
inherit eutils user autotools linux-info systemd readme.gentoo |
62 |
|
63 |
BACKPORTS="" |
64 |
|
65 |
if [[ ${PV} = *9999* ]]; then |
66 |
inherit git-r3 |
67 |
EGIT_REPO_URI="git://libvirt.org/libvirt.git" |
68 |
SRC_URI="" |
69 |
KEYWORDS="" |
70 |
SLOT="0" |
71 |
else |
72 |
# Versions with 4 numbers are stable updates: |
73 |
if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then |
74 |
SRC_URI="http://libvirt.org/sources/stable_updates/${MY_P}.tar.gz" |
75 |
else |
76 |
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz" |
77 |
fi |
78 |
SRC_URI+=" ${BACKPORTS:+ |
79 |
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz |
80 |
http://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}" |
81 |
KEYWORDS="~amd64 ~x86" |
82 |
SLOT="0/${PV}" |
83 |
fi |
84 |
S="${WORKDIR}/${P%_rc*}" |
85 |
|
86 |
DESCRIPTION="C toolkit to manipulate virtual machines" |
87 |
HOMEPAGE="http://www.libvirt.org/" |
88 |
LICENSE="LGPL-2.1" |
89 |
# TODO: Reenable IUSE wireshark-plugins |
90 |
IUSE="audit avahi +caps firewalld fuse glusterfs iscsi +libvirtd lvm lxc \ |
91 |
+macvtap nfs nls numa openvz parted pcap phyp policykit +qemu rbd sasl \ |
92 |
selinux +udev uml +vepa virtualbox virt-network wireshark-plugins xen \ |
93 |
elibc_glibc systemd" |
94 |
REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) |
95 |
lxc? ( caps libvirtd ) |
96 |
openvz? ( libvirtd ) |
97 |
qemu? ( libvirtd ) |
98 |
uml? ( libvirtd ) |
99 |
vepa? ( macvtap ) |
100 |
virtualbox? ( libvirtd ) |
101 |
xen? ( libvirtd ) |
102 |
virt-network? ( libvirtd ) |
103 |
firewalld? ( virt-network )" |
104 |
|
105 |
# gettext.sh command is used by the libvirt command wrappers, and it's |
106 |
# non-optional, so put it into RDEPEND. |
107 |
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
108 |
# package will use 3 by default. Since we don't have slot pinning in an API, |
109 |
# we must go with the most recent |
110 |
RDEPEND="sys-libs/readline:= |
111 |
sys-libs/ncurses |
112 |
>=net-misc/curl-7.18.0 |
113 |
dev-libs/libgcrypt:0 |
114 |
>=dev-libs/libxml2-2.7.6 |
115 |
dev-libs/libnl:3 |
116 |
>=net-libs/gnutls-1.0.25 |
117 |
net-libs/libssh2 |
118 |
sys-apps/dmidecode |
119 |
>=sys-apps/util-linux-2.17 |
120 |
sys-devel/gettext |
121 |
>=net-analyzer/netcat6-1.0-r2 |
122 |
app-misc/scrub |
123 |
audit? ( sys-process/audit ) |
124 |
avahi? ( >=net-dns/avahi-0.6[dbus] ) |
125 |
caps? ( sys-libs/libcap-ng ) |
126 |
fuse? ( >=sys-fs/fuse-2.8.6 ) |
127 |
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
128 |
iscsi? ( sys-block/open-iscsi ) |
129 |
lxc? ( !systemd? ( sys-power/pm-utils ) ) |
130 |
lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) |
131 |
nfs? ( net-fs/nfs-utils ) |
132 |
numa? ( |
133 |
>sys-process/numactl-2.0.2 |
134 |
sys-process/numad |
135 |
) |
136 |
openvz? ( sys-kernel/openvz-sources:* ) |
137 |
parted? ( |
138 |
>=sys-block/parted-1.8[device-mapper] |
139 |
sys-fs/lvm2 |
140 |
) |
141 |
pcap? ( >=net-libs/libpcap-1.0.0 ) |
142 |
policykit? ( >=sys-auth/polkit-0.9 ) |
143 |
qemu? ( |
144 |
>=app-emulation/qemu-0.13.0 |
145 |
dev-libs/yajl |
146 |
!systemd? ( sys-power/pm-utils ) |
147 |
) |
148 |
rbd? ( sys-cluster/ceph ) |
149 |
sasl? ( dev-libs/cyrus-sasl ) |
150 |
selinux? ( >=sys-libs/libselinux-2.0.85 ) |
151 |
systemd? ( sys-apps/systemd ) |
152 |
virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) |
153 |
wireshark-plugins? ( net-analyzer/wireshark:= ) |
154 |
xen? ( app-emulation/xen-tools app-emulation/xen ) |
155 |
udev? ( virtual/udev >=x11-libs/libpciaccess-0.10.9 ) |
156 |
virt-network? ( net-dns/dnsmasq[script] |
157 |
>=net-firewall/iptables-1.4.10[ipv6] |
158 |
net-misc/radvd |
159 |
net-firewall/ebtables |
160 |
sys-apps/iproute2[-minimal] |
161 |
firewalld? ( net-firewall/firewalld ) |
162 |
) |
163 |
elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )" |
164 |
|
165 |
DEPEND="${RDEPEND} |
166 |
virtual/pkgconfig |
167 |
app-text/xhtml1 |
168 |
dev-lang/perl |
169 |
dev-perl/XML-XPath |
170 |
dev-libs/libxslt" |
171 |
|
172 |
DOC_CONTENTS="For the basic networking support (bridged and routed networks) |
173 |
you don't need any extra software. For more complex network modes |
174 |
including but not limited to NATed network, you can enable the |
175 |
'virt-network' USE flag.\n\n |
176 |
If you are using dnsmasq on your system, you will have |
177 |
to configure /etc/dnsmasq.conf to enable the following settings:\n\n |
178 |
bind-interfaces\n |
179 |
interface or except-interface\n\n |
180 |
Otherwise you might have issues with your existing DNS server." |
181 |
|
182 |
LXC_CONFIG_CHECK=" |
183 |
~CGROUPS |
184 |
~CGROUP_FREEZER |
185 |
~CGROUP_DEVICE |
186 |
~CGROUP_CPUACCT |
187 |
~CGROUP_SCHED |
188 |
~CGROUP_PERF |
189 |
~BLK_CGROUP |
190 |
~NET_CLS_CGROUP |
191 |
~CGROUP_NET_PRIO |
192 |
~CPUSETS |
193 |
~RESOURCE_COUNTERS |
194 |
~NAMESPACES |
195 |
~UTS_NS |
196 |
~IPC_NS |
197 |
~PID_NS |
198 |
~NET_NS |
199 |
~USER_NS |
200 |
~DEVPTS_MULTIPLE_INSTANCES |
201 |
~VETH |
202 |
~MACVLAN |
203 |
~POSIX_MQUEUE |
204 |
~SECURITYFS |
205 |
~!GRKERNSEC_CHROOT_MOUNT |
206 |
~!GRKERNSEC_CHROOT_DOUBLE |
207 |
~!GRKERNSEC_CHROOT_PIVOT |
208 |
~!GRKERNSEC_CHROOT_CHMOD |
209 |
~!GRKERNSEC_CHROOT_CAPS |
210 |
" |
211 |
|
212 |
VIRTNET_CONFIG_CHECK=" |
213 |
~BRIDGE_NF_EBTABLES |
214 |
~BRIDGE_EBT_MARK_T |
215 |
~NETFILTER_ADVANCED |
216 |
~NETFILTER_XT_TARGET_CHECKSUM |
217 |
~NETFILTER_XT_CONNMARK |
218 |
~NETFILTER_XT_MARK |
219 |
" |
220 |
|
221 |
BWLMT_CONFIG_CHECK=" |
222 |
~BRIDGE_EBT_T_NAT |
223 |
~NET_SCH_HTB |
224 |
~NET_SCH_SFQ |
225 |
~NET_SCH_INGRESS |
226 |
~NET_CLS_FW |
227 |
~NET_CLS_U32 |
228 |
~NET_ACT_POLICE |
229 |
" |
230 |
|
231 |
MACVTAP_CONFIG_CHECK=" ~MACVTAP" |
232 |
|
233 |
LVM_CONFIG_CHECK=" ~BLK_DEV_DM ~DM_SNAPSHOT ~DM_MULTIPATH" |
234 |
|
235 |
ERROR_USER_NS="Optional depending on LXC configuration." |
236 |
|
237 |
pkg_setup() { |
238 |
enewgroup qemu 77 |
239 |
enewuser qemu 77 -1 -1 qemu kvm |
240 |
|
241 |
# Some people used the masked ebuild which was not adding the qemu |
242 |
# user to the kvm group originally. This results in VMs failing to |
243 |
# start for some users. bug #430808 |
244 |
egetent group kvm | grep -q qemu |
245 |
if [[ $? -ne 0 ]]; then |
246 |
gpasswd -a qemu kvm |
247 |
fi |
248 |
|
249 |
# Handle specific kernel versions for different features |
250 |
kernel_is lt 3 6 && LXC_CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" |
251 |
kernel_is ge 3 6 && LXC_CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM" |
252 |
|
253 |
CONFIG_CHECK="" |
254 |
use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
255 |
use lvm && CONFIG_CHECK+="${LVM_CONFIG_CHECK}" |
256 |
use lxc && CONFIG_CHECK+="${LXC_CONFIG_CHECK}" |
257 |
use macvtap && CONFIG_CHECK+="${MACVTAP_CONFIG_CHECK}" |
258 |
use virt-network && CONFIG_CHECK+="${VIRTNET_CONFIG_CHECK}" |
259 |
# Bandwidth Limiting Support |
260 |
use virt-network && CONFIG_CHECK+="${BWLMT_CONFIG_CHECK}" |
261 |
if [[ -n ${CONFIG_CHECK} ]]; then |
262 |
linux-info_pkg_setup |
263 |
fi |
264 |
} |
265 |
|
266 |
src_prepare() { |
267 |
touch "${S}/.mailmap" |
268 |
|
269 |
if [[ ${PV} = *9999* ]]; then |
270 |
# git checkouts require bootstrapping to create the configure script. |
271 |
# Additionally the submodules must be cloned to the right locations |
272 |
# bug #377279 |
273 |
./bootstrap || die "bootstrap failed" |
274 |
( |
275 |
git submodule status | sed 's/^[ +-]//;s/ .*//' |
276 |
git hash-object bootstrap.conf |
277 |
) >.git-module-status |
278 |
fi |
279 |
|
280 |
epatch \ |
281 |
"${FILESDIR}"/${PN}-1.2.9-do_not_use_sysconf.patch \ |
282 |
"${FILESDIR}"/${P}-fix_paths_in_libvirt-guests_sh.patch |
283 |
|
284 |
[[ -n ${BACKPORTS} ]] && \ |
285 |
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \ |
286 |
EPATCH_SOURCE="${WORKDIR}/patches" epatch |
287 |
|
288 |
epatch_user |
289 |
|
290 |
[[ -n ${AUTOTOOLIZE} ]] && eautoreconf |
291 |
|
292 |
# Tweak the init script |
293 |
local avahi_init= |
294 |
local iscsi_init= |
295 |
local rbd_init= |
296 |
local firewalld_init= |
297 |
cp "${FILESDIR}/libvirtd.init-r15" "${S}/libvirtd.init" |
298 |
use avahi && avahi_init='avahi-daemon' |
299 |
use iscsi && iscsi_init='iscsid' |
300 |
use rbd && rbd_init='ceph' |
301 |
use firewalld && firewalld_init='need firewalld' |
302 |
|
303 |
sed -e "s/USE_FLAG_FIREWALLD/${firewalld_init}/" -i "${S}/libvirtd.init" |
304 |
sed -e "s/USE_FLAG_AVAHI/${avahi_init}/" -i "${S}/libvirtd.init" |
305 |
sed -e "s/USE_FLAG_ISCSI/${iscsi_init}/" -i "${S}/libvirtd.init" |
306 |
sed -e "s/USE_FLAG_RBD/${rbd_init}/" -i "${S}/libvirtd.init" |
307 |
} |
308 |
|
309 |
src_configure() { |
310 |
local myconf="" |
311 |
|
312 |
## enable/disable daemon, otherwise client only utils |
313 |
myconf+=" $(use_with libvirtd)" |
314 |
|
315 |
## enable/disable the daemon using avahi to find VMs |
316 |
myconf+=" $(use_with avahi)" |
317 |
|
318 |
## hypervisors on the local host |
319 |
myconf+=" $(use_with xen) $(use_with xen xen-inotify)" |
320 |
myconf+=" --without-xenapi" |
321 |
if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then |
322 |
myconf+=" --with-libxl" |
323 |
else |
324 |
myconf+=" --without-libxl" |
325 |
fi |
326 |
myconf+=" $(use_with openvz)" |
327 |
myconf+=" $(use_with lxc)" |
328 |
if use virtualbox && has_version app-emulation/virtualbox-ose; then |
329 |
myconf+=" --with-vbox=/usr/lib/virtualbox-ose/" |
330 |
else |
331 |
myconf+=" $(use_with virtualbox vbox)" |
332 |
fi |
333 |
myconf+=" $(use_with uml)" |
334 |
myconf+=" $(use_with qemu)" |
335 |
myconf+=" $(use_with qemu yajl)" # Use QMP over HMP |
336 |
myconf+=" $(use_with phyp)" |
337 |
myconf+=" --with-esx" |
338 |
myconf+=" --with-vmware" |
339 |
|
340 |
## additional host drivers |
341 |
myconf+=" $(use_with virt-network network)" |
342 |
myconf+=" --with-storage-fs" |
343 |
myconf+=" $(use_with lvm storage-lvm)" |
344 |
myconf+=" $(use_with iscsi storage-iscsi)" |
345 |
myconf+=" $(use_with parted storage-disk)" |
346 |
mycond+=" $(use_with glusterfs)" |
347 |
mycond+=" $(use_with glusterfs storage-gluster)" |
348 |
myconf+=" $(use_with lvm storage-mpath)" |
349 |
myconf+=" $(use_with rbd storage-rbd)" |
350 |
myconf+=" $(use_with numa numactl)" |
351 |
myconf+=" $(use_with numa numad)" |
352 |
myconf+=" $(use_with selinux)" |
353 |
myconf+=" $(use_with fuse)" |
354 |
|
355 |
# udev for device support details |
356 |
myconf+=" $(use_with udev)" |
357 |
myconf+=" --without-hal" |
358 |
|
359 |
# linux capability support so we don't need privileged accounts |
360 |
myconf+=" $(use_with caps capng)" |
361 |
|
362 |
## auth stuff |
363 |
myconf+=" $(use_with policykit polkit)" |
364 |
myconf+=" $(use_with sasl)" |
365 |
|
366 |
# network bits |
367 |
myconf+=" $(use_with macvtap)" |
368 |
myconf+=" $(use_with pcap libpcap)" |
369 |
myconf+=" $(use_with vepa virtualport)" |
370 |
myconf+=" $(use_with firewalld)" |
371 |
|
372 |
## other |
373 |
myconf+=" $(use_enable nls)" |
374 |
|
375 |
# user privilege bits fir qemu/kvm |
376 |
if use caps; then |
377 |
myconf+=" --with-qemu-user=qemu" |
378 |
myconf+=" --with-qemu-group=qemu" |
379 |
else |
380 |
myconf+=" --with-qemu-user=root" |
381 |
myconf+=" --with-qemu-group=root" |
382 |
fi |
383 |
|
384 |
# audit support |
385 |
myconf+=" $(use_with audit)" |
386 |
|
387 |
# wireshark dissector |
388 |
myconf+=" $(use_with wireshark-plugins wireshark-dissector)" |
389 |
|
390 |
## stuff we don't yet support |
391 |
myconf+=" --without-netcf" |
392 |
|
393 |
# locking support |
394 |
myconf+=" --without-sanlock" |
395 |
|
396 |
# systemd unit files |
397 |
myconf+=" $(use_with systemd systemd-daemon)" |
398 |
use systemd && myconf+=" --with-init-script=systemd" |
399 |
|
400 |
# this is a nasty trick to work around the problem in bug |
401 |
# #275073. The reason why we don't solve this properly is that |
402 |
# it'll require us to rebuild autotools (and we don't really want |
403 |
# to do that right now). The proper solution has been sent |
404 |
# upstream and should hopefully land in 0.7.7, in the mean time, |
405 |
# mime the same functionality with this. |
406 |
case ${CHOST} in |
407 |
*cygwin* | *mingw* ) |
408 |
;; |
409 |
*) |
410 |
ac_cv_prog_WINDRES=no |
411 |
;; |
412 |
esac |
413 |
|
414 |
econf \ |
415 |
${myconf} \ |
416 |
--disable-static \ |
417 |
--disable-werror \ |
418 |
--with-remote \ |
419 |
--docdir=/usr/share/doc/${PF} \ |
420 |
--localstatedir=/var |
421 |
|
422 |
if [[ ${PV} = *9999* ]]; then |
423 |
# Restore gnulib's config.sub and config.guess |
424 |
# bug #377279 |
425 |
(cd .gnulib && git reset --hard > /dev/null) |
426 |
fi |
427 |
} |
428 |
|
429 |
src_test() { |
430 |
# Explicitly allow parallel build of tests |
431 |
export VIR_TEST_DEBUG=1 |
432 |
HOME="${T}" emake check || die "tests failed" |
433 |
} |
434 |
|
435 |
src_install() { |
436 |
emake install \ |
437 |
DESTDIR="${D}" \ |
438 |
HTML_DIR=/usr/share/doc/${PF}/html \ |
439 |
DOCS_DIR=/usr/share/doc/${PF} \ |
440 |
EXAMPLE_DIR=/usr/share/doc/${PF}/examples \ |
441 |
SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)" \ |
442 |
|| die "emake install failed" |
443 |
|
444 |
find "${D}" -name '*.la' -delete || die |
445 |
|
446 |
# Remove bogus, empty directories. They are either not used, or |
447 |
# libvirtd is able to create them on demand |
448 |
rm -rf "${D}"/etc/sysconf |
449 |
rm -rf "${D}"/var/cache |
450 |
rm -rf "${D}"/var/run |
451 |
rm -rf "${D}"/var/log |
452 |
|
453 |
use libvirtd || return 0 |
454 |
# From here, only libvirtd-related instructions, be warned! |
455 |
|
456 |
use systemd && systemd_install_serviced \ |
457 |
"${FILESDIR}"/libvirtd.service.conf libvirtd.service |
458 |
|
459 |
systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
460 |
|
461 |
newinitd "${S}/libvirtd.init" libvirtd || die |
462 |
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
463 |
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
464 |
|
465 |
readme.gentoo_create_doc |
466 |
} |
467 |
|
468 |
pkg_preinst() { |
469 |
# we only ever want to generate this once |
470 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
471 |
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
472 |
fi |
473 |
|
474 |
# We really don't want to use or support old PolicyKit cause it |
475 |
# screws with the new polkit integration |
476 |
if has_version sys-auth/policykit; then |
477 |
rm -rf "${D}"/usr/share/PolicyKit/policy/org.libvirt.unix.policy |
478 |
fi |
479 |
|
480 |
# Only sysctl files ending in .conf work |
481 |
dodir /etc/sysctl.d |
482 |
mv "${D}"/usr/lib/sysctl.d/libvirtd.conf "${D}"/etc/sysctl.d/libvirtd.conf |
483 |
} |
484 |
|
485 |
pkg_postinst() { |
486 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
487 |
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml |
488 |
fi |
489 |
|
490 |
if ! use policykit; then |
491 |
elog "To allow normal users to connect to libvirtd you must change the" |
492 |
elog "unix sock group and/or perms in /etc/libvirt/libvirtd.conf" |
493 |
fi |
494 |
|
495 |
use libvirtd || return 0 |
496 |
# From here, only libvirtd-related instructions, be warned! |
497 |
|
498 |
readme.gentoo_print_elog |
499 |
|
500 |
if use caps && use qemu; then |
501 |
elog "libvirt will now start qemu/kvm VMs with non-root privileges." |
502 |
elog "Ensure any resources your VMs use are accessible by qemu:qemu" |
503 |
fi |
504 |
|
505 |
if [[ -n "${REPLACING_VERSIONS}" ]]; then |
506 |
elog "" |
507 |
elog "The systemd service-file configuration under /etc/sysconfig has" |
508 |
elog "been removed. Please use" |
509 |
elog " /etc/systemd/system/libvirtd.service.d/00gentoo.conf" |
510 |
elog "to control the '--listen' parameter for libvirtd. The configuration" |
511 |
elog "for the libvirt-guests.service is now found under" |
512 |
elog " /etc/libvirt/libvirt-guests.conf" |
513 |
elog "The openrc configuration has not been changed. Thus no action is" |
514 |
elog "required for the openrc service manager." |
515 |
elog "" |
516 |
fi |
517 |
} |