Gentoo Archives: gentoo-commits

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