1 |
commit: 1394e20bfe144f289aacab1e609b4c883a35cf20 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 01:03:42 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 01:04:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1394e20b |
7 |
|
8 |
app-emulation/libvirt: drop versions |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-emulation/libvirt/Manifest | 12 - |
13 |
...ibxl-Fix-libvirtd-crash-on-domain-restore.patch | 37 --- |
14 |
...tation-fault-in-virtqemud-executing-qemuD.patch | 50 --- |
15 |
app-emulation/libvirt/libvirt-7.10.0-r3.ebuild | 338 -------------------- |
16 |
app-emulation/libvirt/libvirt-8.0.0-r2.ebuild | 337 -------------------- |
17 |
app-emulation/libvirt/libvirt-8.1.0.ebuild | 338 -------------------- |
18 |
app-emulation/libvirt/libvirt-8.3.0.ebuild | 340 -------------------- |
19 |
app-emulation/libvirt/libvirt-8.4.0.ebuild | 340 -------------------- |
20 |
app-emulation/libvirt/libvirt-8.5.0.ebuild | 341 --------------------- |
21 |
9 files changed, 2133 deletions(-) |
22 |
|
23 |
diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest |
24 |
index 057ce4489084..25aea9f44d2a 100644 |
25 |
--- a/app-emulation/libvirt/Manifest |
26 |
+++ b/app-emulation/libvirt/Manifest |
27 |
@@ -1,18 +1,6 @@ |
28 |
-DIST libvirt-7.10.0.tar.xz 8798000 BLAKE2B 6cb2ab5913d382b11d24b46154dc3250355050cd3038f64ba571b35f33ae5bd0a322d4b96469bd6c78fd848c87f2e6fc7213c33e5bdb9d375a9b81d2a40899bb SHA512 c7eecc9538b68852a8cc67565566d64ec7b087b6f009858b2eb524bc3ef0f6ca3c0da67edf801e6a3ae3fcc0364e65e108fa92bcb01ee810c85fa5f37785aa32 |
29 |
-DIST libvirt-7.10.0.tar.xz.asc 833 BLAKE2B b9e129dcce43a87320b7284264c0689ce45742c0038a68c86fe7a0b789ddc2a49794fe89ae30d4d3675e884891a3b335b61beeb7ff0c5291fbc763ca6629de40 SHA512 41ef8e5fe9a8d1d6ba1c4fa8bd8204b0be83b50d3c936765d7ad005e75600287de0f13e0b14fab4d94d2d4b8bf8916fbe869cbfccf6293cc61c854513a0ef0c3 |
30 |
DIST libvirt-7.7.0.tar.xz 8670212 BLAKE2B 93c72117941b0a74484c7510c8437054e66fc3ad20c02cead3ce917a38868da2acff9b1e70bbb823122ba647763a3682aaa0da04d82fa75e1acc67449301ae8c SHA512 a0d585c9ac46be08d2865d66456d681b7233291d17f6e0ed2564d0f29dc38ea7afc846ab382f58a193d3cd9acaf25fcc526feb3c98e12a6b4b8ae5aa4aec2f3e |
31 |
DIST libvirt-7.7.0.tar.xz.asc 833 BLAKE2B 86a77bf461e353776d79f31f1d0c82fa13e28348bd9c6ae7cb653b98886c7e070d67ed0db55f5e1f3b5e5bd2a3861a5cb08dbf95799b14df1037139f8001b030 SHA512 d5f8cd6accd3bfaebfb7c8761e321aaa9a090c7705256785c5507aa88d985f78a788047dc881f37ea6f64a4634c65c9718d8b1ee0a24744acc3ad5ed6e517bdf |
32 |
-DIST libvirt-8.0.0.tar.xz 8860124 BLAKE2B 4669ae8f4de6379c3f94d3b6875ccc8eb435fbbf96aac26642fc593bc1921e9189decd9d366f5ca9e3e0fd8392ce840dce9e50ae048a5a2b72c465fd514eaf73 SHA512 e84cf2753d3c57cfe5aadbb6601fa76e0ba750471c1c24631720fe64376c3599ea252863ec671a50527e4fb380ffe0c2f02f07705b4b87d373ccf3e516ff4b1c |
33 |
-DIST libvirt-8.0.0.tar.xz.asc 833 BLAKE2B 2571ee10d433630ddd79761b1a50948aed33f61ef11e793a7e563e37c28e48bc856139aa1cc62bf50852b056de14f36bb75fa97155b31bfa97c8af2ef55ba4dc SHA512 ce1252a034723774542ab00e782c24b7ef243b5ca302033e45993f90273c697cdb82e9a126b729557a6c90b5f407f0f06b78c0affb6eefe60c364fa979831f8b |
34 |
-DIST libvirt-8.1.0.tar.xz 8881608 BLAKE2B ddbd684f43a75ab04aca8be0a761ec5890c365e3c802af55e85d0f3b906a3b075f737acd14648d46cdacce90cbd2ccdda12d39784eaa17a05657b13447df1fe7 SHA512 5db227b78f48e35f917030eeb45ce9d0f7e868c5ce75da496ca06fad175ad6b026173b2fb78415c0103a61af24aec78d89bcebdf60b817d8ff6e84dc926faa97 |
35 |
-DIST libvirt-8.1.0.tar.xz.asc 833 BLAKE2B 21ea45127d68313264b9e17c315d75b20e409ef56ce3f6a61899c3c9d9ce1ff51a4743d912f7440d2197230df802d955516cbc8d6f98960cef8a0265a7d0f334 SHA512 9a28b0405c01518f7d6837d02df492d6d97d6e73cd711e718b53cc18d8830a1216aa87366b2065ef5ce65b12d72cbb3d80024529264430de20fe89d8bf595d76 |
36 |
DIST libvirt-8.2.0.tar.xz 8871236 BLAKE2B 85c4fd7323f4ea0564e6fcb37dffe643d0ff54f228a695476c1b24c78022402a86cf967503e40fad003d82528f24a02bef79466e38c133c5ad37cbcd5783f01d SHA512 fbdc2953e86117643aafb3198a3d9327188d94abfd155eae4439ee0e722737a57ee44dbb2929746c0a28e10e275c35f4a8190e99668e4cba4025555358591544 |
37 |
DIST libvirt-8.2.0.tar.xz.asc 833 BLAKE2B 3dba2fe7dc76052307ab8b1d7f2a61445759ed15e130615ca2a6325e981ae5c1a7143e7d78ee67f2bf9001cdf82126dff89f4f1eb3b39b77620721a5b75f4cfa SHA512 33ecc465da1b7e4b53733611255d01414f8c1081c96fdcb0a9f1a0e194823872b7f9f9032938527f6d1d8bbebc3b61f2dc393875b8d11fdd47bec40e9408475b |
38 |
-DIST libvirt-8.3.0.tar.xz 8829288 BLAKE2B 37890dac8f46e14c5f0329f7f3318b611bfe3b97b7beddcdb91541e71a619738baa2a3e9847fee2d0b63abb630895860555a5337686702fc6fb06cc4f060f8b5 SHA512 914c8a4884d703f368849b852ba8330d1b17cf598a359f70d344e0a94e02f60337216e9011cbeba90eb4e87fa644e7eb9e8a407ca58632b2b41511d3f598ff71 |
39 |
-DIST libvirt-8.3.0.tar.xz.asc 833 BLAKE2B d1faf041532fc4c33641cab0510401db2fb1c45004f2615df6807729d7a83a8a28bd2410eb5478e479e7cd1b28272ee92885b30ecdccb8a9390536df51377d5e SHA512 5c32087769aba0d2a245a4ce317e1428842a682cf71e03e5f33fc4476309f40c08118241b1ad2b4be14933971431960b89960858a1f841ab1b7c9bda9f571d52 |
40 |
-DIST libvirt-8.4.0.tar.xz 8846528 BLAKE2B 479d7d47a9d711e0240da09eb295f1a644bc4cfddbe544908f2011eb45dff9cf9ffdfff87ba63ded96f5b69024c65832326f9fb0837c5338114ad5dbbada7af1 SHA512 e9dcaa489f162e3a26fe1ca7bb83a22e3f1952594c3541ddd2a7f8e8a0e6ad37e193fb89421df1efe3d2a4d9bb7cf5455c7b7a0b59e133eb6c0ff3cbbd8403b6 |
41 |
-DIST libvirt-8.4.0.tar.xz.asc 833 BLAKE2B 7bfbfc05ce7d95018c07e92d475bc0fddbb0b396132c12defd0205638d22534ba83fea8180345635b9f59b8a10fd3177b1a84ad748f1ddb9e533e11700bd4cbd SHA512 5d85ce4764dc36d940033c5feda59b9cff64844a52e3a25b1b8d0278adbc2378978a7dbe6f577f82bc760d617edc75c4a6ab8e1325a38847e1d40e3bf7c9684b |
42 |
-DIST libvirt-8.5.0.tar.xz 8886088 BLAKE2B a789b5d4d4f3d359403b53b1b6bdc31ddd8938d12fce3c77e953a30be359a3f75071c385bc8ce3df11ccc7ad682e433c067781948cf107abef84e54d5aadd0d9 SHA512 62b05c5cd58eab0ab2d945b832fd85807aea9b5f12a7ef5d1205fe0edac8d361ba3a9245f60f200a8548c96f718943d4502d87fff87c4495bd1e2637f14aaccf |
43 |
-DIST libvirt-8.5.0.tar.xz.asc 833 BLAKE2B 2e4ee3309e409fa700b0e09c067d2d7978f5033bc947108012582a9ba4b6a5438a2f419375e10b342dd0082560768eab1913aea86558293abc9a51bdb87111eb SHA512 d05482a7d0ef5649428368553e7a9c49a116435b273179c13248081711ecc2d8fa1f6ad82a3d5ce43efc2afee51718bc3362e483463c61ebd10dbcc41875749e |
44 |
DIST libvirt-8.7.0.tar.xz 8937316 BLAKE2B 131d46206662627e952b6daa3ceeab187321ff5fb1984980bc2816dfedf730c6ccd4b5a1cbfb46f33cc9e84508621e2625fa661f06b9e35561e8de52906824e5 SHA512 35d33d0e0dab525e8f0a8a592d286e9d17fc5c5d1ff2fab5af5c40b85248481dd17b5c3daf64e8c6e1b8a93328eebee6ece3e95edacff208a81d8b78dc102d7a |
45 |
DIST libvirt-8.7.0.tar.xz.asc 833 BLAKE2B ebea1430670bcb44e9ffb4460388b2ab41e8b409d1513d09ac56b12f379621f5ad39af0dba9691b36220bbed5634ad24b2efda8315b41bb2e7f3f6a65e9b028c SHA512 5ac09b10de74283c474fb80cfe600a171d6b49039df73113702cda565889f6c6919e99aff6ce60538ee7fda52287ef035ee15e8f47e5f724384c6ec474e6bed8 |
46 |
|
47 |
diff --git a/app-emulation/libvirt/files/libvirt-8.1.0-libxl-Fix-libvirtd-crash-on-domain-restore.patch b/app-emulation/libvirt/files/libvirt-8.1.0-libxl-Fix-libvirtd-crash-on-domain-restore.patch |
48 |
deleted file mode 100644 |
49 |
index f6116aa535d2..000000000000 |
50 |
--- a/app-emulation/libvirt/files/libvirt-8.1.0-libxl-Fix-libvirtd-crash-on-domain-restore.patch |
51 |
+++ /dev/null |
52 |
@@ -1,37 +0,0 @@ |
53 |
-From 454b927d1e33a1fe9dca535db2c97300fdae62cc Mon Sep 17 00:00:00 2001 |
54 |
-Message-Id: <454b927d1e33a1fe9dca535db2c97300fdae62cc.1646730306.git.mprivozn@××××××.com> |
55 |
-From: Jim Fehlig <jfehlig@××××.com> |
56 |
-Date: Thu, 17 Feb 2022 11:48:13 -0700 |
57 |
-Subject: [PATCH] libxl: Fix libvirtd crash on domain restore |
58 |
-MIME-Version: 1.0 |
59 |
-Content-Type: text/plain; charset=UTF-8 |
60 |
-Content-Transfer-Encoding: 8bit |
61 |
- |
62 |
-Commit cc2a3c2a94 missed one case in the libxl driver where virDomainDef |
63 |
-is returned from libxlDomainSaveImageOpen and a g_steal_pointer is needed. |
64 |
-Without it, the virDomainDef object is freed and the driver crashes later |
65 |
-in the restore process when accessing the object. |
66 |
- |
67 |
-Signed-off-by: Jim Fehlig <jfehlig@××××.com> |
68 |
-Reviewed-by: Ján Tomko <jtomko@××××××.com> |
69 |
-Signed-off-by: Michal Privoznik <mprivozn@××××××.com> |
70 |
---- |
71 |
- src/libxl/libxl_domain.c | 2 +- |
72 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
73 |
- |
74 |
-diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c |
75 |
-index c91e531a9a..ee031267ca 100644 |
76 |
---- a/src/libxl/libxl_domain.c |
77 |
-+++ b/src/libxl/libxl_domain.c |
78 |
-@@ -811,7 +811,7 @@ libxlDomainSaveImageOpen(libxlDriverPrivate *driver, |
79 |
- VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE))) |
80 |
- goto error; |
81 |
- |
82 |
-- *ret_def = def; |
83 |
-+ *ret_def = g_steal_pointer(&def); |
84 |
- *ret_hdr = hdr; |
85 |
- |
86 |
- return fd; |
87 |
--- |
88 |
-2.34.1 |
89 |
- |
90 |
|
91 |
diff --git a/app-emulation/libvirt/files/libvirt-8.2.0-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch b/app-emulation/libvirt/files/libvirt-8.2.0-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch |
92 |
deleted file mode 100644 |
93 |
index f37ec7065afd..000000000000 |
94 |
--- a/app-emulation/libvirt/files/libvirt-8.2.0-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch |
95 |
+++ /dev/null |
96 |
@@ -1,50 +0,0 @@ |
97 |
-From 823a62ec8aac4fb75e6e281164f3eb56ae47597c Mon Sep 17 00:00:00 2001 |
98 |
-Message-Id: <823a62ec8aac4fb75e6e281164f3eb56ae47597c.1646211032.git.mprivozn@××××××.com> |
99 |
-From: Boris Fiuczynski <fiuczy@×××××××××.com> |
100 |
-Date: Tue, 1 Mar 2022 18:47:59 +0100 |
101 |
-Subject: [PATCH] qemu: segmentation fault in virtqemud executing |
102 |
- qemuDomainUndefineFlags |
103 |
- |
104 |
-Commit 5adfb3472342741c443ac91dee0abb18b5a3d038 causes a segmentation fault. |
105 |
- |
106 |
-Stack trace of thread 664419: |
107 |
- #0 0x000003ff62ec553c in qemuDomainUndefineFlags (dom=0x3ff6c002810, flags=<optimized out>) at ../src/qemu/qemu_driver.c:6618 |
108 |
- #1 0x000003ff876a7e5c in virDomainUndefineFlags (domain=domain@entry=0x3ff6c002810, flags=<optimized out>) at ../src/libvirt-domain.c:6519 |
109 |
- #2 0x000002aa2b64a808 in remoteDispatchDomainUndefineFlags (server=0x2aa2c3d7880, msg=0x2aa2c3d2770, args=<optimized out>, rerr=0x3ff8287b950, client=<optimized out>) |
110 |
- at src/remote/remote_daemon_dispatch_stubs.h:13080 |
111 |
- #3 remoteDispatchDomainUndefineFlagsHelper (server=0x2aa2c3d7880, client=<optimized out>, msg=0x2aa2c3d2770, rerr=0x3ff8287b950, args=<optimized out>, ret=0x0) |
112 |
- at src/remote/remote_daemon_dispatch_stubs.h:13059 |
113 |
- #4 0x000003ff8758bbf4 in virNetServerProgramDispatchCall (msg=0x2aa2c3d2770, client=0x2aa2c3e3050, server=0x2aa2c3d7880, prog=0x2aa2c3d8010) |
114 |
- at ../src/rpc/virnetserverprogram.c:428 |
115 |
- #5 virNetServerProgramDispatch (prog=0x2aa2c3d8010, server=server@entry=0x2aa2c3d7880, client=0x2aa2c3e3050, msg=0x2aa2c3d2770) at ../src/rpc/virnetserverprogram.c:302 |
116 |
- #6 0x000003ff8758c260 in virNetServerProcessMsg (msg=<optimized out>, prog=<optimized out>, client=<optimized out>, srv=0x2aa2c3d7880) at ../src/rpc/virnetserver.c:140 |
117 |
- #7 virNetServerHandleJob (jobOpaque=0x2aa2c3e2d30, opaque=0x2aa2c3d7880) at ../src/rpc/virnetserver.c:160 |
118 |
- #8 0x000003ff874c49aa in virThreadPoolWorker (opaque=<optimized out>) at ../src/util/virthreadpool.c:164 |
119 |
- #9 0x000003ff874c3f62 in virThreadHelper (data=<optimized out>) at ../src/util/virthread.c:256 |
120 |
- #10 0x000003ff86c1cf8c in start_thread () from /lib64/libc.so.6 |
121 |
- #11 0x000003ff86c9650e in thread_start () from /lib64/libc.so.6 |
122 |
- |
123 |
-Signed-off-by: Boris Fiuczynski <fiuczy@×××××××××.com> |
124 |
-Reviewed-by: Jim Fehlig <jfehlig@××××.com> |
125 |
-Reviewed-by: Michal Privoznik <mprivozn@××××××.com> |
126 |
-Signed-off-by: Michal Privoznik <mprivozn@××××××.com> |
127 |
---- |
128 |
- src/qemu/qemu_driver.c | 2 +- |
129 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
130 |
- |
131 |
-diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c |
132 |
-index bcd9bdb436..8337eed510 100644 |
133 |
---- a/src/qemu/qemu_driver.c |
134 |
-+++ b/src/qemu/qemu_driver.c |
135 |
-@@ -6615,7 +6615,7 @@ qemuDomainUndefineFlags(virDomainPtr dom, |
136 |
- } |
137 |
- } |
138 |
- |
139 |
-- if (vm->def->os.loader->nvram) { |
140 |
-+ if (vm->def->os.loader && vm->def->os.loader->nvram) { |
141 |
- nvram_path = g_strdup(vm->def->os.loader->nvram); |
142 |
- } else if (vm->def->os.firmware == VIR_DOMAIN_OS_DEF_FIRMWARE_EFI) { |
143 |
- qemuDomainNVRAMPathFormat(cfg, vm->def, &nvram_path); |
144 |
--- |
145 |
-2.34.1 |
146 |
- |
147 |
|
148 |
diff --git a/app-emulation/libvirt/libvirt-7.10.0-r3.ebuild b/app-emulation/libvirt/libvirt-7.10.0-r3.ebuild |
149 |
deleted file mode 100644 |
150 |
index 7c4d799d196f..000000000000 |
151 |
--- a/app-emulation/libvirt/libvirt-7.10.0-r3.ebuild |
152 |
+++ /dev/null |
153 |
@@ -1,338 +0,0 @@ |
154 |
-# Copyright 1999-2022 Gentoo Authors |
155 |
-# Distributed under the terms of the GNU General Public License v2 |
156 |
- |
157 |
-EAPI=7 |
158 |
- |
159 |
-PYTHON_COMPAT=( python3_{8..10} ) |
160 |
- |
161 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
162 |
- |
163 |
-if [[ ${PV} = *9999* ]]; then |
164 |
- inherit git-r3 |
165 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
166 |
- EGIT_BRANCH="master" |
167 |
- SRC_URI="" |
168 |
- SLOT="0" |
169 |
-else |
170 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
171 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
172 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
173 |
- SLOT="0/${PV}" |
174 |
-fi |
175 |
- |
176 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
177 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
178 |
-LICENSE="LGPL-2.1" |
179 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libvirt.org.asc |
180 |
-IUSE=" |
181 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
182 |
- iscsi iscsi-direct +libvirtd lvm libssh lxc nfs nls numa openvz |
183 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
184 |
- virtualbox +virt-network wireshark-plugins xen zfs |
185 |
-" |
186 |
- |
187 |
-REQUIRED_USE=" |
188 |
- firewalld? ( virt-network ) |
189 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
190 |
- lxc? ( caps libvirtd ) |
191 |
- openvz? ( libvirtd ) |
192 |
- qemu? ( libvirtd ) |
193 |
- virt-network? ( libvirtd ) |
194 |
- virtualbox? ( libvirtd ) |
195 |
- xen? ( libvirtd )" |
196 |
- |
197 |
-BDEPEND=" |
198 |
- app-text/xhtml1 |
199 |
- dev-lang/perl |
200 |
- dev-libs/libxslt |
201 |
- dev-perl/XML-XPath |
202 |
- dev-python/docutils |
203 |
- virtual/pkgconfig |
204 |
- net-libs/rpcsvc-proto |
205 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
206 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
207 |
- |
208 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
209 |
-# non-optional, so put it into RDEPEND. |
210 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
211 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
212 |
-# we must go with the most recent |
213 |
-RDEPEND=" |
214 |
- acct-user/qemu |
215 |
- app-misc/scrub |
216 |
- >=dev-libs/glib-2.48.0 |
217 |
- dev-libs/libgcrypt:0 |
218 |
- dev-libs/libnl:3 |
219 |
- >=dev-libs/libxml2-2.7.6 |
220 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
221 |
- >=net-libs/gnutls-1.0.25:0= |
222 |
- net-libs/libssh2 |
223 |
- net-libs/libtirpc |
224 |
- >=net-misc/curl-7.18.0 |
225 |
- sys-apps/dbus |
226 |
- sys-apps/dmidecode |
227 |
- sys-devel/gettext |
228 |
- sys-libs/readline:= |
229 |
- virtual/acl |
230 |
- apparmor? ( sys-libs/libapparmor ) |
231 |
- audit? ( sys-process/audit ) |
232 |
- caps? ( sys-libs/libcap-ng ) |
233 |
- dtrace? ( dev-util/systemtap ) |
234 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
235 |
- fuse? ( sys-fs/fuse:0= ) |
236 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
237 |
- iscsi? ( sys-block/open-iscsi ) |
238 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
239 |
- libssh? ( net-libs/libssh ) |
240 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
241 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
242 |
- nfs? ( net-fs/nfs-utils ) |
243 |
- numa? ( |
244 |
- >sys-process/numactl-2.0.2 |
245 |
- sys-process/numad |
246 |
- ) |
247 |
- parted? ( |
248 |
- >=sys-block/parted-1.8[device-mapper] |
249 |
- sys-fs/lvm2[-device-mapper-only(-)] |
250 |
- ) |
251 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
252 |
- policykit? ( |
253 |
- acct-group/libvirt |
254 |
- >=sys-auth/polkit-0.9 |
255 |
- ) |
256 |
- qemu? ( |
257 |
- >=app-emulation/qemu-2.11 |
258 |
- dev-libs/yajl |
259 |
- ) |
260 |
- rbd? ( sys-cluster/ceph ) |
261 |
- sasl? ( dev-libs/cyrus-sasl ) |
262 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
263 |
- virt-network? ( |
264 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
265 |
- net-firewall/ebtables |
266 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
267 |
- net-misc/radvd |
268 |
- sys-apps/iproute2[-minimal] |
269 |
- ) |
270 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
271 |
- xen? ( |
272 |
- >=app-emulation/xen-4.9.0 |
273 |
- app-emulation/xen-tools:= |
274 |
- ) |
275 |
- udev? ( |
276 |
- virtual/libudev |
277 |
- >=x11-libs/libpciaccess-0.10.9 |
278 |
- ) |
279 |
- zfs? ( sys-fs/zfs )" |
280 |
- |
281 |
-DEPEND="${BDEPEND} |
282 |
- ${RDEPEND} |
283 |
- ${PYTHON_DEPS}" |
284 |
- |
285 |
-PATCHES=( |
286 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
287 |
- "${FILESDIR}"/${PN}-6.7.0-do-not-use-sysconfig.patch |
288 |
- "${FILESDIR}"/${PN}-6.7.0-fix-paths-for-apparmor.patch |
289 |
- "${FILESDIR}"/${PN}-7.9.0-fix_cgroupv2.patch |
290 |
- "${FILESDIR}"/${PN}-7.10.0-fix_soname.patch |
291 |
- "${FILESDIR}"/${PN}-8.1.0-docs-Fix-template-matching-in-page.xsl.patch |
292 |
-) |
293 |
- |
294 |
-pkg_setup() { |
295 |
- # Check kernel configuration: |
296 |
- CONFIG_CHECK="" |
297 |
- use fuse && CONFIG_CHECK+=" |
298 |
- ~FUSE_FS" |
299 |
- |
300 |
- use lvm && CONFIG_CHECK+=" |
301 |
- ~BLK_DEV_DM |
302 |
- ~DM_MULTIPATH |
303 |
- ~DM_SNAPSHOT" |
304 |
- |
305 |
- use lxc && CONFIG_CHECK+=" |
306 |
- ~BLK_CGROUP |
307 |
- ~CGROUP_CPUACCT |
308 |
- ~CGROUP_DEVICE |
309 |
- ~CGROUP_FREEZER |
310 |
- ~CGROUP_NET_PRIO |
311 |
- ~CGROUP_PERF |
312 |
- ~CGROUPS |
313 |
- ~CGROUP_SCHED |
314 |
- ~CPUSETS |
315 |
- ~IPC_NS |
316 |
- ~MACVLAN |
317 |
- ~NAMESPACES |
318 |
- ~NET_CLS_CGROUP |
319 |
- ~NET_NS |
320 |
- ~PID_NS |
321 |
- ~POSIX_MQUEUE |
322 |
- ~SECURITYFS |
323 |
- ~USER_NS |
324 |
- ~UTS_NS |
325 |
- ~VETH |
326 |
- ~!GRKERNSEC_CHROOT_MOUNT |
327 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
328 |
- ~!GRKERNSEC_CHROOT_PIVOT |
329 |
- ~!GRKERNSEC_CHROOT_CHMOD |
330 |
- ~!GRKERNSEC_CHROOT_CAPS" |
331 |
- |
332 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
333 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
334 |
- |
335 |
- use virt-network && CONFIG_CHECK+=" |
336 |
- ~BRIDGE_EBT_MARK_T |
337 |
- ~BRIDGE_NF_EBTABLES |
338 |
- ~NETFILTER_ADVANCED |
339 |
- ~NETFILTER_XT_CONNMARK |
340 |
- ~NETFILTER_XT_MARK |
341 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
342 |
- ~IP_NF_FILTER |
343 |
- ~IP_NF_MANGLE |
344 |
- ~IP_NF_NAT |
345 |
- ~IP_NF_TARGET_MASQUERADE |
346 |
- ~IP6_NF_FILTER |
347 |
- ~IP6_NF_MANGLE |
348 |
- ~IP6_NF_NAT" |
349 |
- # Bandwidth Limiting Support |
350 |
- use virt-network && CONFIG_CHECK+=" |
351 |
- ~BRIDGE_EBT_T_NAT |
352 |
- ~IP_NF_TARGET_REJECT |
353 |
- ~NET_ACT_POLICE |
354 |
- ~NET_CLS_FW |
355 |
- ~NET_CLS_U32 |
356 |
- ~NET_SCH_HTB |
357 |
- ~NET_SCH_INGRESS |
358 |
- ~NET_SCH_SFQ" |
359 |
- |
360 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
361 |
- |
362 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
363 |
- linux-info_pkg_setup |
364 |
- fi |
365 |
- |
366 |
- python-any-r1_pkg_setup |
367 |
-} |
368 |
- |
369 |
-src_prepare() { |
370 |
- touch "${S}/.mailmap" || die |
371 |
- |
372 |
- default |
373 |
- python_fix_shebang . |
374 |
- |
375 |
- # Skip fragile tests which relies on pristine environment |
376 |
- # (Breaks because of sandbox environment variables) |
377 |
- # bug #802876 |
378 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
379 |
- |
380 |
- # Tweak the init script: |
381 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
382 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
383 |
- -i "${S}/libvirtd.init" || die "sed failed" |
384 |
-} |
385 |
- |
386 |
-src_configure() { |
387 |
- local emesonargs=( |
388 |
- $(meson_feature apparmor) |
389 |
- $(meson_feature apparmor apparmor_profiles) |
390 |
- $(meson_feature audit) |
391 |
- $(meson_feature caps capng) |
392 |
- $(meson_feature dtrace) |
393 |
- $(meson_feature firewalld) |
394 |
- $(meson_feature fuse) |
395 |
- $(meson_feature glusterfs) |
396 |
- $(meson_feature glusterfs storage_gluster) |
397 |
- $(meson_feature iscsi storage_iscsi) |
398 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
399 |
- $(meson_feature libvirtd driver_libvirtd) |
400 |
- $(meson_feature libssh) |
401 |
- $(meson_feature lvm storage_lvm) |
402 |
- $(meson_feature lvm storage_mpath) |
403 |
- $(meson_feature lxc driver_lxc) |
404 |
- $(meson_feature nls) |
405 |
- $(meson_feature numa numactl) |
406 |
- $(meson_feature numa numad) |
407 |
- $(meson_feature openvz driver_openvz) |
408 |
- $(meson_feature parted storage_disk) |
409 |
- $(meson_feature pcap libpcap) |
410 |
- $(meson_feature policykit polkit) |
411 |
- $(meson_feature qemu driver_qemu) |
412 |
- $(meson_feature qemu yajl) |
413 |
- $(meson_feature rbd storage_rbd) |
414 |
- $(meson_feature sasl) |
415 |
- $(meson_feature selinux) |
416 |
- $(meson_feature udev) |
417 |
- $(meson_feature virt-network driver_network) |
418 |
- $(meson_feature virtualbox driver_vbox) |
419 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
420 |
- $(meson_feature xen driver_libxl) |
421 |
- $(meson_feature zfs storage_zfs) |
422 |
- |
423 |
- -Dnetcf=disabled |
424 |
- -Dsanlock=disabled |
425 |
- |
426 |
- -Ddriver_esx=enabled |
427 |
- -Dinit_script=systemd |
428 |
- -Dqemu_user=$(usex caps qemu root) |
429 |
- -Dqemu_group=$(usex caps qemu root) |
430 |
- -Ddriver_remote=enabled |
431 |
- -Dstorage_fs=enabled |
432 |
- -Ddriver_vmware=enabled |
433 |
- |
434 |
- --localstatedir="${EPREFIX}/var" |
435 |
- -Drunstatedir="${EPREFIX}/run" |
436 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
437 |
- ) |
438 |
- |
439 |
- meson_src_configure |
440 |
-} |
441 |
- |
442 |
-src_test() { |
443 |
- export VIR_TEST_DEBUG=1 |
444 |
- # Don't run the syntax check tests, they're fragile and not relevant |
445 |
- # to us downstream anyway. |
446 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
447 |
- # on slower arches. |
448 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
449 |
-} |
450 |
- |
451 |
-src_install() { |
452 |
- meson_src_install |
453 |
- |
454 |
- # Depending on configuration option, libvirt will create some bogus |
455 |
- # directoreis. They are either not used, or libvirtd is able to create |
456 |
- # them on demand, so let's remove them. |
457 |
- # |
458 |
- # Note, we are using -f here so that rm does not fail or warn if the |
459 |
- # directory is nonexistent. |
460 |
- rm -rf "${D}"/etc/sysconfig |
461 |
- rm -rf "${D}"/var |
462 |
- rm -rf "${D}"/run |
463 |
- |
464 |
- use libvirtd || return 0 |
465 |
- # From here, only libvirtd-related instructions, be warned! |
466 |
- |
467 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
468 |
- |
469 |
- newinitd "${S}/libvirtd.init" libvirtd |
470 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
471 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
472 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
473 |
- |
474 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
475 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
476 |
- |
477 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
478 |
- DISABLE_AUTOFORMATTING=true |
479 |
- readme.gentoo_create_doc |
480 |
-} |
481 |
- |
482 |
-pkg_postinst() { |
483 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
484 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
485 |
- fi |
486 |
- |
487 |
- use libvirtd || return 0 |
488 |
- # From here, only libvirtd-related instructions, be warned! |
489 |
- tmpfiles_process libvirtd.conf |
490 |
- readme.gentoo_print_elog |
491 |
-} |
492 |
|
493 |
diff --git a/app-emulation/libvirt/libvirt-8.0.0-r2.ebuild b/app-emulation/libvirt/libvirt-8.0.0-r2.ebuild |
494 |
deleted file mode 100644 |
495 |
index d0232f98e39a..000000000000 |
496 |
--- a/app-emulation/libvirt/libvirt-8.0.0-r2.ebuild |
497 |
+++ /dev/null |
498 |
@@ -1,337 +0,0 @@ |
499 |
-# Copyright 1999-2022 Gentoo Authors |
500 |
-# Distributed under the terms of the GNU General Public License v2 |
501 |
- |
502 |
-EAPI=7 |
503 |
- |
504 |
-PYTHON_COMPAT=( python3_{8..10} ) |
505 |
- |
506 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
507 |
- |
508 |
-if [[ ${PV} = *9999* ]]; then |
509 |
- inherit git-r3 |
510 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
511 |
- EGIT_BRANCH="master" |
512 |
- SRC_URI="" |
513 |
- SLOT="0" |
514 |
-else |
515 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
516 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
517 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
518 |
- SLOT="0/${PV}" |
519 |
-fi |
520 |
- |
521 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
522 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
523 |
-LICENSE="LGPL-2.1" |
524 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libvirt.org.asc |
525 |
-IUSE=" |
526 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
527 |
- iscsi iscsi-direct +libvirtd lvm libssh lxc nfs nls numa openvz |
528 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
529 |
- virtualbox +virt-network wireshark-plugins xen zfs |
530 |
-" |
531 |
- |
532 |
-REQUIRED_USE=" |
533 |
- firewalld? ( virt-network ) |
534 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
535 |
- lxc? ( caps libvirtd ) |
536 |
- openvz? ( libvirtd ) |
537 |
- qemu? ( libvirtd ) |
538 |
- virt-network? ( libvirtd ) |
539 |
- virtualbox? ( libvirtd ) |
540 |
- xen? ( libvirtd )" |
541 |
- |
542 |
-BDEPEND=" |
543 |
- app-text/xhtml1 |
544 |
- dev-lang/perl |
545 |
- dev-libs/libxslt |
546 |
- dev-perl/XML-XPath |
547 |
- dev-python/docutils |
548 |
- virtual/pkgconfig |
549 |
- net-libs/rpcsvc-proto |
550 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
551 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
552 |
- |
553 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
554 |
-# non-optional, so put it into RDEPEND. |
555 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
556 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
557 |
-# we must go with the most recent |
558 |
-RDEPEND=" |
559 |
- acct-user/qemu |
560 |
- app-misc/scrub |
561 |
- >=dev-libs/glib-2.48.0 |
562 |
- dev-libs/libgcrypt:0 |
563 |
- dev-libs/libnl:3 |
564 |
- >=dev-libs/libxml2-2.7.6 |
565 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
566 |
- >=net-libs/gnutls-1.0.25:0= |
567 |
- net-libs/libssh2 |
568 |
- net-libs/libtirpc |
569 |
- >=net-misc/curl-7.18.0 |
570 |
- sys-apps/dbus |
571 |
- sys-apps/dmidecode |
572 |
- sys-devel/gettext |
573 |
- sys-libs/readline:= |
574 |
- virtual/acl |
575 |
- apparmor? ( sys-libs/libapparmor ) |
576 |
- audit? ( sys-process/audit ) |
577 |
- caps? ( sys-libs/libcap-ng ) |
578 |
- dtrace? ( dev-util/systemtap ) |
579 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
580 |
- fuse? ( sys-fs/fuse:0= ) |
581 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
582 |
- iscsi? ( sys-block/open-iscsi ) |
583 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
584 |
- libssh? ( net-libs/libssh ) |
585 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
586 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
587 |
- nfs? ( net-fs/nfs-utils ) |
588 |
- numa? ( |
589 |
- >sys-process/numactl-2.0.2 |
590 |
- sys-process/numad |
591 |
- ) |
592 |
- parted? ( |
593 |
- >=sys-block/parted-1.8[device-mapper] |
594 |
- sys-fs/lvm2[-device-mapper-only(-)] |
595 |
- ) |
596 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
597 |
- policykit? ( |
598 |
- acct-group/libvirt |
599 |
- >=sys-auth/polkit-0.9 |
600 |
- ) |
601 |
- qemu? ( |
602 |
- >=app-emulation/qemu-2.11 |
603 |
- dev-libs/yajl |
604 |
- ) |
605 |
- rbd? ( sys-cluster/ceph ) |
606 |
- sasl? ( dev-libs/cyrus-sasl ) |
607 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
608 |
- virt-network? ( |
609 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
610 |
- net-firewall/ebtables |
611 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
612 |
- net-misc/radvd |
613 |
- sys-apps/iproute2[-minimal] |
614 |
- ) |
615 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
616 |
- xen? ( |
617 |
- >=app-emulation/xen-4.9.0 |
618 |
- app-emulation/xen-tools:= |
619 |
- ) |
620 |
- udev? ( |
621 |
- virtual/libudev |
622 |
- >=x11-libs/libpciaccess-0.10.9 |
623 |
- ) |
624 |
- zfs? ( sys-fs/zfs )" |
625 |
- |
626 |
-DEPEND="${BDEPEND} |
627 |
- ${RDEPEND} |
628 |
- ${PYTHON_DEPS}" |
629 |
- |
630 |
-PATCHES=( |
631 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
632 |
- "${FILESDIR}"/${PN}-6.7.0-do-not-use-sysconfig.patch |
633 |
- "${FILESDIR}"/${PN}-6.7.0-fix-paths-for-apparmor.patch |
634 |
- "${FILESDIR}"/${PN}-8.1.0-docs-Fix-template-matching-in-page.xsl.patch |
635 |
- "${FILESDIR}"/${PN}-8.1.0-libxl-Fix-libvirtd-crash-on-domain-restore.patch |
636 |
-) |
637 |
- |
638 |
-pkg_setup() { |
639 |
- # Check kernel configuration: |
640 |
- CONFIG_CHECK="" |
641 |
- use fuse && CONFIG_CHECK+=" |
642 |
- ~FUSE_FS" |
643 |
- |
644 |
- use lvm && CONFIG_CHECK+=" |
645 |
- ~BLK_DEV_DM |
646 |
- ~DM_MULTIPATH |
647 |
- ~DM_SNAPSHOT" |
648 |
- |
649 |
- use lxc && CONFIG_CHECK+=" |
650 |
- ~BLK_CGROUP |
651 |
- ~CGROUP_CPUACCT |
652 |
- ~CGROUP_DEVICE |
653 |
- ~CGROUP_FREEZER |
654 |
- ~CGROUP_NET_PRIO |
655 |
- ~CGROUP_PERF |
656 |
- ~CGROUPS |
657 |
- ~CGROUP_SCHED |
658 |
- ~CPUSETS |
659 |
- ~IPC_NS |
660 |
- ~MACVLAN |
661 |
- ~NAMESPACES |
662 |
- ~NET_CLS_CGROUP |
663 |
- ~NET_NS |
664 |
- ~PID_NS |
665 |
- ~POSIX_MQUEUE |
666 |
- ~SECURITYFS |
667 |
- ~USER_NS |
668 |
- ~UTS_NS |
669 |
- ~VETH |
670 |
- ~!GRKERNSEC_CHROOT_MOUNT |
671 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
672 |
- ~!GRKERNSEC_CHROOT_PIVOT |
673 |
- ~!GRKERNSEC_CHROOT_CHMOD |
674 |
- ~!GRKERNSEC_CHROOT_CAPS" |
675 |
- |
676 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
677 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
678 |
- |
679 |
- use virt-network && CONFIG_CHECK+=" |
680 |
- ~BRIDGE_EBT_MARK_T |
681 |
- ~BRIDGE_NF_EBTABLES |
682 |
- ~NETFILTER_ADVANCED |
683 |
- ~NETFILTER_XT_CONNMARK |
684 |
- ~NETFILTER_XT_MARK |
685 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
686 |
- ~IP_NF_FILTER |
687 |
- ~IP_NF_MANGLE |
688 |
- ~IP_NF_NAT |
689 |
- ~IP_NF_TARGET_MASQUERADE |
690 |
- ~IP6_NF_FILTER |
691 |
- ~IP6_NF_MANGLE |
692 |
- ~IP6_NF_NAT" |
693 |
- # Bandwidth Limiting Support |
694 |
- use virt-network && CONFIG_CHECK+=" |
695 |
- ~BRIDGE_EBT_T_NAT |
696 |
- ~IP_NF_TARGET_REJECT |
697 |
- ~NET_ACT_POLICE |
698 |
- ~NET_CLS_FW |
699 |
- ~NET_CLS_U32 |
700 |
- ~NET_SCH_HTB |
701 |
- ~NET_SCH_INGRESS |
702 |
- ~NET_SCH_SFQ" |
703 |
- |
704 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
705 |
- |
706 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
707 |
- linux-info_pkg_setup |
708 |
- fi |
709 |
- |
710 |
- python-any-r1_pkg_setup |
711 |
-} |
712 |
- |
713 |
-src_prepare() { |
714 |
- touch "${S}/.mailmap" || die |
715 |
- |
716 |
- default |
717 |
- python_fix_shebang . |
718 |
- |
719 |
- # Skip fragile tests which relies on pristine environment |
720 |
- # (Breaks because of sandbox environment variables) |
721 |
- # bug #802876 |
722 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
723 |
- |
724 |
- # Tweak the init script: |
725 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
726 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
727 |
- -i "${S}/libvirtd.init" || die "sed failed" |
728 |
-} |
729 |
- |
730 |
-src_configure() { |
731 |
- local emesonargs=( |
732 |
- $(meson_feature apparmor) |
733 |
- $(meson_feature apparmor apparmor_profiles) |
734 |
- $(meson_feature audit) |
735 |
- $(meson_feature caps capng) |
736 |
- $(meson_feature dtrace) |
737 |
- $(meson_feature firewalld) |
738 |
- $(meson_feature fuse) |
739 |
- $(meson_feature glusterfs) |
740 |
- $(meson_feature glusterfs storage_gluster) |
741 |
- $(meson_feature iscsi storage_iscsi) |
742 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
743 |
- $(meson_feature libvirtd driver_libvirtd) |
744 |
- $(meson_feature libssh) |
745 |
- $(meson_feature lvm storage_lvm) |
746 |
- $(meson_feature lvm storage_mpath) |
747 |
- $(meson_feature lxc driver_lxc) |
748 |
- $(meson_feature nls) |
749 |
- $(meson_feature numa numactl) |
750 |
- $(meson_feature numa numad) |
751 |
- $(meson_feature openvz driver_openvz) |
752 |
- $(meson_feature parted storage_disk) |
753 |
- $(meson_feature pcap libpcap) |
754 |
- $(meson_feature policykit polkit) |
755 |
- $(meson_feature qemu driver_qemu) |
756 |
- $(meson_feature qemu yajl) |
757 |
- $(meson_feature rbd storage_rbd) |
758 |
- $(meson_feature sasl) |
759 |
- $(meson_feature selinux) |
760 |
- $(meson_feature udev) |
761 |
- $(meson_feature virt-network driver_network) |
762 |
- $(meson_feature virtualbox driver_vbox) |
763 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
764 |
- $(meson_feature xen driver_libxl) |
765 |
- $(meson_feature zfs storage_zfs) |
766 |
- |
767 |
- -Dnetcf=disabled |
768 |
- -Dsanlock=disabled |
769 |
- |
770 |
- -Ddriver_esx=enabled |
771 |
- -Dinit_script=systemd |
772 |
- -Dqemu_user=$(usex caps qemu root) |
773 |
- -Dqemu_group=$(usex caps qemu root) |
774 |
- -Ddriver_remote=enabled |
775 |
- -Dstorage_fs=enabled |
776 |
- -Ddriver_vmware=enabled |
777 |
- |
778 |
- --localstatedir="${EPREFIX}/var" |
779 |
- -Drunstatedir="${EPREFIX}/run" |
780 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
781 |
- ) |
782 |
- |
783 |
- meson_src_configure |
784 |
-} |
785 |
- |
786 |
-src_test() { |
787 |
- export VIR_TEST_DEBUG=1 |
788 |
- # Don't run the syntax check tests, they're fragile and not relevant |
789 |
- # to us downstream anyway. |
790 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
791 |
- # on slower arches. |
792 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
793 |
-} |
794 |
- |
795 |
-src_install() { |
796 |
- meson_src_install |
797 |
- |
798 |
- # Depending on configuration option, libvirt will create some bogus |
799 |
- # directoreis. They are either not used, or libvirtd is able to create |
800 |
- # them on demand, so let's remove them. |
801 |
- # |
802 |
- # Note, we are using -f here so that rm does not fail or warn if the |
803 |
- # directory is nonexistent. |
804 |
- rm -rf "${D}"/etc/sysconfig |
805 |
- rm -rf "${D}"/var |
806 |
- rm -rf "${D}"/run |
807 |
- |
808 |
- use libvirtd || return 0 |
809 |
- # From here, only libvirtd-related instructions, be warned! |
810 |
- |
811 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
812 |
- |
813 |
- newinitd "${S}/libvirtd.init" libvirtd |
814 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
815 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
816 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
817 |
- |
818 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
819 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
820 |
- |
821 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
822 |
- DISABLE_AUTOFORMATTING=true |
823 |
- readme.gentoo_create_doc |
824 |
-} |
825 |
- |
826 |
-pkg_postinst() { |
827 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
828 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
829 |
- fi |
830 |
- |
831 |
- use libvirtd || return 0 |
832 |
- # From here, only libvirtd-related instructions, be warned! |
833 |
- tmpfiles_process libvirtd.conf |
834 |
- readme.gentoo_print_elog |
835 |
-} |
836 |
|
837 |
diff --git a/app-emulation/libvirt/libvirt-8.1.0.ebuild b/app-emulation/libvirt/libvirt-8.1.0.ebuild |
838 |
deleted file mode 100644 |
839 |
index bdc9eb2b9f6e..000000000000 |
840 |
--- a/app-emulation/libvirt/libvirt-8.1.0.ebuild |
841 |
+++ /dev/null |
842 |
@@ -1,338 +0,0 @@ |
843 |
-# Copyright 1999-2022 Gentoo Authors |
844 |
-# Distributed under the terms of the GNU General Public License v2 |
845 |
- |
846 |
-EAPI=7 |
847 |
- |
848 |
-# Please bump with dev-python/libvirt-python! |
849 |
- |
850 |
-PYTHON_COMPAT=( python3_{8..10} ) |
851 |
- |
852 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
853 |
- |
854 |
-if [[ ${PV} = *9999* ]]; then |
855 |
- inherit git-r3 |
856 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
857 |
- EGIT_BRANCH="master" |
858 |
- SRC_URI="" |
859 |
- SLOT="0" |
860 |
-else |
861 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
862 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
863 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
864 |
- SLOT="0/${PV}" |
865 |
-fi |
866 |
- |
867 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
868 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
869 |
-LICENSE="LGPL-2.1" |
870 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libvirt.org.asc |
871 |
-IUSE=" |
872 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
873 |
- iscsi iscsi-direct +libvirtd lvm libssh lxc nfs nls numa openvz |
874 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
875 |
- virtualbox +virt-network wireshark-plugins xen zfs |
876 |
-" |
877 |
- |
878 |
-REQUIRED_USE=" |
879 |
- firewalld? ( virt-network ) |
880 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
881 |
- lxc? ( caps libvirtd ) |
882 |
- openvz? ( libvirtd ) |
883 |
- qemu? ( libvirtd ) |
884 |
- virt-network? ( libvirtd ) |
885 |
- virtualbox? ( libvirtd ) |
886 |
- xen? ( libvirtd )" |
887 |
- |
888 |
-BDEPEND=" |
889 |
- app-text/xhtml1 |
890 |
- dev-lang/perl |
891 |
- dev-libs/libxslt |
892 |
- dev-perl/XML-XPath |
893 |
- dev-python/docutils |
894 |
- virtual/pkgconfig |
895 |
- net-libs/rpcsvc-proto |
896 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
897 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
898 |
- |
899 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
900 |
-# non-optional, so put it into RDEPEND. |
901 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
902 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
903 |
-# we must go with the most recent |
904 |
-RDEPEND=" |
905 |
- acct-user/qemu |
906 |
- app-misc/scrub |
907 |
- >=dev-libs/glib-2.48.0 |
908 |
- dev-libs/libgcrypt:0 |
909 |
- dev-libs/libnl:3 |
910 |
- >=dev-libs/libxml2-2.7.6 |
911 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
912 |
- >=net-libs/gnutls-1.0.25:0= |
913 |
- net-libs/libssh2 |
914 |
- net-libs/libtirpc |
915 |
- >=net-misc/curl-7.18.0 |
916 |
- sys-apps/dbus |
917 |
- sys-apps/dmidecode |
918 |
- sys-devel/gettext |
919 |
- sys-libs/readline:= |
920 |
- virtual/acl |
921 |
- apparmor? ( sys-libs/libapparmor ) |
922 |
- audit? ( sys-process/audit ) |
923 |
- caps? ( sys-libs/libcap-ng ) |
924 |
- dtrace? ( dev-util/systemtap ) |
925 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
926 |
- fuse? ( sys-fs/fuse:0= ) |
927 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
928 |
- iscsi? ( sys-block/open-iscsi ) |
929 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
930 |
- libssh? ( net-libs/libssh ) |
931 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
932 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
933 |
- nfs? ( net-fs/nfs-utils ) |
934 |
- numa? ( |
935 |
- >sys-process/numactl-2.0.2 |
936 |
- sys-process/numad |
937 |
- ) |
938 |
- parted? ( |
939 |
- >=sys-block/parted-1.8[device-mapper] |
940 |
- sys-fs/lvm2[-device-mapper-only(-)] |
941 |
- ) |
942 |
- pcap? ( >=net-libs/libpcap-1.0.0 ) |
943 |
- policykit? ( |
944 |
- acct-group/libvirt |
945 |
- >=sys-auth/polkit-0.9 |
946 |
- ) |
947 |
- qemu? ( |
948 |
- >=app-emulation/qemu-2.11 |
949 |
- dev-libs/yajl |
950 |
- ) |
951 |
- rbd? ( sys-cluster/ceph ) |
952 |
- sasl? ( dev-libs/cyrus-sasl ) |
953 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
954 |
- virt-network? ( |
955 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
956 |
- net-firewall/ebtables |
957 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
958 |
- net-misc/radvd |
959 |
- sys-apps/iproute2[-minimal] |
960 |
- ) |
961 |
- wireshark-plugins? ( net-analyzer/wireshark:= ) |
962 |
- xen? ( |
963 |
- >=app-emulation/xen-4.9.0 |
964 |
- app-emulation/xen-tools:= |
965 |
- ) |
966 |
- udev? ( |
967 |
- virtual/libudev |
968 |
- >=x11-libs/libpciaccess-0.10.9 |
969 |
- ) |
970 |
- zfs? ( sys-fs/zfs )" |
971 |
- |
972 |
-DEPEND="${BDEPEND} |
973 |
- ${RDEPEND} |
974 |
- ${PYTHON_DEPS}" |
975 |
- |
976 |
-PATCHES=( |
977 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
978 |
- "${FILESDIR}"/${PN}-8.2.0-do-not-use-sysconfig.patch |
979 |
- "${FILESDIR}"/${PN}-8.2.0-fix-paths-for-apparmor.patch |
980 |
- "${FILESDIR}"/${PN}-8.2.0-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch |
981 |
-) |
982 |
- |
983 |
-pkg_setup() { |
984 |
- # Check kernel configuration: |
985 |
- CONFIG_CHECK="" |
986 |
- use fuse && CONFIG_CHECK+=" |
987 |
- ~FUSE_FS" |
988 |
- |
989 |
- use lvm && CONFIG_CHECK+=" |
990 |
- ~BLK_DEV_DM |
991 |
- ~DM_MULTIPATH |
992 |
- ~DM_SNAPSHOT" |
993 |
- |
994 |
- use lxc && CONFIG_CHECK+=" |
995 |
- ~BLK_CGROUP |
996 |
- ~CGROUP_CPUACCT |
997 |
- ~CGROUP_DEVICE |
998 |
- ~CGROUP_FREEZER |
999 |
- ~CGROUP_NET_PRIO |
1000 |
- ~CGROUP_PERF |
1001 |
- ~CGROUPS |
1002 |
- ~CGROUP_SCHED |
1003 |
- ~CPUSETS |
1004 |
- ~IPC_NS |
1005 |
- ~MACVLAN |
1006 |
- ~NAMESPACES |
1007 |
- ~NET_CLS_CGROUP |
1008 |
- ~NET_NS |
1009 |
- ~PID_NS |
1010 |
- ~POSIX_MQUEUE |
1011 |
- ~SECURITYFS |
1012 |
- ~USER_NS |
1013 |
- ~UTS_NS |
1014 |
- ~VETH |
1015 |
- ~!GRKERNSEC_CHROOT_MOUNT |
1016 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
1017 |
- ~!GRKERNSEC_CHROOT_PIVOT |
1018 |
- ~!GRKERNSEC_CHROOT_CHMOD |
1019 |
- ~!GRKERNSEC_CHROOT_CAPS" |
1020 |
- |
1021 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
1022 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
1023 |
- |
1024 |
- use virt-network && CONFIG_CHECK+=" |
1025 |
- ~BRIDGE_EBT_MARK_T |
1026 |
- ~BRIDGE_NF_EBTABLES |
1027 |
- ~NETFILTER_ADVANCED |
1028 |
- ~NETFILTER_XT_CONNMARK |
1029 |
- ~NETFILTER_XT_MARK |
1030 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
1031 |
- ~IP_NF_FILTER |
1032 |
- ~IP_NF_MANGLE |
1033 |
- ~IP_NF_NAT |
1034 |
- ~IP_NF_TARGET_MASQUERADE |
1035 |
- ~IP6_NF_FILTER |
1036 |
- ~IP6_NF_MANGLE |
1037 |
- ~IP6_NF_NAT" |
1038 |
- # Bandwidth Limiting Support |
1039 |
- use virt-network && CONFIG_CHECK+=" |
1040 |
- ~BRIDGE_EBT_T_NAT |
1041 |
- ~IP_NF_TARGET_REJECT |
1042 |
- ~NET_ACT_POLICE |
1043 |
- ~NET_CLS_FW |
1044 |
- ~NET_CLS_U32 |
1045 |
- ~NET_SCH_HTB |
1046 |
- ~NET_SCH_INGRESS |
1047 |
- ~NET_SCH_SFQ" |
1048 |
- |
1049 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
1050 |
- |
1051 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
1052 |
- linux-info_pkg_setup |
1053 |
- fi |
1054 |
- |
1055 |
- python-any-r1_pkg_setup |
1056 |
-} |
1057 |
- |
1058 |
-src_prepare() { |
1059 |
- touch "${S}/.mailmap" || die |
1060 |
- |
1061 |
- default |
1062 |
- python_fix_shebang . |
1063 |
- |
1064 |
- # Skip fragile tests which relies on pristine environment |
1065 |
- # (Breaks because of sandbox environment variables) |
1066 |
- # bug #802876 |
1067 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
1068 |
- |
1069 |
- # Tweak the init script: |
1070 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
1071 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
1072 |
- -i "${S}/libvirtd.init" || die "sed failed" |
1073 |
-} |
1074 |
- |
1075 |
-src_configure() { |
1076 |
- local emesonargs=( |
1077 |
- $(meson_feature apparmor) |
1078 |
- $(meson_feature apparmor apparmor_profiles) |
1079 |
- $(meson_feature audit) |
1080 |
- $(meson_feature caps capng) |
1081 |
- $(meson_feature dtrace) |
1082 |
- $(meson_feature firewalld) |
1083 |
- $(meson_feature fuse) |
1084 |
- $(meson_feature glusterfs) |
1085 |
- $(meson_feature glusterfs storage_gluster) |
1086 |
- $(meson_feature iscsi storage_iscsi) |
1087 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
1088 |
- $(meson_feature libvirtd driver_libvirtd) |
1089 |
- $(meson_feature libssh) |
1090 |
- $(meson_feature lvm storage_lvm) |
1091 |
- $(meson_feature lvm storage_mpath) |
1092 |
- $(meson_feature lxc driver_lxc) |
1093 |
- $(meson_feature nls) |
1094 |
- $(meson_feature numa numactl) |
1095 |
- $(meson_feature numa numad) |
1096 |
- $(meson_feature openvz driver_openvz) |
1097 |
- $(meson_feature parted storage_disk) |
1098 |
- $(meson_feature pcap libpcap) |
1099 |
- $(meson_feature policykit polkit) |
1100 |
- $(meson_feature qemu driver_qemu) |
1101 |
- $(meson_feature qemu yajl) |
1102 |
- $(meson_feature rbd storage_rbd) |
1103 |
- $(meson_feature sasl) |
1104 |
- $(meson_feature selinux) |
1105 |
- $(meson_feature udev) |
1106 |
- $(meson_feature virt-network driver_network) |
1107 |
- $(meson_feature virtualbox driver_vbox) |
1108 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
1109 |
- $(meson_feature xen driver_libxl) |
1110 |
- $(meson_feature zfs storage_zfs) |
1111 |
- |
1112 |
- -Dnetcf=disabled |
1113 |
- -Dsanlock=disabled |
1114 |
- |
1115 |
- -Ddriver_esx=enabled |
1116 |
- -Dinit_script=systemd |
1117 |
- -Dqemu_user=$(usex caps qemu root) |
1118 |
- -Dqemu_group=$(usex caps qemu root) |
1119 |
- -Ddriver_remote=enabled |
1120 |
- -Dstorage_fs=enabled |
1121 |
- -Ddriver_vmware=enabled |
1122 |
- |
1123 |
- --localstatedir="${EPREFIX}/var" |
1124 |
- -Drunstatedir="${EPREFIX}/run" |
1125 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
1126 |
- ) |
1127 |
- |
1128 |
- meson_src_configure |
1129 |
-} |
1130 |
- |
1131 |
-src_test() { |
1132 |
- export VIR_TEST_DEBUG=1 |
1133 |
- # Don't run the syntax check tests, they're fragile and not relevant |
1134 |
- # to us downstream anyway. |
1135 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
1136 |
- # on slower arches. |
1137 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
1138 |
-} |
1139 |
- |
1140 |
-src_install() { |
1141 |
- meson_src_install |
1142 |
- |
1143 |
- # Depending on configuration option, libvirt will create some bogus |
1144 |
- # directoreis. They are either not used, or libvirtd is able to create |
1145 |
- # them on demand, so let's remove them. |
1146 |
- # |
1147 |
- # Note, we are using -f here so that rm does not fail or warn if the |
1148 |
- # directory is nonexistent. |
1149 |
- rm -rf "${D}"/etc/sysconfig |
1150 |
- rm -rf "${D}"/var |
1151 |
- rm -rf "${D}"/run |
1152 |
- |
1153 |
- use libvirtd || return 0 |
1154 |
- # From here, only libvirtd-related instructions, be warned! |
1155 |
- |
1156 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
1157 |
- |
1158 |
- newinitd "${S}/libvirtd.init" libvirtd |
1159 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
1160 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
1161 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
1162 |
- |
1163 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
1164 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
1165 |
- |
1166 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
1167 |
- DISABLE_AUTOFORMATTING=true |
1168 |
- readme.gentoo_create_doc |
1169 |
-} |
1170 |
- |
1171 |
-pkg_postinst() { |
1172 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1173 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
1174 |
- fi |
1175 |
- |
1176 |
- use libvirtd || return 0 |
1177 |
- # From here, only libvirtd-related instructions, be warned! |
1178 |
- tmpfiles_process libvirtd.conf |
1179 |
- readme.gentoo_print_elog |
1180 |
-} |
1181 |
|
1182 |
diff --git a/app-emulation/libvirt/libvirt-8.3.0.ebuild b/app-emulation/libvirt/libvirt-8.3.0.ebuild |
1183 |
deleted file mode 100644 |
1184 |
index 6128a61b974d..000000000000 |
1185 |
--- a/app-emulation/libvirt/libvirt-8.3.0.ebuild |
1186 |
+++ /dev/null |
1187 |
@@ -1,340 +0,0 @@ |
1188 |
-# Copyright 1999-2022 Gentoo Authors |
1189 |
-# Distributed under the terms of the GNU General Public License v2 |
1190 |
- |
1191 |
-EAPI=8 |
1192 |
- |
1193 |
-# Packages which get releases together: |
1194 |
-# app-emacs/nxml-libvirt-schemas |
1195 |
-# dev-python/libvirt-python |
1196 |
-# dev-perl/Sys-Virt |
1197 |
-# app-emulation/libvirt |
1198 |
-# Please bump them together! |
1199 |
- |
1200 |
-PYTHON_COMPAT=( python3_{8..11} ) |
1201 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libvirt.org.asc |
1202 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
1203 |
- |
1204 |
-if [[ ${PV} = *9999* ]]; then |
1205 |
- inherit git-r3 |
1206 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
1207 |
- EGIT_BRANCH="master" |
1208 |
-else |
1209 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
1210 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
1211 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
1212 |
-fi |
1213 |
- |
1214 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
1215 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
1216 |
-LICENSE="LGPL-2.1" |
1217 |
-SLOT="0/${PV}" |
1218 |
-IUSE=" |
1219 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
1220 |
- iscsi iscsi-direct +libvirtd lvm libssh libssh2 lxc nfs nls numa openvz |
1221 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
1222 |
- virtualbox +virt-network wireshark-plugins xen zfs |
1223 |
-" |
1224 |
- |
1225 |
-REQUIRED_USE=" |
1226 |
- firewalld? ( virt-network ) |
1227 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
1228 |
- lxc? ( caps libvirtd ) |
1229 |
- openvz? ( libvirtd ) |
1230 |
- qemu? ( libvirtd ) |
1231 |
- virt-network? ( libvirtd ) |
1232 |
- virtualbox? ( libvirtd ) |
1233 |
- xen? ( libvirtd )" |
1234 |
- |
1235 |
-BDEPEND=" |
1236 |
- app-text/xhtml1 |
1237 |
- dev-lang/perl |
1238 |
- dev-libs/libxslt |
1239 |
- dev-perl/XML-XPath |
1240 |
- dev-python/docutils |
1241 |
- virtual/pkgconfig |
1242 |
- net-libs/rpcsvc-proto |
1243 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
1244 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
1245 |
- |
1246 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
1247 |
-# non-optional, so put it into RDEPEND. |
1248 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
1249 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
1250 |
-# we must go with the most recent |
1251 |
-RDEPEND=" |
1252 |
- acct-user/qemu |
1253 |
- app-misc/scrub |
1254 |
- >=dev-libs/glib-2.56.0 |
1255 |
- dev-libs/libgcrypt |
1256 |
- dev-libs/libnl:3 |
1257 |
- >=dev-libs/libxml2-2.9.1 |
1258 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
1259 |
- >=net-libs/gnutls-3.2.0:= |
1260 |
- net-libs/libtirpc:= |
1261 |
- >=net-misc/curl-7.18.0 |
1262 |
- sys-apps/dbus |
1263 |
- sys-apps/dmidecode |
1264 |
- sys-devel/gettext |
1265 |
- >=sys-libs/readline-7.0:= |
1266 |
- virtual/acl |
1267 |
- apparmor? ( sys-libs/libapparmor ) |
1268 |
- audit? ( sys-process/audit ) |
1269 |
- caps? ( sys-libs/libcap-ng ) |
1270 |
- dtrace? ( dev-util/systemtap ) |
1271 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
1272 |
- fuse? ( sys-fs/fuse:= ) |
1273 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
1274 |
- iscsi? ( >=sys-block/open-iscsi-1.18.0 ) |
1275 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
1276 |
- libssh? ( >=net-libs/libssh-0.7:= ) |
1277 |
- libssh2? ( >=net-libs/libssh2-1.3 ) |
1278 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
1279 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
1280 |
- nfs? ( net-fs/nfs-utils ) |
1281 |
- numa? ( |
1282 |
- >sys-process/numactl-2.0.2 |
1283 |
- sys-process/numad |
1284 |
- ) |
1285 |
- parted? ( |
1286 |
- >=sys-block/parted-1.8[device-mapper] |
1287 |
- sys-fs/lvm2[-device-mapper-only(-)] |
1288 |
- ) |
1289 |
- pcap? ( >=net-libs/libpcap-1.8.0 ) |
1290 |
- policykit? ( |
1291 |
- acct-group/libvirt |
1292 |
- >=sys-auth/polkit-0.9 |
1293 |
- ) |
1294 |
- qemu? ( |
1295 |
- >=app-emulation/qemu-2.11 |
1296 |
- >=dev-libs/yajl-2.0.3:= |
1297 |
- ) |
1298 |
- rbd? ( sys-cluster/ceph ) |
1299 |
- sasl? ( >=dev-libs/cyrus-sasl-2.1.26 ) |
1300 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
1301 |
- virt-network? ( |
1302 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
1303 |
- net-firewall/ebtables |
1304 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
1305 |
- net-misc/radvd |
1306 |
- sys-apps/iproute2[-minimal] |
1307 |
- ) |
1308 |
- wireshark-plugins? ( >=net-analyzer/wireshark-2.6.0:= ) |
1309 |
- xen? ( |
1310 |
- >=app-emulation/xen-4.9.0 |
1311 |
- app-emulation/xen-tools:= |
1312 |
- ) |
1313 |
- udev? ( |
1314 |
- virtual/libudev:= |
1315 |
- >=x11-libs/libpciaccess-0.10.9 |
1316 |
- ) |
1317 |
- zfs? ( sys-fs/zfs ) |
1318 |
- kernel_linux? ( sys-apps/util-linux )" |
1319 |
-DEPEND="${BDEPEND} |
1320 |
- ${RDEPEND} |
1321 |
- ${PYTHON_DEPS}" |
1322 |
- |
1323 |
-PATCHES=( |
1324 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
1325 |
- "${FILESDIR}"/${PN}-8.2.0-do-not-use-sysconfig.patch |
1326 |
- "${FILESDIR}"/${PN}-8.2.0-fix-paths-for-apparmor.patch |
1327 |
-) |
1328 |
- |
1329 |
-pkg_setup() { |
1330 |
- # Check kernel configuration: |
1331 |
- CONFIG_CHECK="" |
1332 |
- use fuse && CONFIG_CHECK+=" |
1333 |
- ~FUSE_FS" |
1334 |
- |
1335 |
- use lvm && CONFIG_CHECK+=" |
1336 |
- ~BLK_DEV_DM |
1337 |
- ~DM_MULTIPATH |
1338 |
- ~DM_SNAPSHOT" |
1339 |
- |
1340 |
- use lxc && CONFIG_CHECK+=" |
1341 |
- ~BLK_CGROUP |
1342 |
- ~CGROUP_CPUACCT |
1343 |
- ~CGROUP_DEVICE |
1344 |
- ~CGROUP_FREEZER |
1345 |
- ~CGROUP_NET_PRIO |
1346 |
- ~CGROUP_PERF |
1347 |
- ~CGROUPS |
1348 |
- ~CGROUP_SCHED |
1349 |
- ~CPUSETS |
1350 |
- ~IPC_NS |
1351 |
- ~MACVLAN |
1352 |
- ~NAMESPACES |
1353 |
- ~NET_CLS_CGROUP |
1354 |
- ~NET_NS |
1355 |
- ~PID_NS |
1356 |
- ~POSIX_MQUEUE |
1357 |
- ~SECURITYFS |
1358 |
- ~USER_NS |
1359 |
- ~UTS_NS |
1360 |
- ~VETH |
1361 |
- ~!GRKERNSEC_CHROOT_MOUNT |
1362 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
1363 |
- ~!GRKERNSEC_CHROOT_PIVOT |
1364 |
- ~!GRKERNSEC_CHROOT_CHMOD |
1365 |
- ~!GRKERNSEC_CHROOT_CAPS" |
1366 |
- |
1367 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
1368 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
1369 |
- |
1370 |
- use virt-network && CONFIG_CHECK+=" |
1371 |
- ~BRIDGE_EBT_MARK_T |
1372 |
- ~BRIDGE_NF_EBTABLES |
1373 |
- ~NETFILTER_ADVANCED |
1374 |
- ~NETFILTER_XT_CONNMARK |
1375 |
- ~NETFILTER_XT_MARK |
1376 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
1377 |
- ~IP_NF_FILTER |
1378 |
- ~IP_NF_MANGLE |
1379 |
- ~IP_NF_NAT |
1380 |
- ~IP_NF_TARGET_MASQUERADE |
1381 |
- ~IP6_NF_FILTER |
1382 |
- ~IP6_NF_MANGLE |
1383 |
- ~IP6_NF_NAT" |
1384 |
- # Bandwidth Limiting Support |
1385 |
- use virt-network && CONFIG_CHECK+=" |
1386 |
- ~BRIDGE_EBT_T_NAT |
1387 |
- ~IP_NF_TARGET_REJECT |
1388 |
- ~NET_ACT_POLICE |
1389 |
- ~NET_CLS_FW |
1390 |
- ~NET_CLS_U32 |
1391 |
- ~NET_SCH_HTB |
1392 |
- ~NET_SCH_INGRESS |
1393 |
- ~NET_SCH_SFQ" |
1394 |
- |
1395 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
1396 |
- |
1397 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
1398 |
- linux-info_pkg_setup |
1399 |
- fi |
1400 |
- |
1401 |
- python-any-r1_pkg_setup |
1402 |
-} |
1403 |
- |
1404 |
-src_prepare() { |
1405 |
- touch "${S}/.mailmap" || die |
1406 |
- |
1407 |
- default |
1408 |
- python_fix_shebang . |
1409 |
- |
1410 |
- # Skip fragile tests which relies on pristine environment |
1411 |
- # (Breaks because of sandbox environment variables) |
1412 |
- # bug #802876 |
1413 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
1414 |
- |
1415 |
- # Tweak the init script: |
1416 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
1417 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
1418 |
- -i "${S}/libvirtd.init" || die "sed failed" |
1419 |
-} |
1420 |
- |
1421 |
-src_configure() { |
1422 |
- local emesonargs=( |
1423 |
- $(meson_feature apparmor) |
1424 |
- $(meson_feature apparmor apparmor_profiles) |
1425 |
- $(meson_feature audit) |
1426 |
- $(meson_feature caps capng) |
1427 |
- $(meson_feature dtrace) |
1428 |
- $(meson_feature firewalld) |
1429 |
- $(meson_feature fuse) |
1430 |
- $(meson_feature glusterfs) |
1431 |
- $(meson_feature glusterfs storage_gluster) |
1432 |
- $(meson_feature iscsi storage_iscsi) |
1433 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
1434 |
- $(meson_feature libvirtd driver_libvirtd) |
1435 |
- $(meson_feature libssh) |
1436 |
- $(meson_feature libssh2) |
1437 |
- $(meson_feature lvm storage_lvm) |
1438 |
- $(meson_feature lvm storage_mpath) |
1439 |
- $(meson_feature lxc driver_lxc) |
1440 |
- $(meson_feature nls) |
1441 |
- $(meson_feature numa numactl) |
1442 |
- $(meson_feature numa numad) |
1443 |
- $(meson_feature openvz driver_openvz) |
1444 |
- $(meson_feature parted storage_disk) |
1445 |
- $(meson_feature pcap libpcap) |
1446 |
- $(meson_feature policykit polkit) |
1447 |
- $(meson_feature qemu driver_qemu) |
1448 |
- $(meson_feature qemu yajl) |
1449 |
- $(meson_feature rbd storage_rbd) |
1450 |
- $(meson_feature sasl) |
1451 |
- $(meson_feature selinux) |
1452 |
- $(meson_feature udev) |
1453 |
- $(meson_feature virt-network driver_network) |
1454 |
- $(meson_feature virtualbox driver_vbox) |
1455 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
1456 |
- $(meson_feature xen driver_libxl) |
1457 |
- $(meson_feature zfs storage_zfs) |
1458 |
- |
1459 |
- -Dnetcf=disabled |
1460 |
- -Dsanlock=disabled |
1461 |
- |
1462 |
- -Ddriver_esx=enabled |
1463 |
- -Dinit_script=systemd |
1464 |
- -Dqemu_user=$(usex caps qemu root) |
1465 |
- -Dqemu_group=$(usex caps qemu root) |
1466 |
- -Ddriver_remote=enabled |
1467 |
- -Dstorage_fs=enabled |
1468 |
- -Ddriver_vmware=enabled |
1469 |
- |
1470 |
- --localstatedir="${EPREFIX}/var" |
1471 |
- -Drunstatedir="${EPREFIX}/run" |
1472 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
1473 |
- ) |
1474 |
- |
1475 |
- meson_src_configure |
1476 |
-} |
1477 |
- |
1478 |
-src_test() { |
1479 |
- export VIR_TEST_DEBUG=1 |
1480 |
- # Don't run the syntax check tests, they're fragile and not relevant |
1481 |
- # to us downstream anyway. |
1482 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
1483 |
- # on slower arches. |
1484 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
1485 |
-} |
1486 |
- |
1487 |
-src_install() { |
1488 |
- meson_src_install |
1489 |
- |
1490 |
- # Depending on configuration option, libvirt will create some bogus |
1491 |
- # directoreis. They are either not used, or libvirtd is able to create |
1492 |
- # them on demand, so let's remove them. |
1493 |
- # |
1494 |
- # Note, we are using -f here so that rm does not fail or warn if the |
1495 |
- # directory is nonexistent. |
1496 |
- rm -rf "${D}"/etc/sysconfig |
1497 |
- rm -rf "${D}"/var |
1498 |
- rm -rf "${D}"/run |
1499 |
- |
1500 |
- use libvirtd || return 0 |
1501 |
- # From here, only libvirtd-related instructions, be warned! |
1502 |
- |
1503 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
1504 |
- |
1505 |
- newinitd "${S}/libvirtd.init" libvirtd |
1506 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
1507 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
1508 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
1509 |
- |
1510 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
1511 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
1512 |
- |
1513 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
1514 |
- DISABLE_AUTOFORMATTING=true |
1515 |
- readme.gentoo_create_doc |
1516 |
-} |
1517 |
- |
1518 |
-pkg_postinst() { |
1519 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1520 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
1521 |
- fi |
1522 |
- |
1523 |
- use libvirtd || return 0 |
1524 |
- # From here, only libvirtd-related instructions, be warned! |
1525 |
- tmpfiles_process libvirtd.conf |
1526 |
- readme.gentoo_print_elog |
1527 |
-} |
1528 |
|
1529 |
diff --git a/app-emulation/libvirt/libvirt-8.4.0.ebuild b/app-emulation/libvirt/libvirt-8.4.0.ebuild |
1530 |
deleted file mode 100644 |
1531 |
index 1ac6f7431bdb..000000000000 |
1532 |
--- a/app-emulation/libvirt/libvirt-8.4.0.ebuild |
1533 |
+++ /dev/null |
1534 |
@@ -1,340 +0,0 @@ |
1535 |
-# Copyright 1999-2022 Gentoo Authors |
1536 |
-# Distributed under the terms of the GNU General Public License v2 |
1537 |
- |
1538 |
-EAPI=8 |
1539 |
- |
1540 |
-# Packages which get releases together: |
1541 |
-# app-emacs/nxml-libvirt-schemas |
1542 |
-# dev-python/libvirt-python |
1543 |
-# dev-perl/Sys-Virt |
1544 |
-# app-emulation/libvirt |
1545 |
-# Please bump them together! |
1546 |
- |
1547 |
-PYTHON_COMPAT=( python3_{8..11} ) |
1548 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libvirt.org.asc |
1549 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
1550 |
- |
1551 |
-if [[ ${PV} = *9999* ]]; then |
1552 |
- inherit git-r3 |
1553 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
1554 |
- EGIT_BRANCH="master" |
1555 |
-else |
1556 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
1557 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
1558 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1559 |
-fi |
1560 |
- |
1561 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
1562 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
1563 |
-LICENSE="LGPL-2.1" |
1564 |
-SLOT="0/${PV}" |
1565 |
-IUSE=" |
1566 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
1567 |
- iscsi iscsi-direct +libvirtd lvm libssh libssh2 lxc nfs nls numa openvz |
1568 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
1569 |
- virtualbox +virt-network wireshark-plugins xen zfs |
1570 |
-" |
1571 |
- |
1572 |
-REQUIRED_USE=" |
1573 |
- firewalld? ( virt-network ) |
1574 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
1575 |
- lxc? ( caps libvirtd ) |
1576 |
- openvz? ( libvirtd ) |
1577 |
- qemu? ( libvirtd ) |
1578 |
- virt-network? ( libvirtd ) |
1579 |
- virtualbox? ( libvirtd ) |
1580 |
- xen? ( libvirtd )" |
1581 |
- |
1582 |
-BDEPEND=" |
1583 |
- app-text/xhtml1 |
1584 |
- dev-lang/perl |
1585 |
- dev-libs/libxslt |
1586 |
- dev-perl/XML-XPath |
1587 |
- dev-python/docutils |
1588 |
- virtual/pkgconfig |
1589 |
- net-libs/rpcsvc-proto |
1590 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
1591 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
1592 |
- |
1593 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
1594 |
-# non-optional, so put it into RDEPEND. |
1595 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
1596 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
1597 |
-# we must go with the most recent |
1598 |
-RDEPEND=" |
1599 |
- acct-user/qemu |
1600 |
- app-misc/scrub |
1601 |
- >=dev-libs/glib-2.56.0 |
1602 |
- dev-libs/libgcrypt |
1603 |
- dev-libs/libnl:3 |
1604 |
- >=dev-libs/libxml2-2.9.1 |
1605 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
1606 |
- >=net-libs/gnutls-3.2.0:= |
1607 |
- net-libs/libtirpc:= |
1608 |
- >=net-misc/curl-7.18.0 |
1609 |
- sys-apps/dbus |
1610 |
- sys-apps/dmidecode |
1611 |
- sys-devel/gettext |
1612 |
- >=sys-libs/readline-7.0:= |
1613 |
- virtual/acl |
1614 |
- apparmor? ( sys-libs/libapparmor ) |
1615 |
- audit? ( sys-process/audit ) |
1616 |
- caps? ( sys-libs/libcap-ng ) |
1617 |
- dtrace? ( dev-util/systemtap ) |
1618 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
1619 |
- fuse? ( sys-fs/fuse:= ) |
1620 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
1621 |
- iscsi? ( >=sys-block/open-iscsi-1.18.0 ) |
1622 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
1623 |
- libssh? ( >=net-libs/libssh-0.7:= ) |
1624 |
- libssh2? ( >=net-libs/libssh2-1.3 ) |
1625 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
1626 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
1627 |
- nfs? ( net-fs/nfs-utils ) |
1628 |
- numa? ( |
1629 |
- >sys-process/numactl-2.0.2 |
1630 |
- sys-process/numad |
1631 |
- ) |
1632 |
- parted? ( |
1633 |
- >=sys-block/parted-1.8[device-mapper] |
1634 |
- sys-fs/lvm2[-device-mapper-only(-)] |
1635 |
- ) |
1636 |
- pcap? ( >=net-libs/libpcap-1.8.0 ) |
1637 |
- policykit? ( |
1638 |
- acct-group/libvirt |
1639 |
- >=sys-auth/polkit-0.9 |
1640 |
- ) |
1641 |
- qemu? ( |
1642 |
- >=app-emulation/qemu-2.11 |
1643 |
- >=dev-libs/yajl-2.0.3:= |
1644 |
- ) |
1645 |
- rbd? ( sys-cluster/ceph ) |
1646 |
- sasl? ( >=dev-libs/cyrus-sasl-2.1.26 ) |
1647 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
1648 |
- virt-network? ( |
1649 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
1650 |
- net-firewall/ebtables |
1651 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
1652 |
- net-misc/radvd |
1653 |
- sys-apps/iproute2[-minimal] |
1654 |
- ) |
1655 |
- wireshark-plugins? ( >=net-analyzer/wireshark-2.6.0:= ) |
1656 |
- xen? ( |
1657 |
- >=app-emulation/xen-4.9.0 |
1658 |
- app-emulation/xen-tools:= |
1659 |
- ) |
1660 |
- udev? ( |
1661 |
- virtual/libudev:= |
1662 |
- >=x11-libs/libpciaccess-0.10.9 |
1663 |
- ) |
1664 |
- zfs? ( sys-fs/zfs ) |
1665 |
- kernel_linux? ( sys-apps/util-linux )" |
1666 |
-DEPEND="${BDEPEND} |
1667 |
- ${RDEPEND} |
1668 |
- ${PYTHON_DEPS}" |
1669 |
- |
1670 |
-PATCHES=( |
1671 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
1672 |
- "${FILESDIR}"/${PN}-8.2.0-do-not-use-sysconfig.patch |
1673 |
- "${FILESDIR}"/${PN}-8.2.0-fix-paths-for-apparmor.patch |
1674 |
-) |
1675 |
- |
1676 |
-pkg_setup() { |
1677 |
- # Check kernel configuration: |
1678 |
- CONFIG_CHECK="" |
1679 |
- use fuse && CONFIG_CHECK+=" |
1680 |
- ~FUSE_FS" |
1681 |
- |
1682 |
- use lvm && CONFIG_CHECK+=" |
1683 |
- ~BLK_DEV_DM |
1684 |
- ~DM_MULTIPATH |
1685 |
- ~DM_SNAPSHOT" |
1686 |
- |
1687 |
- use lxc && CONFIG_CHECK+=" |
1688 |
- ~BLK_CGROUP |
1689 |
- ~CGROUP_CPUACCT |
1690 |
- ~CGROUP_DEVICE |
1691 |
- ~CGROUP_FREEZER |
1692 |
- ~CGROUP_NET_PRIO |
1693 |
- ~CGROUP_PERF |
1694 |
- ~CGROUPS |
1695 |
- ~CGROUP_SCHED |
1696 |
- ~CPUSETS |
1697 |
- ~IPC_NS |
1698 |
- ~MACVLAN |
1699 |
- ~NAMESPACES |
1700 |
- ~NET_CLS_CGROUP |
1701 |
- ~NET_NS |
1702 |
- ~PID_NS |
1703 |
- ~POSIX_MQUEUE |
1704 |
- ~SECURITYFS |
1705 |
- ~USER_NS |
1706 |
- ~UTS_NS |
1707 |
- ~VETH |
1708 |
- ~!GRKERNSEC_CHROOT_MOUNT |
1709 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
1710 |
- ~!GRKERNSEC_CHROOT_PIVOT |
1711 |
- ~!GRKERNSEC_CHROOT_CHMOD |
1712 |
- ~!GRKERNSEC_CHROOT_CAPS" |
1713 |
- |
1714 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
1715 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
1716 |
- |
1717 |
- use virt-network && CONFIG_CHECK+=" |
1718 |
- ~BRIDGE_EBT_MARK_T |
1719 |
- ~BRIDGE_NF_EBTABLES |
1720 |
- ~NETFILTER_ADVANCED |
1721 |
- ~NETFILTER_XT_CONNMARK |
1722 |
- ~NETFILTER_XT_MARK |
1723 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
1724 |
- ~IP_NF_FILTER |
1725 |
- ~IP_NF_MANGLE |
1726 |
- ~IP_NF_NAT |
1727 |
- ~IP_NF_TARGET_MASQUERADE |
1728 |
- ~IP6_NF_FILTER |
1729 |
- ~IP6_NF_MANGLE |
1730 |
- ~IP6_NF_NAT" |
1731 |
- # Bandwidth Limiting Support |
1732 |
- use virt-network && CONFIG_CHECK+=" |
1733 |
- ~BRIDGE_EBT_T_NAT |
1734 |
- ~IP_NF_TARGET_REJECT |
1735 |
- ~NET_ACT_POLICE |
1736 |
- ~NET_CLS_FW |
1737 |
- ~NET_CLS_U32 |
1738 |
- ~NET_SCH_HTB |
1739 |
- ~NET_SCH_INGRESS |
1740 |
- ~NET_SCH_SFQ" |
1741 |
- |
1742 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
1743 |
- |
1744 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
1745 |
- linux-info_pkg_setup |
1746 |
- fi |
1747 |
- |
1748 |
- python-any-r1_pkg_setup |
1749 |
-} |
1750 |
- |
1751 |
-src_prepare() { |
1752 |
- touch "${S}/.mailmap" || die |
1753 |
- |
1754 |
- default |
1755 |
- python_fix_shebang . |
1756 |
- |
1757 |
- # Skip fragile tests which relies on pristine environment |
1758 |
- # (Breaks because of sandbox environment variables) |
1759 |
- # bug #802876 |
1760 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
1761 |
- |
1762 |
- # Tweak the init script: |
1763 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
1764 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
1765 |
- -i "${S}/libvirtd.init" || die "sed failed" |
1766 |
-} |
1767 |
- |
1768 |
-src_configure() { |
1769 |
- local emesonargs=( |
1770 |
- $(meson_feature apparmor) |
1771 |
- $(meson_feature apparmor apparmor_profiles) |
1772 |
- $(meson_feature audit) |
1773 |
- $(meson_feature caps capng) |
1774 |
- $(meson_feature dtrace) |
1775 |
- $(meson_feature firewalld) |
1776 |
- $(meson_feature fuse) |
1777 |
- $(meson_feature glusterfs) |
1778 |
- $(meson_feature glusterfs storage_gluster) |
1779 |
- $(meson_feature iscsi storage_iscsi) |
1780 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
1781 |
- $(meson_feature libvirtd driver_libvirtd) |
1782 |
- $(meson_feature libssh) |
1783 |
- $(meson_feature libssh2) |
1784 |
- $(meson_feature lvm storage_lvm) |
1785 |
- $(meson_feature lvm storage_mpath) |
1786 |
- $(meson_feature lxc driver_lxc) |
1787 |
- $(meson_feature nls) |
1788 |
- $(meson_feature numa numactl) |
1789 |
- $(meson_feature numa numad) |
1790 |
- $(meson_feature openvz driver_openvz) |
1791 |
- $(meson_feature parted storage_disk) |
1792 |
- $(meson_feature pcap libpcap) |
1793 |
- $(meson_feature policykit polkit) |
1794 |
- $(meson_feature qemu driver_qemu) |
1795 |
- $(meson_feature qemu yajl) |
1796 |
- $(meson_feature rbd storage_rbd) |
1797 |
- $(meson_feature sasl) |
1798 |
- $(meson_feature selinux) |
1799 |
- $(meson_feature udev) |
1800 |
- $(meson_feature virt-network driver_network) |
1801 |
- $(meson_feature virtualbox driver_vbox) |
1802 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
1803 |
- $(meson_feature xen driver_libxl) |
1804 |
- $(meson_feature zfs storage_zfs) |
1805 |
- |
1806 |
- -Dnetcf=disabled |
1807 |
- -Dsanlock=disabled |
1808 |
- |
1809 |
- -Ddriver_esx=enabled |
1810 |
- -Dinit_script=systemd |
1811 |
- -Dqemu_user=$(usex caps qemu root) |
1812 |
- -Dqemu_group=$(usex caps qemu root) |
1813 |
- -Ddriver_remote=enabled |
1814 |
- -Dstorage_fs=enabled |
1815 |
- -Ddriver_vmware=enabled |
1816 |
- |
1817 |
- --localstatedir="${EPREFIX}/var" |
1818 |
- -Drunstatedir="${EPREFIX}/run" |
1819 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
1820 |
- ) |
1821 |
- |
1822 |
- meson_src_configure |
1823 |
-} |
1824 |
- |
1825 |
-src_test() { |
1826 |
- export VIR_TEST_DEBUG=1 |
1827 |
- # Don't run the syntax check tests, they're fragile and not relevant |
1828 |
- # to us downstream anyway. |
1829 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
1830 |
- # on slower arches. |
1831 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
1832 |
-} |
1833 |
- |
1834 |
-src_install() { |
1835 |
- meson_src_install |
1836 |
- |
1837 |
- # Depending on configuration option, libvirt will create some bogus |
1838 |
- # directoreis. They are either not used, or libvirtd is able to create |
1839 |
- # them on demand, so let's remove them. |
1840 |
- # |
1841 |
- # Note, we are using -f here so that rm does not fail or warn if the |
1842 |
- # directory is nonexistent. |
1843 |
- rm -rf "${D}"/etc/sysconfig |
1844 |
- rm -rf "${D}"/var |
1845 |
- rm -rf "${D}"/run |
1846 |
- |
1847 |
- use libvirtd || return 0 |
1848 |
- # From here, only libvirtd-related instructions, be warned! |
1849 |
- |
1850 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
1851 |
- |
1852 |
- newinitd "${S}/libvirtd.init" libvirtd |
1853 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
1854 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
1855 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
1856 |
- |
1857 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
1858 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
1859 |
- |
1860 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
1861 |
- DISABLE_AUTOFORMATTING=true |
1862 |
- readme.gentoo_create_doc |
1863 |
-} |
1864 |
- |
1865 |
-pkg_postinst() { |
1866 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
1867 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
1868 |
- fi |
1869 |
- |
1870 |
- use libvirtd || return 0 |
1871 |
- # From here, only libvirtd-related instructions, be warned! |
1872 |
- tmpfiles_process libvirtd.conf |
1873 |
- readme.gentoo_print_elog |
1874 |
-} |
1875 |
|
1876 |
diff --git a/app-emulation/libvirt/libvirt-8.5.0.ebuild b/app-emulation/libvirt/libvirt-8.5.0.ebuild |
1877 |
deleted file mode 100644 |
1878 |
index f81dbc7d518b..000000000000 |
1879 |
--- a/app-emulation/libvirt/libvirt-8.5.0.ebuild |
1880 |
+++ /dev/null |
1881 |
@@ -1,341 +0,0 @@ |
1882 |
-# Copyright 1999-2022 Gentoo Authors |
1883 |
-# Distributed under the terms of the GNU General Public License v2 |
1884 |
- |
1885 |
-EAPI=8 |
1886 |
- |
1887 |
-# Packages which get releases together: |
1888 |
-# app-emacs/nxml-libvirt-schemas |
1889 |
-# dev-python/libvirt-python |
1890 |
-# dev-perl/Sys-Virt |
1891 |
-# app-emulation/libvirt |
1892 |
-# Please bump them together! |
1893 |
- |
1894 |
-PYTHON_COMPAT=( python3_{8..11} ) |
1895 |
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libvirt.org.asc |
1896 |
-inherit meson bash-completion-r1 linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig |
1897 |
- |
1898 |
-if [[ ${PV} = *9999* ]]; then |
1899 |
- inherit git-r3 |
1900 |
- EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git" |
1901 |
- EGIT_BRANCH="master" |
1902 |
-else |
1903 |
- SRC_URI="https://libvirt.org/sources/${P}.tar.xz |
1904 |
- verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )" |
1905 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
1906 |
-fi |
1907 |
- |
1908 |
-DESCRIPTION="C toolkit to manipulate virtual machines" |
1909 |
-HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/" |
1910 |
-LICENSE="LGPL-2.1" |
1911 |
-SLOT="0/${PV}" |
1912 |
-IUSE=" |
1913 |
- apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs |
1914 |
- iscsi iscsi-direct +libvirtd lvm libssh libssh2 lxc nfs nls numa openvz |
1915 |
- parted pcap policykit +qemu rbd sasl selinux +udev |
1916 |
- virtualbox +virt-network wireshark-plugins xen zfs |
1917 |
-" |
1918 |
- |
1919 |
-REQUIRED_USE=" |
1920 |
- firewalld? ( virt-network ) |
1921 |
- libvirtd? ( || ( lxc openvz qemu virtualbox xen ) ) |
1922 |
- lxc? ( caps libvirtd ) |
1923 |
- openvz? ( libvirtd ) |
1924 |
- qemu? ( libvirtd ) |
1925 |
- virt-network? ( libvirtd ) |
1926 |
- virtualbox? ( libvirtd ) |
1927 |
- xen? ( libvirtd )" |
1928 |
- |
1929 |
-BDEPEND=" |
1930 |
- app-text/xhtml1 |
1931 |
- dev-lang/perl |
1932 |
- dev-libs/libxslt |
1933 |
- dev-perl/XML-XPath |
1934 |
- dev-python/docutils |
1935 |
- virtual/pkgconfig |
1936 |
- net-libs/rpcsvc-proto |
1937 |
- bash-completion? ( >=app-shells/bash-completion-2.0 ) |
1938 |
- verify-sig? ( sec-keys/openpgp-keys-libvirt )" |
1939 |
- |
1940 |
-# gettext.sh command is used by the libvirt command wrappers, and it's |
1941 |
-# non-optional, so put it into RDEPEND. |
1942 |
-# We can use both libnl:1.1 and libnl:3, but if you have both installed, the |
1943 |
-# package will use 3 by default. Since we don't have slot pinning in an API, |
1944 |
-# we must go with the most recent |
1945 |
-RDEPEND=" |
1946 |
- acct-user/qemu |
1947 |
- app-misc/scrub |
1948 |
- >=dev-libs/glib-2.56.0 |
1949 |
- dev-libs/libgcrypt |
1950 |
- dev-libs/libnl:3 |
1951 |
- >=dev-libs/libxml2-2.9.1 |
1952 |
- >=net-analyzer/openbsd-netcat-1.105-r1 |
1953 |
- >=net-libs/gnutls-3.2.0:= |
1954 |
- net-libs/libtirpc:= |
1955 |
- >=net-misc/curl-7.18.0 |
1956 |
- sys-apps/dbus |
1957 |
- sys-apps/dmidecode |
1958 |
- sys-devel/gettext |
1959 |
- >=sys-libs/readline-7.0:= |
1960 |
- virtual/acl |
1961 |
- apparmor? ( sys-libs/libapparmor ) |
1962 |
- audit? ( sys-process/audit ) |
1963 |
- caps? ( sys-libs/libcap-ng ) |
1964 |
- dtrace? ( dev-util/systemtap ) |
1965 |
- firewalld? ( >=net-firewall/firewalld-0.6.3 ) |
1966 |
- fuse? ( sys-fs/fuse:= ) |
1967 |
- glusterfs? ( >=sys-cluster/glusterfs-3.4.1 ) |
1968 |
- iscsi? ( >=sys-block/open-iscsi-1.18.0 ) |
1969 |
- iscsi-direct? ( >=net-libs/libiscsi-1.18.0 ) |
1970 |
- libssh? ( >=net-libs/libssh-0.7:= ) |
1971 |
- libssh2? ( >=net-libs/libssh2-1.3 ) |
1972 |
- lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] ) |
1973 |
- lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] ) |
1974 |
- nfs? ( net-fs/nfs-utils ) |
1975 |
- numa? ( |
1976 |
- >sys-process/numactl-2.0.2 |
1977 |
- sys-process/numad |
1978 |
- ) |
1979 |
- parted? ( |
1980 |
- >=sys-block/parted-1.8[device-mapper] |
1981 |
- sys-fs/lvm2[-device-mapper-only(-)] |
1982 |
- ) |
1983 |
- pcap? ( >=net-libs/libpcap-1.8.0 ) |
1984 |
- policykit? ( |
1985 |
- acct-group/libvirt |
1986 |
- >=sys-auth/polkit-0.9 |
1987 |
- ) |
1988 |
- qemu? ( |
1989 |
- >=app-emulation/qemu-2.11 |
1990 |
- >=dev-libs/yajl-2.0.3:= |
1991 |
- ) |
1992 |
- rbd? ( sys-cluster/ceph ) |
1993 |
- sasl? ( >=dev-libs/cyrus-sasl-2.1.26 ) |
1994 |
- selinux? ( >=sys-libs/libselinux-2.0.85 ) |
1995 |
- virt-network? ( |
1996 |
- net-dns/dnsmasq[dhcp,ipv6(+),script] |
1997 |
- net-firewall/ebtables |
1998 |
- >=net-firewall/iptables-1.4.10[ipv6(+)] |
1999 |
- net-misc/radvd |
2000 |
- sys-apps/iproute2[-minimal] |
2001 |
- ) |
2002 |
- wireshark-plugins? ( >=net-analyzer/wireshark-2.6.0:= ) |
2003 |
- xen? ( |
2004 |
- >=app-emulation/xen-4.9.0 |
2005 |
- app-emulation/xen-tools:= |
2006 |
- ) |
2007 |
- udev? ( |
2008 |
- virtual/libudev:= |
2009 |
- >=x11-libs/libpciaccess-0.10.9 |
2010 |
- ) |
2011 |
- zfs? ( sys-fs/zfs ) |
2012 |
- kernel_linux? ( sys-apps/util-linux )" |
2013 |
-DEPEND="${BDEPEND} |
2014 |
- ${RDEPEND} |
2015 |
- ${PYTHON_DEPS}" |
2016 |
- |
2017 |
-PATCHES=( |
2018 |
- "${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch |
2019 |
- "${FILESDIR}"/${PN}-8.2.0-do-not-use-sysconfig.patch |
2020 |
- "${FILESDIR}"/${PN}-8.2.0-fix-paths-for-apparmor.patch |
2021 |
- "${FILESDIR}"/${PN}-8.5.0-glibc-2.36.patch |
2022 |
-) |
2023 |
- |
2024 |
-pkg_setup() { |
2025 |
- # Check kernel configuration: |
2026 |
- CONFIG_CHECK="" |
2027 |
- use fuse && CONFIG_CHECK+=" |
2028 |
- ~FUSE_FS" |
2029 |
- |
2030 |
- use lvm && CONFIG_CHECK+=" |
2031 |
- ~BLK_DEV_DM |
2032 |
- ~DM_MULTIPATH |
2033 |
- ~DM_SNAPSHOT" |
2034 |
- |
2035 |
- use lxc && CONFIG_CHECK+=" |
2036 |
- ~BLK_CGROUP |
2037 |
- ~CGROUP_CPUACCT |
2038 |
- ~CGROUP_DEVICE |
2039 |
- ~CGROUP_FREEZER |
2040 |
- ~CGROUP_NET_PRIO |
2041 |
- ~CGROUP_PERF |
2042 |
- ~CGROUPS |
2043 |
- ~CGROUP_SCHED |
2044 |
- ~CPUSETS |
2045 |
- ~IPC_NS |
2046 |
- ~MACVLAN |
2047 |
- ~NAMESPACES |
2048 |
- ~NET_CLS_CGROUP |
2049 |
- ~NET_NS |
2050 |
- ~PID_NS |
2051 |
- ~POSIX_MQUEUE |
2052 |
- ~SECURITYFS |
2053 |
- ~USER_NS |
2054 |
- ~UTS_NS |
2055 |
- ~VETH |
2056 |
- ~!GRKERNSEC_CHROOT_MOUNT |
2057 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
2058 |
- ~!GRKERNSEC_CHROOT_PIVOT |
2059 |
- ~!GRKERNSEC_CHROOT_CHMOD |
2060 |
- ~!GRKERNSEC_CHROOT_CAPS" |
2061 |
- |
2062 |
- kernel_is lt 4 7 && use lxc && CONFIG_CHECK+=" |
2063 |
- ~DEVPTS_MULTIPLE_INSTANCES" |
2064 |
- |
2065 |
- use virt-network && CONFIG_CHECK+=" |
2066 |
- ~BRIDGE_EBT_MARK_T |
2067 |
- ~BRIDGE_NF_EBTABLES |
2068 |
- ~NETFILTER_ADVANCED |
2069 |
- ~NETFILTER_XT_CONNMARK |
2070 |
- ~NETFILTER_XT_MARK |
2071 |
- ~NETFILTER_XT_TARGET_CHECKSUM |
2072 |
- ~IP_NF_FILTER |
2073 |
- ~IP_NF_MANGLE |
2074 |
- ~IP_NF_NAT |
2075 |
- ~IP_NF_TARGET_MASQUERADE |
2076 |
- ~IP6_NF_FILTER |
2077 |
- ~IP6_NF_MANGLE |
2078 |
- ~IP6_NF_NAT" |
2079 |
- # Bandwidth Limiting Support |
2080 |
- use virt-network && CONFIG_CHECK+=" |
2081 |
- ~BRIDGE_EBT_T_NAT |
2082 |
- ~IP_NF_TARGET_REJECT |
2083 |
- ~NET_ACT_POLICE |
2084 |
- ~NET_CLS_FW |
2085 |
- ~NET_CLS_U32 |
2086 |
- ~NET_SCH_HTB |
2087 |
- ~NET_SCH_INGRESS |
2088 |
- ~NET_SCH_SFQ" |
2089 |
- |
2090 |
- ERROR_USER_NS="Optional depending on LXC configuration." |
2091 |
- |
2092 |
- if [[ -n ${CONFIG_CHECK} ]]; then |
2093 |
- linux-info_pkg_setup |
2094 |
- fi |
2095 |
- |
2096 |
- python-any-r1_pkg_setup |
2097 |
-} |
2098 |
- |
2099 |
-src_prepare() { |
2100 |
- touch "${S}/.mailmap" || die |
2101 |
- |
2102 |
- default |
2103 |
- python_fix_shebang . |
2104 |
- |
2105 |
- # Skip fragile tests which relies on pristine environment |
2106 |
- # (Breaks because of sandbox environment variables) |
2107 |
- # bug #802876 |
2108 |
- sed -i -e "/commandtest/d" tests/meson.build || die |
2109 |
- |
2110 |
- # Tweak the init script: |
2111 |
- cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die |
2112 |
- sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ |
2113 |
- -i "${S}/libvirtd.init" || die "sed failed" |
2114 |
-} |
2115 |
- |
2116 |
-src_configure() { |
2117 |
- local emesonargs=( |
2118 |
- $(meson_feature apparmor) |
2119 |
- $(meson_feature apparmor apparmor_profiles) |
2120 |
- $(meson_feature audit) |
2121 |
- $(meson_feature caps capng) |
2122 |
- $(meson_feature dtrace) |
2123 |
- $(meson_feature firewalld) |
2124 |
- $(meson_feature fuse) |
2125 |
- $(meson_feature glusterfs) |
2126 |
- $(meson_feature glusterfs storage_gluster) |
2127 |
- $(meson_feature iscsi storage_iscsi) |
2128 |
- $(meson_feature iscsi-direct storage_iscsi_direct) |
2129 |
- $(meson_feature libvirtd driver_libvirtd) |
2130 |
- $(meson_feature libssh) |
2131 |
- $(meson_feature libssh2) |
2132 |
- $(meson_feature lvm storage_lvm) |
2133 |
- $(meson_feature lvm storage_mpath) |
2134 |
- $(meson_feature lxc driver_lxc) |
2135 |
- $(meson_feature nls) |
2136 |
- $(meson_feature numa numactl) |
2137 |
- $(meson_feature numa numad) |
2138 |
- $(meson_feature openvz driver_openvz) |
2139 |
- $(meson_feature parted storage_disk) |
2140 |
- $(meson_feature pcap libpcap) |
2141 |
- $(meson_feature policykit polkit) |
2142 |
- $(meson_feature qemu driver_qemu) |
2143 |
- $(meson_feature qemu yajl) |
2144 |
- $(meson_feature rbd storage_rbd) |
2145 |
- $(meson_feature sasl) |
2146 |
- $(meson_feature selinux) |
2147 |
- $(meson_feature udev) |
2148 |
- $(meson_feature virt-network driver_network) |
2149 |
- $(meson_feature virtualbox driver_vbox) |
2150 |
- $(meson_feature wireshark-plugins wireshark_dissector) |
2151 |
- $(meson_feature xen driver_libxl) |
2152 |
- $(meson_feature zfs storage_zfs) |
2153 |
- |
2154 |
- -Dnetcf=disabled |
2155 |
- -Dsanlock=disabled |
2156 |
- |
2157 |
- -Ddriver_esx=enabled |
2158 |
- -Dinit_script=systemd |
2159 |
- -Dqemu_user=$(usex caps qemu root) |
2160 |
- -Dqemu_group=$(usex caps qemu root) |
2161 |
- -Ddriver_remote=enabled |
2162 |
- -Dstorage_fs=enabled |
2163 |
- -Ddriver_vmware=enabled |
2164 |
- |
2165 |
- --localstatedir="${EPREFIX}/var" |
2166 |
- -Drunstatedir="${EPREFIX}/run" |
2167 |
- -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" |
2168 |
- ) |
2169 |
- |
2170 |
- meson_src_configure |
2171 |
-} |
2172 |
- |
2173 |
-src_test() { |
2174 |
- export VIR_TEST_DEBUG=1 |
2175 |
- # Don't run the syntax check tests, they're fragile and not relevant |
2176 |
- # to us downstream anyway. |
2177 |
- # We also crank up the timeout (as Fedora does) just to preempt failures |
2178 |
- # on slower arches. |
2179 |
- meson_src_test --no-suite syntax-check --timeout-multiplier 10 |
2180 |
-} |
2181 |
- |
2182 |
-src_install() { |
2183 |
- meson_src_install |
2184 |
- |
2185 |
- # Depending on configuration option, libvirt will create some bogus |
2186 |
- # directoreis. They are either not used, or libvirtd is able to create |
2187 |
- # them on demand, so let's remove them. |
2188 |
- # |
2189 |
- # Note, we are using -f here so that rm does not fail or warn if the |
2190 |
- # directory is nonexistent. |
2191 |
- rm -rf "${D}"/etc/sysconfig |
2192 |
- rm -rf "${D}"/var |
2193 |
- rm -rf "${D}"/run |
2194 |
- |
2195 |
- use libvirtd || return 0 |
2196 |
- # From here, only libvirtd-related instructions, be warned! |
2197 |
- |
2198 |
- newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf |
2199 |
- |
2200 |
- newinitd "${S}/libvirtd.init" libvirtd |
2201 |
- newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests |
2202 |
- newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd |
2203 |
- newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd |
2204 |
- |
2205 |
- newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd |
2206 |
- newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests |
2207 |
- |
2208 |
- DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3") |
2209 |
- DISABLE_AUTOFORMATTING=true |
2210 |
- readme.gentoo_create_doc |
2211 |
-} |
2212 |
- |
2213 |
-pkg_postinst() { |
2214 |
- if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
2215 |
- touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die |
2216 |
- fi |
2217 |
- |
2218 |
- use libvirtd || return 0 |
2219 |
- # From here, only libvirtd-related instructions, be warned! |
2220 |
- tmpfiles_process libvirtd.conf |
2221 |
- readme.gentoo_print_elog |
2222 |
-} |