1 |
commit: 733c3216e3706a24d863260414f0767d66b7ca9e |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 1 01:55:00 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 1 01:55:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=733c3216 |
7 |
|
8 |
app-emulation/libvirt: drop vulnerable 3.2.0, 3.4.0, 3.5.0, bug #629462 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
app-emulation/libvirt/Manifest | 3 - |
13 |
app-emulation/libvirt/files/README.gentoo-r1 | 53 --- |
14 |
app-emulation/libvirt/files/libvirt-guests.init-r1 | 235 ------------- |
15 |
app-emulation/libvirt/files/libvirtd.init-r15 | 37 -- |
16 |
app-emulation/libvirt/libvirt-3.2.0.ebuild | 382 --------------------- |
17 |
app-emulation/libvirt/libvirt-3.4.0.ebuild | 382 --------------------- |
18 |
app-emulation/libvirt/libvirt-3.5.0.ebuild | 382 --------------------- |
19 |
app-emulation/libvirt/libvirt-9999.ebuild | 2 +- |
20 |
8 files changed, 1 insertion(+), 1475 deletions(-) |
21 |
|
22 |
diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest |
23 |
index b58b705d38b..3b446623061 100644 |
24 |
--- a/app-emulation/libvirt/Manifest |
25 |
+++ b/app-emulation/libvirt/Manifest |
26 |
@@ -1,5 +1,2 @@ |
27 |
-DIST libvirt-3.2.0.tar.xz 14057340 SHA256 9481a083b567a07927f239553dd70b5c0d1bff5b9b4ec61be1899981c646209e SHA512 35a9db3d59a3817d15fd6a586a2a73860b3d8a2d2ff37dbea1b4045fe1514c3535fce2eeba0f09df2d0bb9072ed9f1078ca9bad61a37c586eb019ddad3f898c4 WHIRLPOOL 499eb2cbf1367c99c106a747c76087f6ed980cc057cdb10cefe50a8a823a294f67925c98b1baa6ac7e12dcc20c90145b9a0c1e0927772e3b4a046bb4414391a0 |
28 |
DIST libvirt-3.3.0.tar.xz 14043384 SHA256 29e00984174e33cf2183b478382c017de26860452ffee17b73871051264ebb1b SHA512 69166ddd7d4b9ef3b1bf2466e781139ef9b4d224a64acc7b8e6fca8786d36482138a1fe7b7407c0fca3b3d012cb418d168671a3e65e428f023c16493b7718c2d WHIRLPOOL 1b2688f6b9a89608677070b5ce1fd2b2af115336126d4214071bc1abba25056d54dbbf16d6bdfab7582b252a833d3e53e51175d552d5c936b08973c0eed76643 |
29 |
-DIST libvirt-3.4.0.tar.xz 14630904 SHA256 42186af6225904d2ada0b494fda4fa777fe5e662a9134686816e7919332c248d SHA512 41a3374e8a171827dfc11feb2ae8c1a9d889912257191b94111f53bbe0521d5bc73c824ea856e4cece257918b244120e9f44c800abe23d0296c85c18b5d14461 WHIRLPOOL 3b4b9ad35f590748fbc63595fab86671f66674d2c40fa8e02860265a39be5b48ed9c66c14ac235b36d29d833475aebbbf57f691e53ac2bd324dacb16507793bf |
30 |
-DIST libvirt-3.5.0.tar.xz 14695760 SHA256 2963bae30d41411a2a8184de6a69cc3bd4dba14d2824b67906263dc35b27b516 SHA512 319d1573e55df0cbfd0808d658fb4ef5484d8381db6fe348b36a650ea60b62b7146882e616e9494109d44c8e57ed956137fb7b51c3895d96bd19e9aee6a3e82c WHIRLPOOL 90dc243e8fb8e619af319f2a8469dc98109a6200bee94f09508c22a75e90f82edf278796cf53ca38a7649e5ad1f5f4c0a258395624f830c1a42538519200637a |
31 |
DIST libvirt-3.6.0.tar.xz 14797704 SHA256 3a2c97f6950796f300f6a2e0404f4de8e51c3b9430cdb82738439adb0ac59e3d SHA512 6cde735a18cb71c9e6dbb25cd2a8f9c72d55ad7d74bdf97b00d784593f0bc59498917fb235ce04de4428899241520d87bf19c015b80282b3d0c12918d9b8b288 WHIRLPOOL 8185ad998158bac9aa6bc0dd0f590a3d9fb393ad94d308bdc84e60ac5c56e110d5f4a2355e2a10b01a6521d8261ae7484aee275e12a17cc7f2830f169e990596 |
32 |
|
33 |
diff --git a/app-emulation/libvirt/files/README.gentoo-r1 b/app-emulation/libvirt/files/README.gentoo-r1 |
34 |
deleted file mode 100644 |
35 |
index 74d1e77930d..00000000000 |
36 |
--- a/app-emulation/libvirt/files/README.gentoo-r1 |
37 |
+++ /dev/null |
38 |
@@ -1,53 +0,0 @@ |
39 |
-Important: The openrc libvirtd init script is now broken up into two |
40 |
-separate services: libvirtd, that solely handles the daemon, and |
41 |
-libvirt-guests, that takes care of clients during shutdown/restart of the |
42 |
-host. In order to reenable client handling, edit /etc/conf.d/libvirt-guests |
43 |
-and enable the service and start it: |
44 |
- |
45 |
- $ rc-update add libvirt-guests |
46 |
- $ service libvirt-guests start |
47 |
- |
48 |
- |
49 |
-For the basic networking support (bridged and routed networks) you don't |
50 |
-need any extra software. For more complex network modes including but not |
51 |
-limited to NATed network, you can enable the 'virt-network' USE flag. It |
52 |
-will pull in required runtime dependencies |
53 |
- |
54 |
- |
55 |
-If you are using dnsmasq on your system, you will have to configure |
56 |
-/etc/dnsmasq.conf to enable the following settings: |
57 |
- |
58 |
- bind-interfaces |
59 |
- interface or except-interface |
60 |
- |
61 |
-Otherwise you might have issues with your existing DNS server. |
62 |
- |
63 |
- |
64 |
-For openrc users: |
65 |
- |
66 |
- Please use /etc/conf.d/libvirtd to control the '--listen' parameter for |
67 |
- libvirtd. |
68 |
- |
69 |
- Use /etc/init.d/libvirt-guests to manage clients on restart/shutdown of |
70 |
- the host. The default configuration will suspend and resume running kvm |
71 |
- guests with 'managedsave'. This behavior can be changed under |
72 |
- /etc/conf.d/libvirt-guests |
73 |
- |
74 |
- |
75 |
-For systemd users: |
76 |
- |
77 |
- Please use /etc/systemd/system/libvirtd.service.d/00gentoo.conf |
78 |
- to control the '--listen' parameter for libvirtd. |
79 |
- |
80 |
- The configuration for the 'libvirt-guests.service' is found under |
81 |
- /etc/libvirt/libvirt-guests.conf" |
82 |
- |
83 |
- |
84 |
-If you have built libvirt without policykit support (USE=-policykit), you |
85 |
-must change the unix sock group and/or perms in /etc/libvirt/libvirtd.conf |
86 |
-in order to allow normal users to connect to libvirtd. |
87 |
- |
88 |
- |
89 |
-If libvirtd is built with USE=caps, libvirt will now start qemu/kvm VMs |
90 |
-with non-root privileges. Ensure any resources your VMs use are accessible |
91 |
-by qemu:qemu. |
92 |
|
93 |
diff --git a/app-emulation/libvirt/files/libvirt-guests.init-r1 b/app-emulation/libvirt/files/libvirt-guests.init-r1 |
94 |
deleted file mode 100644 |
95 |
index 6d814692696..00000000000 |
96 |
--- a/app-emulation/libvirt/files/libvirt-guests.init-r1 |
97 |
+++ /dev/null |
98 |
@@ -1,235 +0,0 @@ |
99 |
-#!/sbin/openrc-run |
100 |
- |
101 |
-description="Virtual Machine Management (libvirt) Guests" |
102 |
- |
103 |
-depend() { |
104 |
- need libvirtd |
105 |
-} |
106 |
- |
107 |
-# set the default to QEMU |
108 |
-[ -z "${LIBVIRT_URIS}" ] && LIBVIRT_URIS="qemu:///system" |
109 |
- |
110 |
-# default to suspending the VM via managedsave |
111 |
-case "${LIBVIRT_SHUTDOWN}" in |
112 |
- managedsave|shutdown|destroy) ;; |
113 |
- *) LIBVIRT_SHUTDOWN="managedsave" ;; |
114 |
-esac |
115 |
- |
116 |
-# default to 500 seconds |
117 |
-[ -z ${LIBVIRT_MAXWAIT} ] && LIBVIRT_MAXWAIT=500 |
118 |
- |
119 |
-gueststatefile="/var/lib/libvirt/libvirt-guests.state" |
120 |
-netstatefile="/var/lib/libvirt/libvirt-net.state" |
121 |
- |
122 |
-do_virsh() { |
123 |
- local hvuri=$1 |
124 |
- shift |
125 |
- |
126 |
- # if unset, default to qemu |
127 |
- [ -z ${hvuri} ] && hvuri="qemu:///system" |
128 |
- # if only qemu was supplied then correct the value |
129 |
- [ "xqemu" = x${hvuri} ] && hvuri="qemu:///system" |
130 |
- |
131 |
- # Silence errors because virsh always throws an error about |
132 |
- # not finding the hypervisor version when connecting to libvirtd |
133 |
- # lastly strip the blank line at the end |
134 |
- LC_ALL=C virsh -c ${hvuri} "$@" 2>/dev/null | head -n -1 |
135 |
-} |
136 |
- |
137 |
-libvirtd_dom_list() { |
138 |
- # Only work with domains by their UUIDs |
139 |
- local hvuri=$1 |
140 |
- shift |
141 |
- |
142 |
- do_virsh "${hvuri}" list --uuid $@ |
143 |
-} |
144 |
- |
145 |
-libvirtd_dom_count() { |
146 |
- local hvuri=$1 |
147 |
- shift |
148 |
- |
149 |
- libvirtd_dom_list "${hvuri}" $@ | wc -l |
150 |
-} |
151 |
- |
152 |
-libvirtd_net_list() { |
153 |
- # Only work with networks by their UUIDs |
154 |
- local hvuri=$1 |
155 |
- shift |
156 |
- |
157 |
- do_virsh "${hvuri}" net-list --uuid $@ |
158 |
-} |
159 |
- |
160 |
-libvirtd_net_count() { |
161 |
- local hvuri=$1 |
162 |
- shift |
163 |
- |
164 |
- libvirtd_net_list "${hvuri}" $@ | wc -l |
165 |
-} |
166 |
- |
167 |
-libvirtd_dom_stop() { |
168 |
- # stops all persistent or transient domains for a given URI |
169 |
- # $1 - uri |
170 |
- # $2 - persisent/transient |
171 |
- |
172 |
- local uri=$1 |
173 |
- local persist=$2 |
174 |
- local shutdown_type=${LIBVIRT_SHUTDOWN} |
175 |
- local counter=${LIBVIRT_MAXWAIT} |
176 |
- local dom_name= |
177 |
- local dom_as= |
178 |
- local dom_ids= |
179 |
- local uuid= |
180 |
- local dom_count= |
181 |
- |
182 |
- [ "${persist}" = "--transient" ] && shutdown_type="shutdown" |
183 |
- [ -n "${counter}" ] || counter=500 |
184 |
- |
185 |
- einfo " Shutting down domain(s) ..." |
186 |
- |
187 |
- # grab all persistent or transient domains running |
188 |
- dom_ids=$(libvirtd_dom_list ${uri} ${persist}) |
189 |
- |
190 |
- for uuid in ${dom_ids}; do |
191 |
- # Get the name |
192 |
- dom_name=$(do_virsh ${uri} domname ${uuid}) |
193 |
- einfo " ${dom_name}" |
194 |
- # Get autostart state |
195 |
- dom_as=$(do_virsh ${uri} dominfo ${uuid} | \ |
196 |
- awk '$1 == "Autostart:" { print $2 }') |
197 |
- |
198 |
- if [ "${persist}" = "--persistent" ]; then |
199 |
- # Save our running state only if LIBVIRT_IGNORE_AUTOSTART != yes |
200 |
- if [ "x${LIBVIRT_IGNORE_AUTOSTART}" = "xyes" ] && \ |
201 |
- [ ${dom_as} = "enabled" ]; then |
202 |
- : |
203 |
- else |
204 |
- echo "${uri} ${uuid}" >> ${gueststatefile} |
205 |
- fi |
206 |
- |
207 |
- fi |
208 |
- |
209 |
- # Now let's stop it |
210 |
- do_virsh "${uri}" ${shutdown_type} ${uuid} > /dev/null |
211 |
- |
212 |
- done |
213 |
- |
214 |
- dom_count="$(libvirtd_dom_count ${uri} ${persist})" |
215 |
- while [ ${dom_count} -gt 0 ] && [ ${counter} -gt 0 ] ; do |
216 |
- dom_count="$(libvirtd_dom_count ${uri} ${persist})" |
217 |
- sleep 1 |
218 |
- if [ "${shutdown_type}" = "shutdown" ]; then |
219 |
- counter=$((${counter} - 1)) |
220 |
- fi |
221 |
- echo -n "." |
222 |
- done |
223 |
- |
224 |
- if [ "${shutdown_type}" = "shutdown" ]; then |
225 |
- # grab all domains still running |
226 |
- dom_ids=$(libvirtd_dom_list ${uri} ${persist}) |
227 |
- for uuid in ${dom_ids}; do |
228 |
- dom_name=$(do_virsh ${uri} domname ${uuid}) |
229 |
- eerror " ${dom_name} forcibly stopped" |
230 |
- do_virsh "${uri}" destroy ${uuid} > /dev/null |
231 |
- done |
232 |
- fi |
233 |
-} |
234 |
- |
235 |
-libvirtd_net_stop() { |
236 |
- # stops all persistent or transient domains for a given URI |
237 |
- # $1 - uri |
238 |
- # $2 - persisent/transient |
239 |
- |
240 |
- local uri=$1 |
241 |
- local persist=$2 |
242 |
- local uuid= |
243 |
- local net_name= |
244 |
- |
245 |
- if [ "${LIBVIRT_NET_SHUTDOWN}" != "no" ]; then |
246 |
- |
247 |
- einfo " Shutting down network(s):" |
248 |
- for uuid in $(libvirtd_net_list ${uri} ${persist}); do |
249 |
- net_name=$(do_virsh ${uri} net-name ${uuid}) |
250 |
- einfo " ${net_name}" |
251 |
- |
252 |
- if [ "${persist}" = "--persistent" ]; then |
253 |
- # Save our running state |
254 |
- echo "${uri} ${uuid}" >> ${netstatefile} |
255 |
- |
256 |
- fi |
257 |
- |
258 |
- # Actually stop the network |
259 |
- do_virsh qemu net-destroy ${uuid} > /dev/null |
260 |
- done |
261 |
- |
262 |
- fi |
263 |
-} |
264 |
- |
265 |
-start() { |
266 |
- local uri= |
267 |
- local uuid= |
268 |
- local name= |
269 |
- |
270 |
- for uri in ${LIBVIRT_URIS}; do |
271 |
- do_virsh "${uri}" connect |
272 |
- if [ $? -ne 0 ]; then |
273 |
- eerror "Failed to connect to '${uri}'. Domains may not start." |
274 |
- fi |
275 |
- done |
276 |
- |
277 |
- [ ! -e "${netstatefile}" ] && touch "${netstatefile}" |
278 |
- [ ! -e "${gueststatefile}" ] && touch "${gueststatefile}" |
279 |
- |
280 |
- # if the user didn't want to start any guests up then respect their wish |
281 |
- [ "x${LIBVIRT_START}" = "xno" ] && return 0 |
282 |
- |
283 |
- # start networks |
284 |
- ebegin "Starting libvirt networks" |
285 |
- while read -r uri uuid |
286 |
- do |
287 |
- # ignore trash |
288 |
- [ -z "${uri}" ] || [ -z "${uuid}" ] && continue |
289 |
- |
290 |
- name=$(do_virsh "${uri}" net-name ${uuid}) |
291 |
- einfo " ${name}" |
292 |
- do_virsh "${uri}" net-start ${uuid} > /dev/null |
293 |
- done <"${netstatefile}" |
294 |
- eend 0 |
295 |
- |
296 |
- # start domains |
297 |
- ebegin "Starting libvirt domains" |
298 |
- while read -r uri uuid |
299 |
- do |
300 |
- # ignore trash |
301 |
- [ -z "${uri}" ] || [ -z "${uuid}" ] && continue |
302 |
- |
303 |
- name=$(do_virsh "${uri}" domname ${uuid}) |
304 |
- einfo " ${name}" |
305 |
- do_virsh "${uri}" start ${uuid} > /dev/null |
306 |
- done <"${gueststatefile}" |
307 |
- eend 0 |
308 |
-} |
309 |
- |
310 |
-stop() { |
311 |
- local counter= |
312 |
- local dom_name= |
313 |
- local net_name= |
314 |
- local dom_ids= |
315 |
- local uuid= |
316 |
- local dom_count= |
317 |
- |
318 |
- rm -f "${gueststatefile}" |
319 |
- [ $? -ne 0 ] && eerror "Unable to save domain state" |
320 |
- rm -f "${netstatefile}" |
321 |
- [ $? -ne 0 ] && eerror "Unable to save net state" |
322 |
- |
323 |
- for uri in ${LIBVIRT_URIS}; do |
324 |
- einfo "Stopping libvirt domains and networks for ${uri}" |
325 |
- |
326 |
- libvirtd_dom_stop "${uri}" "--persistent" |
327 |
- libvirtd_dom_stop "${uri}" "--transient" |
328 |
- libvirtd_net_stop "${uri}" "--persistent" |
329 |
- libvirtd_net_stop "${uri}" "--transient" |
330 |
- |
331 |
- einfo "Done stopping domains and networks for ${uri}" |
332 |
- done |
333 |
-} |
334 |
|
335 |
diff --git a/app-emulation/libvirt/files/libvirtd.init-r15 b/app-emulation/libvirt/files/libvirtd.init-r15 |
336 |
deleted file mode 100644 |
337 |
index 25224601d7f..00000000000 |
338 |
--- a/app-emulation/libvirt/files/libvirtd.init-r15 |
339 |
+++ /dev/null |
340 |
@@ -1,37 +0,0 @@ |
341 |
-#!/sbin/openrc-run |
342 |
-# Copyright 1999-2015 Gentoo Foundation |
343 |
-# Distributed under the terms of the GNU General Public License v2 |
344 |
- |
345 |
-description="Virtual Machine Management daemon (libvirt)" |
346 |
- |
347 |
-LIBVIRTD_OPTS=${LIBVIRTD_OPTS:-"${LIBVIRTD_OPTS}"} |
348 |
-LIBVIRTD_TIMEOUT=${LIBVIRTD_TERMTIMEOUT:-"TERM/25/KILL/5"} |
349 |
- |
350 |
-command="/usr/sbin/libvirtd" |
351 |
-command_args="-d ${LIBVIRTD_OPTS}" |
352 |
-start_stop_daemon_args="--env KRB5_KTNAME=/etc/libvirt/krb5.tab" |
353 |
-pidfile="/var/run/libvirtd.pid" |
354 |
-retry="${LIBVIRTD_TERMTIMEOUT}" |
355 |
- |
356 |
-depend() { |
357 |
- USE_FLAG_FIREWALLD |
358 |
- use USE_FLAG_AVAHI USE_FLAG_ISCSI USE_FLAG_RBD dbus virtlockd |
359 |
- after ntp-client ntpd nfs nfsmount portmap rpc.statd iptables ip6tables ebtables corosync sanlock cgconfig xenconsoled |
360 |
-} |
361 |
- |
362 |
-start_pre() { |
363 |
- # Test configuration directories in /etc/libvirt/ to be either not |
364 |
- # present or a directory, i.e. not a regular file, bug #532892 |
365 |
- local has_errors=0 |
366 |
- ebegin "Checking for suitable directories in \"/etc/libvirt\"" |
367 |
- |
368 |
- for dir in lxc nwfilter qemu storage; do |
369 |
- if [ -f /etc/libvirt/$dir ]; then |
370 |
- has_errors=1 |
371 |
- eerror "/etc/libvirt/$dir was created as a regular file. It must be either" |
372 |
- eerror "a directory or not present for libvirtd to start up successfully." |
373 |
- fi |
374 |
- done |
375 |
- |
376 |
- eend ${has_errors} "Please correct the error(s) above" |
377 |
-} |
378 |
|
379 |
diff --git a/app-emulation/libvirt/libvirt-3.2.0.ebuild b/app-emulation/libvirt/libvirt-3.2.0.ebuild |
380 |
deleted file mode 100644 |
381 |
index 66c3fa5acfb..00000000000 |
382 |
--- a/app-emulation/libvirt/libvirt-3.2.0.ebuild |
383 |
+++ /dev/null |
384 |
@@ -1,382 +0,0 @@ |
385 |
-# Copyright 1999-2017 Gentoo Foundation |
386 |
-# Distributed under the terms of the GNU General Public License v2 |
387 |
- |
388 |
-EAPI=6 |
389 |
- |
390 |
-inherit autotools eutils user linux-info systemd readme.gentoo-r1 |
391 |
- |
392 |
-if [[ ${PV} = *9999* ]]; then |
393 |
- inherit git-r3 |
394 |
- EGIT_REPO_URI="git://libvirt.org/libvirt.git" |
395 |
- SRC_URI="" |
396 |
- KEYWORDS="amd64 x86" |
397 |
- SLOT="0" |
398 |
-else |
399 |
- # Versions with 4 numbers are stable updates: |
400 |
- if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then |
401 |
- SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz" |
402 |
- else |
403 |
- SRC_URI="http://libvirt.org/sources/${P}.tar.xz" |
404 |
- fi |
405 |
- KEYWORDS="amd64 x86" |
406 |
- SLOT="0/${PV}" |
407 |
-fi |
408 |
- |
409 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
410 |
-HOMEPAGE="http://www.libvirt.org/" |
411 |
-LICENSE="LGPL-2.1" |
412 |
-IUSE=" |
413 |
- apparmor audit +caps +dbus firewalld fuse glusterfs iscsi +libvirtd lvm |
414 |
- libssh lxc +macvtap nfs nls numa openvz parted pcap phyp policykit |
415 |
- +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network |
416 |
- wireshark-plugins xen zeroconf zfs elibc_glibc |
417 |
-" |
418 |
- |
419 |
-REQUIRED_USE=" |
420 |
- firewalld? ( virt-network ) |
421 |
- libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) |
422 |
- lxc? ( caps libvirtd ) |
423 |
- openvz? ( libvirtd ) |
424 |
- policykit? ( dbus ) |
425 |
- qemu? ( libvirtd ) |
426 |
- uml? ( libvirtd ) |
427 |
- vepa? ( macvtap ) |
428 |
- virt-network? ( libvirtd ) |
429 |
- virtualbox? ( libvirtd ) |
430 |
- xen? ( libvirtd )" |
431 |
- |
432 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
433 |
-# non-optional, so put it into RDEPEND. |
434 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
435 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
436 |
-# we must go with the most recent |
437 |
-RDEPEND=" |
438 |
- app-misc/scrub |
439 |
- dev-libs/libgcrypt:0 |
440 |
- dev-libs/libnl:3 |
441 |
- >=dev-libs/libxml2-2.7.6 |
442 |
- || ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 ) |
443 |
- >=net-libs/gnutls-1.0.25:0= |
444 |
- net-libs/libssh2 |
445 |
- >=net-misc/curl-7.18.0 |
446 |
- sys-apps/dmidecode |
447 |
- >=sys-apps/util-linux-2.17 |
448 |
- sys-devel/gettext |
449 |
- sys-libs/ncurses:0= |
450 |
- sys-libs/readline:= |
451 |
- apparmor? ( sys-libs/libapparmor ) |
452 |
- audit? ( sys-process/audit ) |
453 |
- caps? ( sys-libs/libcap-ng ) |
454 |
- dbus? ( sys-apps/dbus ) |
455 |
- elibc_glibc? ( sys-libs/glibc[rpc(+)] ) |
456 |
- firewalld? ( net-firewall/firewalld ) |
457 |
- fuse? ( >=sys-fs/fuse-2.8.6 ) |
458 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
459 |
- iscsi? ( sys-block/open-iscsi ) |
460 |
- libssh? ( net-libs/libssh ) |
461 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
462 |
- nfs? ( net-fs/nfs-utils ) |
463 |
- numa? ( |
464 |
- >sys-process/numactl-2.0.2 |
465 |
- sys-process/numad |
466 |
- ) |
467 |
- openvz? ( sys-kernel/openvz-sources:* ) |
468 |
- parted? ( |
469 |
- >=sys-block/parted-1.8[device-mapper] |
470 |
- sys-fs/lvm2[-device-mapper-only(-)] |
471 |
- ) |
472 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
473 |
- policykit? ( >=sys-auth/polkit-0.9 ) |
474 |
- qemu? ( |
475 |
- >=app-emulation/qemu-0.13.0 |
476 |
- dev-libs/yajl |
477 |
- ) |
478 |
- rbd? ( sys-cluster/ceph ) |
479 |
- sasl? ( dev-libs/cyrus-sasl ) |
480 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
481 |
- virt-network? ( |
482 |
- net-dns/dnsmasq[script] |
483 |
- net-firewall/ebtables |
484 |
- >=net-firewall/iptables-1.4.10[ipv6] |
485 |
- net-misc/radvd |
486 |
- sys-apps/iproute2[-minimal] |
487 |
- ) |
488 |
- virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) |
489 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
490 |
- xen? ( |
491 |
- app-emulation/xen |
492 |
- app-emulation/xen-tools:= |
493 |
- ) |
494 |
- udev? ( |
495 |
- virtual/udev |
496 |
- >=x11-libs/libpciaccess-0.10.9 |
497 |
- ) |
498 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
499 |
- zfs? ( sys-fs/zfs )" |
500 |
- |
501 |
-DEPEND="${RDEPEND} |
502 |
- app-text/xhtml1 |
503 |
- dev-lang/perl |
504 |
- dev-libs/libxslt |
505 |
- dev-perl/XML-XPath |
506 |
- virtual/pkgconfig" |
507 |
- |
508 |
-PATCHES=( |
509 |
- "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch |
510 |
- "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch |
511 |
- "${FILESDIR}"/${PN}-3.0.0-fix_paths_for_apparmor.patch |
512 |
- "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch |
513 |
- "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488 |
514 |
-) |
515 |
- |
516 |
-pkg_setup() { |
517 |
- if use qemu; then |
518 |
- enewgroup qemu 77 |
519 |
- enewuser qemu 77 -1 -1 "qemu,kvm" |
520 |
- fi |
521 |
- |
522 |
- use policykit && enewgroup libvirt |
523 |
- |
524 |
- # Check kernel configuration: |
525 |
- CONFIG_CHECK="" |
526 |
- use fuse && CONFIG_CHECK+=" |
527 |
- ~FUSE_FS" |
528 |
- |
529 |
- use lvm && CONFIG_CHECK+=" |
530 |
- ~BLK_DEV_DM |
531 |
- ~DM_MULTIPATH |
532 |
- ~DM_SNAPSHOT" |
533 |
- |
534 |
- use lxc && CONFIG_CHECK+=" |
535 |
- ~BLK_CGROUP |
536 |
- ~CGROUP_CPUACCT |
537 |
- ~CGROUP_DEVICE |
538 |
- ~CGROUP_FREEZER |
539 |
- ~CGROUP_NET_PRIO |
540 |
- ~CGROUP_PERF |
541 |
- ~CGROUPS |
542 |
- ~CGROUP_SCHED |
543 |
- ~CPUSETS |
544 |
- ~IPC_NS |
545 |
- ~MACVLAN |
546 |
- ~NAMESPACES |
547 |
- ~NET_CLS_CGROUP |
548 |
- ~NET_NS |
549 |
- ~PID_NS |
550 |
- ~POSIX_MQUEUE |
551 |
- ~SECURITYFS |
552 |
- ~USER_NS |
553 |
- ~UTS_NS |
554 |
- ~VETH |
555 |
- ~!GRKERNSEC_CHROOT_MOUNT |
556 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
557 |
- ~!GRKERNSEC_CHROOT_PIVOT |
558 |
- ~!GRKERNSEC_CHROOT_CHMOD |
559 |
- ~!GRKERNSEC_CHROOT_CAPS" |
560 |
- |
561 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
562 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
563 |
- |
564 |
- use macvtap && CONFIG_CHECK+=" |
565 |
- ~MACVTAP" |
566 |
- |
567 |
- use virt-network && CONFIG_CHECK+=" |
568 |
- ~BRIDGE_EBT_MARK_T |
569 |
- ~BRIDGE_NF_EBTABLES |
570 |
- ~NETFILTER_ADVANCED |
571 |
- ~NETFILTER_XT_CONNMARK |
572 |
- ~NETFILTER_XT_MARK |
573 |
- ~NETFILTER_XT_TARGET_CHECKSUM" |
574 |
- # Bandwidth Limiting Support |
575 |
- use virt-network && CONFIG_CHECK+=" |
576 |
- ~BRIDGE_EBT_T_NAT |
577 |
- ~NET_ACT_POLICE |
578 |
- ~NET_CLS_FW |
579 |
- ~NET_CLS_U32 |
580 |
- ~NET_SCH_HTB |
581 |
- ~NET_SCH_INGRESS |
582 |
- ~NET_SCH_SFQ" |
583 |
- |
584 |
- # Handle specific kernel versions for different features |
585 |
- kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" |
586 |
- if kernel_is ge 3 6; then |
587 |
- CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP " |
588 |
- kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM " |
589 |
- fi |
590 |
- |
591 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
592 |
- |
593 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
594 |
- linux-info_pkg_setup |
595 |
- fi |
596 |
-} |
597 |
- |
598 |
-src_prepare() { |
599 |
- touch "${S}/.mailmap" |
600 |
- |
601 |
- default |
602 |
- |
603 |
- if [[ ${PV} = *9999* ]]; then |
604 |
- # git checkouts require bootstrapping to create the configure script. |
605 |
- # Additionally the submodules must be cloned to the right locations |
606 |
- # bug #377279 |
607 |
- ./bootstrap || die "bootstrap failed" |
608 |
- ( |
609 |
- git submodule status | sed 's/^[ +-]//;s/ .*//' |
610 |
- git hash-object bootstrap.conf |
611 |
- ) >.git-module-status |
612 |
- fi |
613 |
- |
614 |
- # Tweak the init script: |
615 |
- cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die |
616 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
617 |
- -e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \ |
618 |
- -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \ |
619 |
- -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \ |
620 |
- -i "${S}/libvirtd.init" || die "sed failed" |
621 |
- |
622 |
- eautoreconf |
623 |
-} |
624 |
- |
625 |
-src_configure() { |
626 |
- local myeconfargs=( |
627 |
- $(use_with apparmor) |
628 |
- $(use_with apparmor apparmor-profiles) |
629 |
- $(use_with audit) |
630 |
- $(use_with caps capng) |
631 |
- $(use_with dbus) |
632 |
- $(use_with firewalld) |
633 |
- $(use_with fuse) |
634 |
- $(use_with glusterfs) |
635 |
- $(use_with glusterfs storage-gluster) |
636 |
- $(use_with iscsi storage-iscsi) |
637 |
- $(use_with libvirtd) |
638 |
- $(use_with libssh) |
639 |
- $(use_with lvm storage-lvm) |
640 |
- $(use_with lvm storage-mpath) |
641 |
- $(use_with lxc) |
642 |
- $(use_with macvtap) |
643 |
- $(use_enable nls) |
644 |
- $(use_with numa numactl) |
645 |
- $(use_with numa numad) |
646 |
- $(use_with openvz) |
647 |
- $(use_with parted storage-disk) |
648 |
- $(use_with pcap libpcap) |
649 |
- $(use_with phyp) |
650 |
- $(use_with policykit polkit) |
651 |
- $(use_with qemu) |
652 |
- $(use_with qemu yajl) |
653 |
- $(use_with rbd storage-rbd) |
654 |
- $(use_with sasl) |
655 |
- $(use_with selinux) |
656 |
- $(use_with udev) |
657 |
- $(use_with uml) |
658 |
- $(use_with vepa virtualport) |
659 |
- $(use_with virt-network network) |
660 |
- $(use_with wireshark-plugins wireshark-dissector) |
661 |
- $(use_with xen) |
662 |
- $(use_with xen xen-inotify) |
663 |
- $(use_with xen libxl) |
664 |
- $(use_with zeroconf avahi) |
665 |
- $(use_with zfs storage-zfs) |
666 |
- |
667 |
- --without-hal |
668 |
- --without-netcf |
669 |
- --without-sanlock |
670 |
- --without-xenapi |
671 |
- |
672 |
- --with-esx |
673 |
- --with-init-script=systemd |
674 |
- --with-qemu-group=$(usex caps qemu root) |
675 |
- --with-qemu-user=$(usex caps qemu root) |
676 |
- --with-remote |
677 |
- --with-storage-fs |
678 |
- --with-vmware |
679 |
- |
680 |
- --disable-static |
681 |
- --disable-werror |
682 |
- |
683 |
- --with-html-subdir=${PF}/html |
684 |
- --localstatedir=/var |
685 |
- ) |
686 |
- |
687 |
- if use virtualbox && has_version app-emulation/virtualbox-ose; then |
688 |
- myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ ) |
689 |
- else |
690 |
- myeconfargs+=( $(use_with virtualbox vbox) ) |
691 |
- fi |
692 |
- |
693 |
- econf "${myeconfargs[@]}" |
694 |
- |
695 |
- if [[ ${PV} = *9999* ]]; then |
696 |
- # Restore gnulib's config.sub and config.guess |
697 |
- # bug #377279 |
698 |
- (cd .gnulib && git reset --hard > /dev/null) |
699 |
- fi |
700 |
-} |
701 |
- |
702 |
-src_test() { |
703 |
- cd "${BUILD_DIR}" |
704 |
- |
705 |
- # remove problematic tests, bug #591416, bug #591418 |
706 |
- sed -i -e 's#commandtest$(EXEEXT) # #' \ |
707 |
- -e 's#virfirewalltest$(EXEEXT) # #' \ |
708 |
- -e 's#nwfilterebiptablestest$(EXEEXT) # #' \ |
709 |
- -e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \ |
710 |
- tests/Makefile |
711 |
- |
712 |
- export VIR_TEST_DEBUG=1 |
713 |
- HOME="${T}" emake check || die "tests failed" |
714 |
-} |
715 |
- |
716 |
-src_install() { |
717 |
- emake DESTDIR="${D}" \ |
718 |
- SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install |
719 |
- |
720 |
- find "${D}" -name '*.la' -delete || die |
721 |
- |
722 |
- # Remove bogus, empty directories. They are either not used, or |
723 |
- # libvirtd is able to create them on demand |
724 |
- rm -rf "${D}"/etc/sysconfig |
725 |
- rm -rf "${D}"/var/cache |
726 |
- rm -rf "${D}"/var/run |
727 |
- rm -rf "${D}"/var/log |
728 |
- |
729 |
- use libvirtd || return 0 |
730 |
- # From here, only libvirtd-related instructions, be warned! |
731 |
- |
732 |
- systemd_install_serviced \ |
733 |
- "${FILESDIR}"/libvirtd.service.conf libvirtd.service |
734 |
- |
735 |
- systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
736 |
- |
737 |
- newinitd "${S}/libvirtd.init" libvirtd || die |
738 |
- newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die |
739 |
- newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
740 |
- newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die |
741 |
- |
742 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
743 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die |
744 |
- |
745 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2") |
746 |
- DISABLE_AUTOFORMATTING=true |
747 |
- readme.gentoo_create_doc |
748 |
-} |
749 |
- |
750 |
-pkg_preinst() { |
751 |
- # we only ever want to generate this once |
752 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
753 |
- rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
754 |
- fi |
755 |
-} |
756 |
- |
757 |
-pkg_postinst() { |
758 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
759 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml |
760 |
- fi |
761 |
- |
762 |
- use libvirtd || return 0 |
763 |
- # From here, only libvirtd-related instructions, be warned! |
764 |
- |
765 |
- readme.gentoo_print_elog |
766 |
-} |
767 |
|
768 |
diff --git a/app-emulation/libvirt/libvirt-3.4.0.ebuild b/app-emulation/libvirt/libvirt-3.4.0.ebuild |
769 |
deleted file mode 100644 |
770 |
index b3ab8a5a259..00000000000 |
771 |
--- a/app-emulation/libvirt/libvirt-3.4.0.ebuild |
772 |
+++ /dev/null |
773 |
@@ -1,382 +0,0 @@ |
774 |
-# Copyright 1999-2017 Gentoo Foundation |
775 |
-# Distributed under the terms of the GNU General Public License v2 |
776 |
- |
777 |
-EAPI=6 |
778 |
- |
779 |
-inherit autotools eutils user linux-info systemd readme.gentoo-r1 |
780 |
- |
781 |
-if [[ ${PV} = *9999* ]]; then |
782 |
- inherit git-r3 |
783 |
- EGIT_REPO_URI="git://libvirt.org/libvirt.git" |
784 |
- SRC_URI="" |
785 |
- KEYWORDS="" |
786 |
- SLOT="0" |
787 |
-else |
788 |
- # Versions with 4 numbers are stable updates: |
789 |
- if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then |
790 |
- SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz" |
791 |
- else |
792 |
- SRC_URI="http://libvirt.org/sources/${P}.tar.xz" |
793 |
- fi |
794 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
795 |
- SLOT="0/${PV}" |
796 |
-fi |
797 |
- |
798 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
799 |
-HOMEPAGE="http://www.libvirt.org/" |
800 |
-LICENSE="LGPL-2.1" |
801 |
-IUSE=" |
802 |
- apparmor audit +caps +dbus firewalld fuse glusterfs iscsi +libvirtd lvm |
803 |
- libssh lxc +macvtap nfs nls numa openvz parted pcap phyp policykit |
804 |
- +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network |
805 |
- wireshark-plugins xen zeroconf zfs elibc_glibc |
806 |
-" |
807 |
- |
808 |
-REQUIRED_USE=" |
809 |
- firewalld? ( virt-network ) |
810 |
- libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) |
811 |
- lxc? ( caps libvirtd ) |
812 |
- openvz? ( libvirtd ) |
813 |
- policykit? ( dbus ) |
814 |
- qemu? ( libvirtd ) |
815 |
- uml? ( libvirtd ) |
816 |
- vepa? ( macvtap ) |
817 |
- virt-network? ( libvirtd ) |
818 |
- virtualbox? ( libvirtd ) |
819 |
- xen? ( libvirtd )" |
820 |
- |
821 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
822 |
-# non-optional, so put it into RDEPEND. |
823 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
824 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
825 |
-# we must go with the most recent |
826 |
-RDEPEND=" |
827 |
- app-misc/scrub |
828 |
- dev-libs/libgcrypt:0 |
829 |
- dev-libs/libnl:3 |
830 |
- >=dev-libs/libxml2-2.7.6 |
831 |
- || ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 ) |
832 |
- >=net-libs/gnutls-1.0.25:0= |
833 |
- net-libs/libssh2 |
834 |
- >=net-misc/curl-7.18.0 |
835 |
- sys-apps/dmidecode |
836 |
- >=sys-apps/util-linux-2.17 |
837 |
- sys-devel/gettext |
838 |
- sys-libs/ncurses:0= |
839 |
- sys-libs/readline:= |
840 |
- apparmor? ( sys-libs/libapparmor ) |
841 |
- audit? ( sys-process/audit ) |
842 |
- caps? ( sys-libs/libcap-ng ) |
843 |
- dbus? ( sys-apps/dbus ) |
844 |
- elibc_glibc? ( sys-libs/glibc[rpc(+)] ) |
845 |
- firewalld? ( net-firewall/firewalld ) |
846 |
- fuse? ( >=sys-fs/fuse-2.8.6 ) |
847 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
848 |
- iscsi? ( sys-block/open-iscsi ) |
849 |
- libssh? ( net-libs/libssh ) |
850 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
851 |
- nfs? ( net-fs/nfs-utils ) |
852 |
- numa? ( |
853 |
- >sys-process/numactl-2.0.2 |
854 |
- sys-process/numad |
855 |
- ) |
856 |
- openvz? ( sys-kernel/openvz-sources:* ) |
857 |
- parted? ( |
858 |
- >=sys-block/parted-1.8[device-mapper] |
859 |
- sys-fs/lvm2[-device-mapper-only(-)] |
860 |
- ) |
861 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
862 |
- policykit? ( >=sys-auth/polkit-0.9 ) |
863 |
- qemu? ( |
864 |
- >=app-emulation/qemu-0.13.0 |
865 |
- dev-libs/yajl |
866 |
- ) |
867 |
- rbd? ( sys-cluster/ceph ) |
868 |
- sasl? ( dev-libs/cyrus-sasl ) |
869 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
870 |
- virt-network? ( |
871 |
- net-dns/dnsmasq[script] |
872 |
- net-firewall/ebtables |
873 |
- >=net-firewall/iptables-1.4.10[ipv6] |
874 |
- net-misc/radvd |
875 |
- sys-apps/iproute2[-minimal] |
876 |
- ) |
877 |
- virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) |
878 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
879 |
- xen? ( |
880 |
- app-emulation/xen |
881 |
- app-emulation/xen-tools:= |
882 |
- ) |
883 |
- udev? ( |
884 |
- virtual/udev |
885 |
- >=x11-libs/libpciaccess-0.10.9 |
886 |
- ) |
887 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
888 |
- zfs? ( sys-fs/zfs )" |
889 |
- |
890 |
-DEPEND="${RDEPEND} |
891 |
- app-text/xhtml1 |
892 |
- dev-lang/perl |
893 |
- dev-libs/libxslt |
894 |
- dev-perl/XML-XPath |
895 |
- virtual/pkgconfig" |
896 |
- |
897 |
-PATCHES=( |
898 |
- "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch |
899 |
- "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch |
900 |
- "${FILESDIR}"/${PN}-3.0.0-fix_paths_for_apparmor.patch |
901 |
- "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch |
902 |
- "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488 |
903 |
-) |
904 |
- |
905 |
-pkg_setup() { |
906 |
- if use qemu; then |
907 |
- enewgroup qemu 77 |
908 |
- enewuser qemu 77 -1 -1 "qemu,kvm" |
909 |
- fi |
910 |
- |
911 |
- use policykit && enewgroup libvirt |
912 |
- |
913 |
- # Check kernel configuration: |
914 |
- CONFIG_CHECK="" |
915 |
- use fuse && CONFIG_CHECK+=" |
916 |
- ~FUSE_FS" |
917 |
- |
918 |
- use lvm && CONFIG_CHECK+=" |
919 |
- ~BLK_DEV_DM |
920 |
- ~DM_MULTIPATH |
921 |
- ~DM_SNAPSHOT" |
922 |
- |
923 |
- use lxc && CONFIG_CHECK+=" |
924 |
- ~BLK_CGROUP |
925 |
- ~CGROUP_CPUACCT |
926 |
- ~CGROUP_DEVICE |
927 |
- ~CGROUP_FREEZER |
928 |
- ~CGROUP_NET_PRIO |
929 |
- ~CGROUP_PERF |
930 |
- ~CGROUPS |
931 |
- ~CGROUP_SCHED |
932 |
- ~CPUSETS |
933 |
- ~IPC_NS |
934 |
- ~MACVLAN |
935 |
- ~NAMESPACES |
936 |
- ~NET_CLS_CGROUP |
937 |
- ~NET_NS |
938 |
- ~PID_NS |
939 |
- ~POSIX_MQUEUE |
940 |
- ~SECURITYFS |
941 |
- ~USER_NS |
942 |
- ~UTS_NS |
943 |
- ~VETH |
944 |
- ~!GRKERNSEC_CHROOT_MOUNT |
945 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
946 |
- ~!GRKERNSEC_CHROOT_PIVOT |
947 |
- ~!GRKERNSEC_CHROOT_CHMOD |
948 |
- ~!GRKERNSEC_CHROOT_CAPS" |
949 |
- |
950 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
951 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
952 |
- |
953 |
- use macvtap && CONFIG_CHECK+=" |
954 |
- ~MACVTAP" |
955 |
- |
956 |
- use virt-network && CONFIG_CHECK+=" |
957 |
- ~BRIDGE_EBT_MARK_T |
958 |
- ~BRIDGE_NF_EBTABLES |
959 |
- ~NETFILTER_ADVANCED |
960 |
- ~NETFILTER_XT_CONNMARK |
961 |
- ~NETFILTER_XT_MARK |
962 |
- ~NETFILTER_XT_TARGET_CHECKSUM" |
963 |
- # Bandwidth Limiting Support |
964 |
- use virt-network && CONFIG_CHECK+=" |
965 |
- ~BRIDGE_EBT_T_NAT |
966 |
- ~NET_ACT_POLICE |
967 |
- ~NET_CLS_FW |
968 |
- ~NET_CLS_U32 |
969 |
- ~NET_SCH_HTB |
970 |
- ~NET_SCH_INGRESS |
971 |
- ~NET_SCH_SFQ" |
972 |
- |
973 |
- # Handle specific kernel versions for different features |
974 |
- kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" |
975 |
- if kernel_is ge 3 6; then |
976 |
- CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP " |
977 |
- kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM " |
978 |
- fi |
979 |
- |
980 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
981 |
- |
982 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
983 |
- linux-info_pkg_setup |
984 |
- fi |
985 |
-} |
986 |
- |
987 |
-src_prepare() { |
988 |
- touch "${S}/.mailmap" |
989 |
- |
990 |
- default |
991 |
- |
992 |
- if [[ ${PV} = *9999* ]]; then |
993 |
- # git checkouts require bootstrapping to create the configure script. |
994 |
- # Additionally the submodules must be cloned to the right locations |
995 |
- # bug #377279 |
996 |
- ./bootstrap || die "bootstrap failed" |
997 |
- ( |
998 |
- git submodule status | sed 's/^[ +-]//;s/ .*//' |
999 |
- git hash-object bootstrap.conf |
1000 |
- ) >.git-module-status |
1001 |
- fi |
1002 |
- |
1003 |
- # Tweak the init script: |
1004 |
- cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die |
1005 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
1006 |
- -e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \ |
1007 |
- -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \ |
1008 |
- -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \ |
1009 |
- -i "${S}/libvirtd.init" || die "sed failed" |
1010 |
- |
1011 |
- eautoreconf |
1012 |
-} |
1013 |
- |
1014 |
-src_configure() { |
1015 |
- local myeconfargs=( |
1016 |
- $(use_with apparmor) |
1017 |
- $(use_with apparmor apparmor-profiles) |
1018 |
- $(use_with audit) |
1019 |
- $(use_with caps capng) |
1020 |
- $(use_with dbus) |
1021 |
- $(use_with firewalld) |
1022 |
- $(use_with fuse) |
1023 |
- $(use_with glusterfs) |
1024 |
- $(use_with glusterfs storage-gluster) |
1025 |
- $(use_with iscsi storage-iscsi) |
1026 |
- $(use_with libvirtd) |
1027 |
- $(use_with libssh) |
1028 |
- $(use_with lvm storage-lvm) |
1029 |
- $(use_with lvm storage-mpath) |
1030 |
- $(use_with lxc) |
1031 |
- $(use_with macvtap) |
1032 |
- $(use_enable nls) |
1033 |
- $(use_with numa numactl) |
1034 |
- $(use_with numa numad) |
1035 |
- $(use_with openvz) |
1036 |
- $(use_with parted storage-disk) |
1037 |
- $(use_with pcap libpcap) |
1038 |
- $(use_with phyp) |
1039 |
- $(use_with policykit polkit) |
1040 |
- $(use_with qemu) |
1041 |
- $(use_with qemu yajl) |
1042 |
- $(use_with rbd storage-rbd) |
1043 |
- $(use_with sasl) |
1044 |
- $(use_with selinux) |
1045 |
- $(use_with udev) |
1046 |
- $(use_with uml) |
1047 |
- $(use_with vepa virtualport) |
1048 |
- $(use_with virt-network network) |
1049 |
- $(use_with wireshark-plugins wireshark-dissector) |
1050 |
- $(use_with xen) |
1051 |
- $(use_with xen xen-inotify) |
1052 |
- $(use_with xen libxl) |
1053 |
- $(use_with zeroconf avahi) |
1054 |
- $(use_with zfs storage-zfs) |
1055 |
- |
1056 |
- --without-hal |
1057 |
- --without-netcf |
1058 |
- --without-sanlock |
1059 |
- --without-xenapi |
1060 |
- |
1061 |
- --with-esx |
1062 |
- --with-init-script=systemd |
1063 |
- --with-qemu-group=$(usex caps qemu root) |
1064 |
- --with-qemu-user=$(usex caps qemu root) |
1065 |
- --with-remote |
1066 |
- --with-storage-fs |
1067 |
- --with-vmware |
1068 |
- |
1069 |
- --disable-static |
1070 |
- --disable-werror |
1071 |
- |
1072 |
- --with-html-subdir=${PF}/html |
1073 |
- --localstatedir=/var |
1074 |
- ) |
1075 |
- |
1076 |
- if use virtualbox && has_version app-emulation/virtualbox-ose; then |
1077 |
- myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ ) |
1078 |
- else |
1079 |
- myeconfargs+=( $(use_with virtualbox vbox) ) |
1080 |
- fi |
1081 |
- |
1082 |
- econf "${myeconfargs[@]}" |
1083 |
- |
1084 |
- if [[ ${PV} = *9999* ]]; then |
1085 |
- # Restore gnulib's config.sub and config.guess |
1086 |
- # bug #377279 |
1087 |
- (cd .gnulib && git reset --hard > /dev/null) |
1088 |
- fi |
1089 |
-} |
1090 |
- |
1091 |
-src_test() { |
1092 |
- cd "${BUILD_DIR}" |
1093 |
- |
1094 |
- # remove problematic tests, bug #591416, bug #591418 |
1095 |
- sed -i -e 's#commandtest$(EXEEXT) # #' \ |
1096 |
- -e 's#virfirewalltest$(EXEEXT) # #' \ |
1097 |
- -e 's#nwfilterebiptablestest$(EXEEXT) # #' \ |
1098 |
- -e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \ |
1099 |
- tests/Makefile |
1100 |
- |
1101 |
- export VIR_TEST_DEBUG=1 |
1102 |
- HOME="${T}" emake check || die "tests failed" |
1103 |
-} |
1104 |
- |
1105 |
-src_install() { |
1106 |
- emake DESTDIR="${D}" \ |
1107 |
- SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install |
1108 |
- |
1109 |
- find "${D}" -name '*.la' -delete || die |
1110 |
- |
1111 |
- # Remove bogus, empty directories. They are either not used, or |
1112 |
- # libvirtd is able to create them on demand |
1113 |
- rm -rf "${D}"/etc/sysconfig |
1114 |
- rm -rf "${D}"/var/cache |
1115 |
- rm -rf "${D}"/var/run |
1116 |
- rm -rf "${D}"/var/log |
1117 |
- |
1118 |
- use libvirtd || return 0 |
1119 |
- # From here, only libvirtd-related instructions, be warned! |
1120 |
- |
1121 |
- systemd_install_serviced \ |
1122 |
- "${FILESDIR}"/libvirtd.service.conf libvirtd.service |
1123 |
- |
1124 |
- systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
1125 |
- |
1126 |
- newinitd "${S}/libvirtd.init" libvirtd || die |
1127 |
- newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die |
1128 |
- newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
1129 |
- newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die |
1130 |
- |
1131 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
1132 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die |
1133 |
- |
1134 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2") |
1135 |
- DISABLE_AUTOFORMATTING=true |
1136 |
- readme.gentoo_create_doc |
1137 |
-} |
1138 |
- |
1139 |
-pkg_preinst() { |
1140 |
- # we only ever want to generate this once |
1141 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1142 |
- rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
1143 |
- fi |
1144 |
-} |
1145 |
- |
1146 |
-pkg_postinst() { |
1147 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1148 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml |
1149 |
- fi |
1150 |
- |
1151 |
- use libvirtd || return 0 |
1152 |
- # From here, only libvirtd-related instructions, be warned! |
1153 |
- |
1154 |
- readme.gentoo_print_elog |
1155 |
-} |
1156 |
|
1157 |
diff --git a/app-emulation/libvirt/libvirt-3.5.0.ebuild b/app-emulation/libvirt/libvirt-3.5.0.ebuild |
1158 |
deleted file mode 100644 |
1159 |
index d6701791e37..00000000000 |
1160 |
--- a/app-emulation/libvirt/libvirt-3.5.0.ebuild |
1161 |
+++ /dev/null |
1162 |
@@ -1,382 +0,0 @@ |
1163 |
-# Copyright 1999-2017 Gentoo Foundation |
1164 |
-# Distributed under the terms of the GNU General Public License v2 |
1165 |
- |
1166 |
-EAPI=6 |
1167 |
- |
1168 |
-inherit autotools eutils user linux-info systemd readme.gentoo-r1 |
1169 |
- |
1170 |
-if [[ ${PV} = *9999* ]]; then |
1171 |
- inherit git-r3 |
1172 |
- EGIT_REPO_URI="git://libvirt.org/libvirt.git" |
1173 |
- SRC_URI="" |
1174 |
- KEYWORDS="" |
1175 |
- SLOT="0" |
1176 |
-else |
1177 |
- # Versions with 4 numbers are stable updates: |
1178 |
- if [[ ${PV} =~ ^[0-9]+(\.[0-9]+){3} ]]; then |
1179 |
- SRC_URI="http://libvirt.org/sources/stable_updates/${P}.tar.xz" |
1180 |
- else |
1181 |
- SRC_URI="http://libvirt.org/sources/${P}.tar.xz" |
1182 |
- fi |
1183 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
1184 |
- SLOT="0/${PV}" |
1185 |
-fi |
1186 |
- |
1187 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
1188 |
-HOMEPAGE="http://www.libvirt.org/" |
1189 |
-LICENSE="LGPL-2.1" |
1190 |
-IUSE=" |
1191 |
- apparmor audit +caps +dbus firewalld fuse glusterfs iscsi +libvirtd lvm |
1192 |
- libssh lxc +macvtap nfs nls numa openvz parted pcap phyp policykit |
1193 |
- +qemu rbd sasl selinux +udev uml +vepa virtualbox virt-network |
1194 |
- wireshark-plugins xen zeroconf zfs elibc_glibc |
1195 |
-" |
1196 |
- |
1197 |
-REQUIRED_USE=" |
1198 |
- firewalld? ( virt-network ) |
1199 |
- libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) ) |
1200 |
- lxc? ( caps libvirtd ) |
1201 |
- openvz? ( libvirtd ) |
1202 |
- policykit? ( dbus ) |
1203 |
- qemu? ( libvirtd ) |
1204 |
- uml? ( libvirtd ) |
1205 |
- vepa? ( macvtap ) |
1206 |
- virt-network? ( libvirtd ) |
1207 |
- virtualbox? ( libvirtd ) |
1208 |
- xen? ( libvirtd )" |
1209 |
- |
1210 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
1211 |
-# non-optional, so put it into RDEPEND. |
1212 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
1213 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
1214 |
-# we must go with the most recent |
1215 |
-RDEPEND=" |
1216 |
- app-misc/scrub |
1217 |
- dev-libs/libgcrypt:0 |
1218 |
- dev-libs/libnl:3 |
1219 |
- >=dev-libs/libxml2-2.7.6 |
1220 |
- || ( >=net-analyzer/netcat6-1.0-r2 >=net-analyzer/openbsd-netcat-1.105-r1 ) |
1221 |
- >=net-libs/gnutls-1.0.25:0= |
1222 |
- net-libs/libssh2 |
1223 |
- >=net-misc/curl-7.18.0 |
1224 |
- sys-apps/dmidecode |
1225 |
- >=sys-apps/util-linux-2.17 |
1226 |
- sys-devel/gettext |
1227 |
- sys-libs/ncurses:0= |
1228 |
- sys-libs/readline:= |
1229 |
- apparmor? ( sys-libs/libapparmor ) |
1230 |
- audit? ( sys-process/audit ) |
1231 |
- caps? ( sys-libs/libcap-ng ) |
1232 |
- dbus? ( sys-apps/dbus ) |
1233 |
- elibc_glibc? ( sys-libs/glibc[rpc(+)] ) |
1234 |
- firewalld? ( net-firewall/firewalld ) |
1235 |
- fuse? ( >=sys-fs/fuse-2.8.6:= ) |
1236 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
1237 |
- iscsi? ( sys-block/open-iscsi ) |
1238 |
- libssh? ( net-libs/libssh ) |
1239 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
1240 |
- nfs? ( net-fs/nfs-utils ) |
1241 |
- numa? ( |
1242 |
- >sys-process/numactl-2.0.2 |
1243 |
- sys-process/numad |
1244 |
- ) |
1245 |
- openvz? ( sys-kernel/openvz-sources:* ) |
1246 |
- parted? ( |
1247 |
- >=sys-block/parted-1.8[device-mapper] |
1248 |
- sys-fs/lvm2[-device-mapper-only(-)] |
1249 |
- ) |
1250 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
1251 |
- policykit? ( >=sys-auth/polkit-0.9 ) |
1252 |
- qemu? ( |
1253 |
- >=app-emulation/qemu-0.13.0 |
1254 |
- dev-libs/yajl |
1255 |
- ) |
1256 |
- rbd? ( sys-cluster/ceph ) |
1257 |
- sasl? ( dev-libs/cyrus-sasl ) |
1258 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
1259 |
- virt-network? ( |
1260 |
- net-dns/dnsmasq[script] |
1261 |
- net-firewall/ebtables |
1262 |
- >=net-firewall/iptables-1.4.10[ipv6] |
1263 |
- net-misc/radvd |
1264 |
- sys-apps/iproute2[-minimal] |
1265 |
- ) |
1266 |
- virtualbox? ( || ( app-emulation/virtualbox >=app-emulation/virtualbox-bin-2.2.0 ) ) |
1267 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
1268 |
- xen? ( |
1269 |
- app-emulation/xen |
1270 |
- app-emulation/xen-tools:= |
1271 |
- ) |
1272 |
- udev? ( |
1273 |
- virtual/udev |
1274 |
- >=x11-libs/libpciaccess-0.10.9 |
1275 |
- ) |
1276 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
1277 |
- zfs? ( sys-fs/zfs )" |
1278 |
- |
1279 |
-DEPEND="${RDEPEND} |
1280 |
- app-text/xhtml1 |
1281 |
- dev-lang/perl |
1282 |
- dev-libs/libxslt |
1283 |
- dev-perl/XML-XPath |
1284 |
- virtual/pkgconfig" |
1285 |
- |
1286 |
-PATCHES=( |
1287 |
- "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch |
1288 |
- "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch |
1289 |
- "${FILESDIR}"/${PN}-3.0.0-fix_paths_for_apparmor.patch |
1290 |
- "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch |
1291 |
- "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488 |
1292 |
-) |
1293 |
- |
1294 |
-pkg_setup() { |
1295 |
- if use qemu; then |
1296 |
- enewgroup qemu 77 |
1297 |
- enewuser qemu 77 -1 -1 "qemu,kvm" |
1298 |
- fi |
1299 |
- |
1300 |
- use policykit && enewgroup libvirt |
1301 |
- |
1302 |
- # Check kernel configuration: |
1303 |
- CONFIG_CHECK="" |
1304 |
- use fuse && CONFIG_CHECK+=" |
1305 |
- ~FUSE_FS" |
1306 |
- |
1307 |
- use lvm && CONFIG_CHECK+=" |
1308 |
- ~BLK_DEV_DM |
1309 |
- ~DM_MULTIPATH |
1310 |
- ~DM_SNAPSHOT" |
1311 |
- |
1312 |
- use lxc && CONFIG_CHECK+=" |
1313 |
- ~BLK_CGROUP |
1314 |
- ~CGROUP_CPUACCT |
1315 |
- ~CGROUP_DEVICE |
1316 |
- ~CGROUP_FREEZER |
1317 |
- ~CGROUP_NET_PRIO |
1318 |
- ~CGROUP_PERF |
1319 |
- ~CGROUPS |
1320 |
- ~CGROUP_SCHED |
1321 |
- ~CPUSETS |
1322 |
- ~IPC_NS |
1323 |
- ~MACVLAN |
1324 |
- ~NAMESPACES |
1325 |
- ~NET_CLS_CGROUP |
1326 |
- ~NET_NS |
1327 |
- ~PID_NS |
1328 |
- ~POSIX_MQUEUE |
1329 |
- ~SECURITYFS |
1330 |
- ~USER_NS |
1331 |
- ~UTS_NS |
1332 |
- ~VETH |
1333 |
- ~!GRKERNSEC_CHROOT_MOUNT |
1334 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
1335 |
- ~!GRKERNSEC_CHROOT_PIVOT |
1336 |
- ~!GRKERNSEC_CHROOT_CHMOD |
1337 |
- ~!GRKERNSEC_CHROOT_CAPS" |
1338 |
- |
1339 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
1340 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
1341 |
- |
1342 |
- use macvtap && CONFIG_CHECK+=" |
1343 |
- ~MACVTAP" |
1344 |
- |
1345 |
- use virt-network && CONFIG_CHECK+=" |
1346 |
- ~BRIDGE_EBT_MARK_T |
1347 |
- ~BRIDGE_NF_EBTABLES |
1348 |
- ~NETFILTER_ADVANCED |
1349 |
- ~NETFILTER_XT_CONNMARK |
1350 |
- ~NETFILTER_XT_MARK |
1351 |
- ~NETFILTER_XT_TARGET_CHECKSUM" |
1352 |
- # Bandwidth Limiting Support |
1353 |
- use virt-network && CONFIG_CHECK+=" |
1354 |
- ~BRIDGE_EBT_T_NAT |
1355 |
- ~NET_ACT_POLICE |
1356 |
- ~NET_CLS_FW |
1357 |
- ~NET_CLS_U32 |
1358 |
- ~NET_SCH_HTB |
1359 |
- ~NET_SCH_INGRESS |
1360 |
- ~NET_SCH_SFQ" |
1361 |
- |
1362 |
- # Handle specific kernel versions for different features |
1363 |
- kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR" |
1364 |
- if kernel_is ge 3 6; then |
1365 |
- CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP " |
1366 |
- kernel_is lt 4 5 && CONFIG_CHECK+=" ~MEMCG_KMEM " |
1367 |
- fi |
1368 |
- |
1369 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
1370 |
- |
1371 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
1372 |
- linux-info_pkg_setup |
1373 |
- fi |
1374 |
-} |
1375 |
- |
1376 |
-src_prepare() { |
1377 |
- touch "${S}/.mailmap" |
1378 |
- |
1379 |
- default |
1380 |
- |
1381 |
- if [[ ${PV} = *9999* ]]; then |
1382 |
- # git checkouts require bootstrapping to create the configure script. |
1383 |
- # Additionally the submodules must be cloned to the right locations |
1384 |
- # bug #377279 |
1385 |
- ./bootstrap || die "bootstrap failed" |
1386 |
- ( |
1387 |
- git submodule status | sed 's/^[ +-]//;s/ .*//' |
1388 |
- git hash-object bootstrap.conf |
1389 |
- ) >.git-module-status |
1390 |
- fi |
1391 |
- |
1392 |
- # Tweak the init script: |
1393 |
- cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die |
1394 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
1395 |
- -e "s/USE_FLAG_AVAHI/$(usex zeroconf 'use avahi-daemon' '')/" \ |
1396 |
- -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \ |
1397 |
- -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \ |
1398 |
- -i "${S}/libvirtd.init" || die "sed failed" |
1399 |
- |
1400 |
- eautoreconf |
1401 |
-} |
1402 |
- |
1403 |
-src_configure() { |
1404 |
- local myeconfargs=( |
1405 |
- $(use_with apparmor) |
1406 |
- $(use_with apparmor apparmor-profiles) |
1407 |
- $(use_with audit) |
1408 |
- $(use_with caps capng) |
1409 |
- $(use_with dbus) |
1410 |
- $(use_with firewalld) |
1411 |
- $(use_with fuse) |
1412 |
- $(use_with glusterfs) |
1413 |
- $(use_with glusterfs storage-gluster) |
1414 |
- $(use_with iscsi storage-iscsi) |
1415 |
- $(use_with libvirtd) |
1416 |
- $(use_with libssh) |
1417 |
- $(use_with lvm storage-lvm) |
1418 |
- $(use_with lvm storage-mpath) |
1419 |
- $(use_with lxc) |
1420 |
- $(use_with macvtap) |
1421 |
- $(use_enable nls) |
1422 |
- $(use_with numa numactl) |
1423 |
- $(use_with numa numad) |
1424 |
- $(use_with openvz) |
1425 |
- $(use_with parted storage-disk) |
1426 |
- $(use_with pcap libpcap) |
1427 |
- $(use_with phyp) |
1428 |
- $(use_with policykit polkit) |
1429 |
- $(use_with qemu) |
1430 |
- $(use_with qemu yajl) |
1431 |
- $(use_with rbd storage-rbd) |
1432 |
- $(use_with sasl) |
1433 |
- $(use_with selinux) |
1434 |
- $(use_with udev) |
1435 |
- $(use_with uml) |
1436 |
- $(use_with vepa virtualport) |
1437 |
- $(use_with virt-network network) |
1438 |
- $(use_with wireshark-plugins wireshark-dissector) |
1439 |
- $(use_with xen) |
1440 |
- $(use_with xen xen-inotify) |
1441 |
- $(use_with xen libxl) |
1442 |
- $(use_with zeroconf avahi) |
1443 |
- $(use_with zfs storage-zfs) |
1444 |
- |
1445 |
- --without-hal |
1446 |
- --without-netcf |
1447 |
- --without-sanlock |
1448 |
- --without-xenapi |
1449 |
- |
1450 |
- --with-esx |
1451 |
- --with-init-script=systemd |
1452 |
- --with-qemu-group=$(usex caps qemu root) |
1453 |
- --with-qemu-user=$(usex caps qemu root) |
1454 |
- --with-remote |
1455 |
- --with-storage-fs |
1456 |
- --with-vmware |
1457 |
- |
1458 |
- --disable-static |
1459 |
- --disable-werror |
1460 |
- |
1461 |
- --with-html-subdir=${PF}/html |
1462 |
- --localstatedir=/var |
1463 |
- ) |
1464 |
- |
1465 |
- if use virtualbox && has_version app-emulation/virtualbox-ose; then |
1466 |
- myeconfargs+=( --with-vbox=/usr/lib/virtualbox-ose/ ) |
1467 |
- else |
1468 |
- myeconfargs+=( $(use_with virtualbox vbox) ) |
1469 |
- fi |
1470 |
- |
1471 |
- econf "${myeconfargs[@]}" |
1472 |
- |
1473 |
- if [[ ${PV} = *9999* ]]; then |
1474 |
- # Restore gnulib's config.sub and config.guess |
1475 |
- # bug #377279 |
1476 |
- (cd .gnulib && git reset --hard > /dev/null) |
1477 |
- fi |
1478 |
-} |
1479 |
- |
1480 |
-src_test() { |
1481 |
- cd "${BUILD_DIR}" |
1482 |
- |
1483 |
- # remove problematic tests, bug #591416, bug #591418 |
1484 |
- sed -i -e 's#commandtest$(EXEEXT) # #' \ |
1485 |
- -e 's#virfirewalltest$(EXEEXT) # #' \ |
1486 |
- -e 's#nwfilterebiptablestest$(EXEEXT) # #' \ |
1487 |
- -e 's#nwfilterxml2firewalltest$(EXEEXT)$##' \ |
1488 |
- tests/Makefile |
1489 |
- |
1490 |
- export VIR_TEST_DEBUG=1 |
1491 |
- HOME="${T}" emake check || die "tests failed" |
1492 |
-} |
1493 |
- |
1494 |
-src_install() { |
1495 |
- emake DESTDIR="${D}" \ |
1496 |
- SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install |
1497 |
- |
1498 |
- find "${D}" -name '*.la' -delete || die |
1499 |
- |
1500 |
- # Remove bogus, empty directories. They are either not used, or |
1501 |
- # libvirtd is able to create them on demand |
1502 |
- rm -rf "${D}"/etc/sysconfig |
1503 |
- rm -rf "${D}"/var/cache |
1504 |
- rm -rf "${D}"/var/run |
1505 |
- rm -rf "${D}"/var/log |
1506 |
- |
1507 |
- use libvirtd || return 0 |
1508 |
- # From here, only libvirtd-related instructions, be warned! |
1509 |
- |
1510 |
- systemd_install_serviced \ |
1511 |
- "${FILESDIR}"/libvirtd.service.conf libvirtd.service |
1512 |
- |
1513 |
- systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
1514 |
- |
1515 |
- newinitd "${S}/libvirtd.init" libvirtd || die |
1516 |
- newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die |
1517 |
- newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
1518 |
- newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die |
1519 |
- |
1520 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
1521 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die |
1522 |
- |
1523 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2") |
1524 |
- DISABLE_AUTOFORMATTING=true |
1525 |
- readme.gentoo_create_doc |
1526 |
-} |
1527 |
- |
1528 |
-pkg_preinst() { |
1529 |
- # we only ever want to generate this once |
1530 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1531 |
- rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
1532 |
- fi |
1533 |
-} |
1534 |
- |
1535 |
-pkg_postinst() { |
1536 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1537 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml |
1538 |
- fi |
1539 |
- |
1540 |
- use libvirtd || return 0 |
1541 |
- # From here, only libvirtd-related instructions, be warned! |
1542 |
- |
1543 |
- readme.gentoo_print_elog |
1544 |
-} |
1545 |
|
1546 |
diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild |
1547 |
index a777b288e14..7114c05fd88 100644 |
1548 |
--- a/app-emulation/libvirt/libvirt-9999.ebuild |
1549 |
+++ b/app-emulation/libvirt/libvirt-9999.ebuild |
1550 |
@@ -70,7 +70,7 @@ RDEPEND=" |
1551 |
dbus? ( sys-apps/dbus ) |
1552 |
elibc_glibc? ( sys-libs/glibc[rpc(+)] ) |
1553 |
firewalld? ( net-firewall/firewalld ) |
1554 |
- fuse? ( >=sys-fs/fuse-2.8.6 ) |
1555 |
+ fuse? ( >=sys-fs/fuse-2.8.6:= ) |
1556 |
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
1557 |
iscsi? ( sys-block/open-iscsi ) |
1558 |
libssh? ( net-libs/libssh ) |