1 |
commit: 0efdce03862201ff917e5102de893d29a9c304a8 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 26 01:37:33 2018 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 01:37:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0efdce03 |
7 |
|
8 |
app-emulation/lxc: drop obsolete versions |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
app-emulation/lxc/Manifest | 4 - |
13 |
.../lxc/files/lxc-1.0.11-bash-completion.patch | 27 --- |
14 |
app-emulation/lxc/files/lxc-1.0.11-major.patch | 64 ------- |
15 |
.../lxc/files/lxc-1.0.8-bash-completion.patch | 35 ---- |
16 |
app-emulation/lxc/lxc-1.0.11.ebuild | 184 ------------------ |
17 |
app-emulation/lxc/lxc-1.0.8.ebuild | 188 ------------------ |
18 |
app-emulation/lxc/lxc-2.0.7.ebuild | 201 ------------------- |
19 |
app-emulation/lxc/lxc-2.0.9.ebuild | 212 --------------------- |
20 |
8 files changed, 915 deletions(-) |
21 |
|
22 |
diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest |
23 |
index b6edf39a003..b823f03c02c 100644 |
24 |
--- a/app-emulation/lxc/Manifest |
25 |
+++ b/app-emulation/lxc/Manifest |
26 |
@@ -1,6 +1,2 @@ |
27 |
-DIST lxc-1.0.11.tar.gz 850645 BLAKE2B 1a8eff91d970d3160d5ca7338f4e4d68c722a277a804396e7c30b34dbf4aeccc0609982940bb660992880078167cdf3382a55af404b3e52ebe8cd8af104b1efc SHA512 5537e61a286cfce3c763b81eec625538c796ea1e8f5e94c5a28fc8964762c8c0efa7983a188d521bf3420a42569d7124e6587950bc90b79583fa42cc8e2f8f74 |
28 |
-DIST lxc-1.0.8.tar.gz 575127 BLAKE2B 246ac7a2b4306c52a741b2f763bcc81d9999fb27942ef93d6a786ed2ea010c646f5a2388407d26425387b8a819cacae927c8512995bf19b11d610e1887ea6470 SHA512 f552a4f48bb47d26c6b9ddaf8221a439c0848e3f54ec41b77d54717c21bddd56193941046cc96c699790e8265e762a926469c25ee687adcf7795f2906b1c260a |
29 |
-DIST lxc-2.0.7.tar.gz 792557 BLAKE2B e5f1e6d8961938200e116527fab8ce341cf285826afdccac88f4bae65ffd649a406dac7555024557f38c4b415a59cd3b5fb255f1dbf015ce01d4975bed3b1c80 SHA512 eb48dc800ce43d2f4d46e0cecc4d0a714b3e22c6a4975776b54d17d1d20d5a1411e6b605215282f1f77286ddf22b61c80b86b83752191fc18023894ef7a1c44d |
30 |
-DIST lxc-2.0.9.tar.gz 1333044 BLAKE2B 44d405bf933923a020a6aadca9d84cfce04db72ac0ef1a727c83eca8121683419a2e74849f08fb4773010002928b424840fa9ec19ab619e420b1dfb5156de5c6 SHA512 c7c595fbc6163e500700b756ae30c96b70d41b9bf297a609622b5d5b8431171ed8db70fa8368c3b9650c86452820e9da7f329f9186ae75c24a7adb15d5826102 |
31 |
DIST lxc-2.1.1.tar.gz 1378640 BLAKE2B 5fca516540a886729434579ff99acf3baa06977fa0e0b6f24dbf15094626335fc073597d308276e3dd20e27ceabf1477cc8e99d1fd24cf50b9aed2720b887b69 SHA512 2989d57acddfe091adcf8031721c3c9a2f8eff5476bd6155366b76ea7511e0f6120e669276e056e3963863e0f0acf3b095d44c36fa6652e67c197671f28cbdd4 |
32 |
DIST lxc-3.0.0.tar.gz 1233316 BLAKE2B ba726a07f48b1d32366012c8d885a853e33f88d8c45c910b061d9deecf472d940f7d45a1e742c8194517ba3231e1875a49bbf303b2c3fd2c9ece33b941670bb7 SHA512 21372e6fe4d38e2cf54707fab4133137793deff1dd500ed7ed02c03bbaa809de56c7490971594cddbdcb2b96f0c03ab5dfb43a8582a584598a12c5943b7ca490 |
33 |
|
34 |
diff --git a/app-emulation/lxc/files/lxc-1.0.11-bash-completion.patch b/app-emulation/lxc/files/lxc-1.0.11-bash-completion.patch |
35 |
deleted file mode 100644 |
36 |
index d8d0bac55a7..00000000000 |
37 |
--- a/app-emulation/lxc/files/lxc-1.0.11-bash-completion.patch |
38 |
+++ /dev/null |
39 |
@@ -1,27 +0,0 @@ |
40 |
-diff --git a/config/bash/lxc.in b/config/bash/lxc.in |
41 |
-index 344d5cb2..f051eaae 100644 |
42 |
---- a/config/bash/lxc.in |
43 |
-+++ b/config/bash/lxc.in |
44 |
-@@ -1,4 +1,3 @@ |
45 |
--_have lxc-start && { |
46 |
- _lxc_names() { |
47 |
- COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) ) |
48 |
- } |
49 |
-@@ -100,4 +99,3 @@ _have lxc-start && { |
50 |
- |
51 |
- complete -o default -F _lxc_generic_o lxc-clone |
52 |
- complete -o default -F _lxc_generic_o lxc-start-ephemeral |
53 |
--} |
54 |
-diff --git a/configure.ac b/configure.ac |
55 |
-index 2ea88c19..f52d772a 100644 |
56 |
---- a/configure.ac |
57 |
-+++ b/configure.ac |
58 |
-@@ -429,7 +429,7 @@ AM_CONDITIONAL([ENABLE_BASH], [test "x$enable_bash" = "xyes"]) |
59 |
- AM_COND_IF([ENABLE_BASH], |
60 |
- [AC_MSG_CHECKING([bash completion directory]) |
61 |
- PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], , |
62 |
-- bashcompdir="${sysconfdir}/bash_completion.d") |
63 |
-+ bashcompdir="$datadir/bash-completion/completions") |
64 |
- AC_MSG_RESULT([$bashcompdir]) |
65 |
- AC_SUBST(bashcompdir) |
66 |
- ]) |
67 |
|
68 |
diff --git a/app-emulation/lxc/files/lxc-1.0.11-major.patch b/app-emulation/lxc/files/lxc-1.0.11-major.patch |
69 |
deleted file mode 100644 |
70 |
index 8a3c2b2bd6d..00000000000 |
71 |
--- a/app-emulation/lxc/files/lxc-1.0.11-major.patch |
72 |
+++ /dev/null |
73 |
@@ -1,64 +0,0 @@ |
74 |
-diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c |
75 |
-index 59eda7e4..44b71d4c 100644 |
76 |
---- a/src/lxc/bdev.c |
77 |
-+++ b/src/lxc/bdev.c |
78 |
-@@ -41,6 +41,7 @@ |
79 |
- #include <libgen.h> |
80 |
- #include <linux/loop.h> |
81 |
- #include <dirent.h> |
82 |
-+#include <sys/sysmacros.h> |
83 |
- |
84 |
- #include "lxc.h" |
85 |
- #include "config.h" |
86 |
-@@ -58,9 +59,6 @@ |
87 |
- #ifdef MAJOR_IN_MKDEV |
88 |
- # include <sys/mkdev.h> |
89 |
- #endif |
90 |
--#ifdef MAJOR_IN_SYSMACROS |
91 |
--# include <sys/sysmacros.h> |
92 |
--#endif |
93 |
- |
94 |
- #ifndef BLKGETSIZE64 |
95 |
- #define BLKGETSIZE64 _IOR(0x12,114,size_t) |
96 |
-diff --git a/src/lxc/conf.c b/src/lxc/conf.c |
97 |
-index 5d583d5f..d4217c27 100644 |
98 |
---- a/src/lxc/conf.c |
99 |
-+++ b/src/lxc/conf.c |
100 |
-@@ -36,14 +36,12 @@ |
101 |
- #include <pwd.h> |
102 |
- #include <grp.h> |
103 |
- #include <time.h> |
104 |
-+#include <sys/sysmacros.h> |
105 |
- |
106 |
- /* makedev() */ |
107 |
- #ifdef MAJOR_IN_MKDEV |
108 |
- # include <sys/mkdev.h> |
109 |
- #endif |
110 |
--#ifdef MAJOR_IN_SYSMACROS |
111 |
--# include <sys/sysmacros.h> |
112 |
--#endif |
113 |
- |
114 |
- #ifdef HAVE_STATVFS |
115 |
- #include <sys/statvfs.h> |
116 |
-diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c |
117 |
-index 3963a3ee..30ac6733 100644 |
118 |
---- a/src/lxc/lxccontainer.c |
119 |
-+++ b/src/lxc/lxccontainer.c |
120 |
-@@ -36,6 +36,7 @@ |
121 |
- #include <stdint.h> |
122 |
- #include <grp.h> |
123 |
- #include <sys/syscall.h> |
124 |
-+#include <sys/sysmacros.h> |
125 |
- |
126 |
- #include <lxc/lxccontainer.h> |
127 |
- #include <lxc/version.h> |
128 |
-@@ -60,9 +61,6 @@ |
129 |
- #ifdef MAJOR_IN_MKDEV |
130 |
- # include <sys/mkdev.h> |
131 |
- #endif |
132 |
--#ifdef MAJOR_IN_SYSMACROS |
133 |
--# include <sys/sysmacros.h> |
134 |
--#endif |
135 |
- |
136 |
- #if HAVE_IFADDRS_H |
137 |
- #include <ifaddrs.h> |
138 |
|
139 |
diff --git a/app-emulation/lxc/files/lxc-1.0.8-bash-completion.patch b/app-emulation/lxc/files/lxc-1.0.8-bash-completion.patch |
140 |
deleted file mode 100644 |
141 |
index e9e0e6c98df..00000000000 |
142 |
--- a/app-emulation/lxc/files/lxc-1.0.8-bash-completion.patch |
143 |
+++ /dev/null |
144 |
@@ -1,35 +0,0 @@ |
145 |
-Index: lxc-lxc-1.0.8/config/bash/Makefile.am |
146 |
-=================================================================== |
147 |
---- lxc-lxc-1.0.8.orig/config/bash/Makefile.am |
148 |
-+++ lxc-lxc-1.0.8/config/bash/Makefile.am |
149 |
-@@ -2,12 +2,12 @@ EXTRA_DIST = lxc |
150 |
- |
151 |
- if ENABLE_BASH |
152 |
- install-bash: |
153 |
-- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/ |
154 |
-- $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/ |
155 |
-+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/ |
156 |
-+ $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/ |
157 |
- |
158 |
- uninstall-bash: |
159 |
-- rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc |
160 |
-- rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || : |
161 |
-+ rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc |
162 |
-+ rmdir $(DESTDIR)$(datarootdir)/bash-completion// || : |
163 |
- |
164 |
- install-data-local: install-bash |
165 |
- uninstall-local: uninstall-bash |
166 |
-Index: lxc-lxc-1.0.8/config/bash/lxc.in |
167 |
-=================================================================== |
168 |
---- lxc-lxc-1.0.8.orig/config/bash/lxc.in |
169 |
-+++ lxc-lxc-1.0.8/config/bash/lxc.in |
170 |
-@@ -1,4 +1,3 @@ |
171 |
--have lxc-start && { |
172 |
- _lxc_names() { |
173 |
- COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) ) |
174 |
- } |
175 |
-@@ -100,4 +99,3 @@ have lxc-start && { |
176 |
- |
177 |
- complete -o default -F _lxc_generic_o lxc-clone |
178 |
- complete -o default -F _lxc_generic_o lxc-start-ephemeral |
179 |
--} |
180 |
|
181 |
diff --git a/app-emulation/lxc/lxc-1.0.11.ebuild b/app-emulation/lxc/lxc-1.0.11.ebuild |
182 |
deleted file mode 100644 |
183 |
index 2658e3a05db..00000000000 |
184 |
--- a/app-emulation/lxc/lxc-1.0.11.ebuild |
185 |
+++ /dev/null |
186 |
@@ -1,184 +0,0 @@ |
187 |
-# Copyright 1999-2017 Gentoo Foundation |
188 |
-# Distributed under the terms of the GNU General Public License v2 |
189 |
- |
190 |
-EAPI="5" |
191 |
- |
192 |
-PYTHON_COMPAT=( python3_{4,5,6} ) |
193 |
-DISTUTILS_OPTIONAL=1 |
194 |
- |
195 |
-inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd |
196 |
- |
197 |
-DESCRIPTION="LinuX Containers userspace utilities" |
198 |
-HOMEPAGE="https://linuxcontainers.org/" |
199 |
-SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz" |
200 |
- |
201 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
202 |
- |
203 |
-LICENSE="LGPL-3" |
204 |
-SLOT="0" |
205 |
-IUSE="doc examples lua python seccomp" |
206 |
- |
207 |
-RDEPEND="net-libs/gnutls |
208 |
- sys-libs/libcap |
209 |
- lua? ( >=dev-lang/lua-5.1:= ) |
210 |
- python? ( ${PYTHON_DEPS} ) |
211 |
- seccomp? ( sys-libs/libseccomp )" |
212 |
- |
213 |
-DEPEND="${RDEPEND} |
214 |
- doc? ( app-text/docbook-sgml-utils ) |
215 |
- >=sys-kernel/linux-headers-3.2" |
216 |
- |
217 |
-RDEPEND="${RDEPEND} |
218 |
- sys-apps/util-linux |
219 |
- app-misc/pax-utils |
220 |
- virtual/awk" |
221 |
- |
222 |
-CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
223 |
- ~CPUSETS ~CGROUP_CPUACCT |
224 |
- ~CGROUP_SCHED |
225 |
- |
226 |
- ~NAMESPACES |
227 |
- ~IPC_NS ~USER_NS ~PID_NS |
228 |
- |
229 |
- ~CGROUP_FREEZER |
230 |
- ~UTS_NS ~NET_NS |
231 |
- ~VETH ~MACVLAN |
232 |
- |
233 |
- ~POSIX_MQUEUE |
234 |
- ~!NETPRIO_CGROUP |
235 |
- |
236 |
- ~!GRKERNSEC_CHROOT_MOUNT |
237 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
238 |
- ~!GRKERNSEC_CHROOT_PIVOT |
239 |
- ~!GRKERNSEC_CHROOT_CHMOD |
240 |
- ~!GRKERNSEC_CHROOT_CAPS |
241 |
- ~!GRKERNSEC_PROC |
242 |
-" |
243 |
- |
244 |
-ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
245 |
- |
246 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
247 |
- |
248 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
249 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
250 |
- |
251 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
252 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
253 |
- |
254 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
255 |
- |
256 |
-ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
257 |
- |
258 |
-ERROR_GRKERNSEC_CHROOT_MOUNT=":CONFIG_GRKERNSEC_CHROOT_MOUNT some GRSEC features make LXC unusable see postinst notes" |
259 |
-ERROR_GRKERNSEC_CHROOT_DOUBLE=":CONFIG_GRKERNSEC_CHROOT_DOUBLE some GRSEC features make LXC unusable see postinst notes" |
260 |
-ERROR_GRKERNSEC_CHROOT_PIVOT=":CONFIG_GRKERNSEC_CHROOT_PIVOT some GRSEC features make LXC unusable see postinst notes" |
261 |
-ERROR_GRKERNSEC_CHROOT_CHMOD=":CONFIG_GRKERNSEC_CHROOT_CHMOD some GRSEC features make LXC unusable see postinst notes" |
262 |
-ERROR_GRKERNSEC_CHROOT_CAPS=":CONFIG_GRKERNSEC_CHROOT_CAPS some GRSEC features make LXC unusable see postinst notes" |
263 |
-ERROR_GRKERNSEC_PROC=":CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers" |
264 |
- |
265 |
-DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
266 |
- |
267 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
268 |
- |
269 |
-src_prepare() { |
270 |
- sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die |
271 |
- if [[ -n ${BACKPORTS} ]]; then |
272 |
- epatch "${WORKDIR}"/patches/* |
273 |
- fi |
274 |
- |
275 |
- epatch "${FILESDIR}"/${PN}-1.0.11-bash-completion.patch |
276 |
- epatch "${FILESDIR}"/${PN}-1.0.11-major.patch |
277 |
- |
278 |
- eautoreconf |
279 |
-} |
280 |
- |
281 |
-src_configure() { |
282 |
- append-flags -fno-strict-aliasing |
283 |
- |
284 |
- econf \ |
285 |
- --localstatedir=/var \ |
286 |
- --bindir=/usr/sbin \ |
287 |
- --docdir=/usr/share/doc/${PF} \ |
288 |
- --with-config-path=/etc/lxc \ |
289 |
- --with-rootfs-path=/usr/lib/lxc/rootfs \ |
290 |
- --with-distro=gentoo \ |
291 |
- $(use_enable doc) \ |
292 |
- --disable-apparmor \ |
293 |
- $(use_enable examples) \ |
294 |
- $(use_enable lua) \ |
295 |
- $(use_enable seccomp) \ |
296 |
- --disable-python |
297 |
-} |
298 |
- |
299 |
-python_compile() { |
300 |
- distutils-r1_python_compile build_ext -I ../ -L ../${PN} |
301 |
-} |
302 |
- |
303 |
-src_compile() { |
304 |
- default |
305 |
- |
306 |
- if use python; then |
307 |
- pushd "${S}/src/python-${PN}" > /dev/null |
308 |
- distutils-r1_src_compile |
309 |
- popd > /dev/null |
310 |
- fi |
311 |
-} |
312 |
- |
313 |
-src_install() { |
314 |
- default |
315 |
- |
316 |
- mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
317 |
- bashcomp_alias ${PN}-start \ |
318 |
- ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait} |
319 |
- |
320 |
- if use python; then |
321 |
- pushd "${S}/src/python-lxc" > /dev/null |
322 |
- # Unset DOCS. This has been handled by the default target |
323 |
- unset DOCS |
324 |
- distutils-r1_src_install |
325 |
- popd > /dev/null |
326 |
- fi |
327 |
- |
328 |
- keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc |
329 |
- |
330 |
- find "${D}" -name '*.la' -delete |
331 |
- |
332 |
- # Gentoo-specific additions! |
333 |
- # Use initd.3 per #517144 |
334 |
- newinitd "${FILESDIR}/${PN}.initd.3" ${PN} |
335 |
- |
336 |
- # lxc-devsetup script |
337 |
- exeinto /usr/libexec/${PN} |
338 |
- doexe config/init/systemd/${PN}-devsetup |
339 |
- # Use that script with the systemd service (Similar to upstream |
340 |
- # Makefile.am |
341 |
- cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service || die |
342 |
- sed -i \ |
343 |
- "/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \ |
344 |
- ${PN}_at.service \ |
345 |
- || die "Failed to add ${PN}-devsetup to the systemd service file" |
346 |
- systemd_newunit ${PN}_at.service "lxc@.service" |
347 |
-} |
348 |
- |
349 |
-pkg_postinst() { |
350 |
- elog "There is an init script provided with the package now; no documentation" |
351 |
- elog "is currently available though, so please check out /etc/init.d/lxc ." |
352 |
- elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
353 |
- elog "to start the container defined into /etc/lxc/configname.conf ." |
354 |
- elog "For further information about LXC development see" |
355 |
- elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
356 |
- elog "" |
357 |
- ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2" |
358 |
- ewarn "and previous versions. This means you'll have to use syntax like the following" |
359 |
- ewarn "" |
360 |
- ewarn " lxc.rootfs = /container" |
361 |
- ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0" |
362 |
- ewarn "" |
363 |
- ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you" |
364 |
- ewarn "will need sys-apps/yum or dev-util/debootstrap." |
365 |
- ewarn "" |
366 |
- ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to" |
367 |
- ewarn "work, while others will actually make it much more secure. Please refer to" |
368 |
- ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further" |
369 |
- ewarn "details." |
370 |
-} |
371 |
|
372 |
diff --git a/app-emulation/lxc/lxc-1.0.8.ebuild b/app-emulation/lxc/lxc-1.0.8.ebuild |
373 |
deleted file mode 100644 |
374 |
index 1c55e591610..00000000000 |
375 |
--- a/app-emulation/lxc/lxc-1.0.8.ebuild |
376 |
+++ /dev/null |
377 |
@@ -1,188 +0,0 @@ |
378 |
-# Copyright 1999-2017 Gentoo Foundation |
379 |
-# Distributed under the terms of the GNU General Public License v2 |
380 |
- |
381 |
-EAPI="5" |
382 |
- |
383 |
-MY_P="${P/_/-}" |
384 |
-PYTHON_COMPAT=( python3_4 ) |
385 |
-DISTUTILS_OPTIONAL=1 |
386 |
- |
387 |
-inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd |
388 |
- |
389 |
-DESCRIPTION="LinuX Containers userspace utilities" |
390 |
-HOMEPAGE="https://linuxcontainers.org/" |
391 |
-SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz" |
392 |
- |
393 |
-KEYWORDS="amd64 ~arm ~arm64 ppc64 x86" |
394 |
- |
395 |
-LICENSE="LGPL-3" |
396 |
-SLOT="0" |
397 |
-IUSE="doc examples lua python seccomp" |
398 |
- |
399 |
-RDEPEND="net-libs/gnutls |
400 |
- sys-libs/libcap |
401 |
- lua? ( >=dev-lang/lua-5.1:= ) |
402 |
- python? ( ${PYTHON_DEPS} ) |
403 |
- seccomp? ( sys-libs/libseccomp )" |
404 |
- |
405 |
-DEPEND="${RDEPEND} |
406 |
- doc? ( app-text/docbook-sgml-utils ) |
407 |
- >=sys-kernel/linux-headers-3.2" |
408 |
- |
409 |
-RDEPEND="${RDEPEND} |
410 |
- sys-apps/util-linux |
411 |
- app-misc/pax-utils |
412 |
- virtual/awk" |
413 |
- |
414 |
-CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
415 |
- ~CPUSETS ~CGROUP_CPUACCT |
416 |
- ~RESOURCE_COUNTERS |
417 |
- ~CGROUP_SCHED |
418 |
- |
419 |
- ~NAMESPACES |
420 |
- ~IPC_NS ~USER_NS ~PID_NS |
421 |
- |
422 |
- ~DEVPTS_MULTIPLE_INSTANCES |
423 |
- ~CGROUP_FREEZER |
424 |
- ~UTS_NS ~NET_NS |
425 |
- ~VETH ~MACVLAN |
426 |
- |
427 |
- ~POSIX_MQUEUE |
428 |
- ~!NETPRIO_CGROUP |
429 |
- |
430 |
- ~!GRKERNSEC_CHROOT_MOUNT |
431 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
432 |
- ~!GRKERNSEC_CHROOT_PIVOT |
433 |
- ~!GRKERNSEC_CHROOT_CHMOD |
434 |
- ~!GRKERNSEC_CHROOT_CAPS |
435 |
- ~!GRKERNSEC_PROC |
436 |
-" |
437 |
- |
438 |
-ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
439 |
- |
440 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
441 |
- |
442 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
443 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
444 |
- |
445 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
446 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
447 |
- |
448 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
449 |
- |
450 |
-ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
451 |
- |
452 |
-ERROR_GRKERNSEC_CHROOT_MOUNT=":CONFIG_GRKERNSEC_CHROOT_MOUNT some GRSEC features make LXC unusable see postinst notes" |
453 |
-ERROR_GRKERNSEC_CHROOT_DOUBLE=":CONFIG_GRKERNSEC_CHROOT_DOUBLE some GRSEC features make LXC unusable see postinst notes" |
454 |
-ERROR_GRKERNSEC_CHROOT_PIVOT=":CONFIG_GRKERNSEC_CHROOT_PIVOT some GRSEC features make LXC unusable see postinst notes" |
455 |
-ERROR_GRKERNSEC_CHROOT_CHMOD=":CONFIG_GRKERNSEC_CHROOT_CHMOD some GRSEC features make LXC unusable see postinst notes" |
456 |
-ERROR_GRKERNSEC_CHROOT_CAPS=":CONFIG_GRKERNSEC_CHROOT_CAPS some GRSEC features make LXC unusable see postinst notes" |
457 |
-ERROR_GRKERNSEC_PROC=":CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers" |
458 |
- |
459 |
-DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
460 |
- |
461 |
-S="${WORKDIR}/${PN}-${MY_P}" |
462 |
- |
463 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
464 |
- |
465 |
-src_prepare() { |
466 |
- sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die |
467 |
- if [[ -n ${BACKPORTS} ]]; then |
468 |
- epatch "${WORKDIR}"/patches/* |
469 |
- fi |
470 |
- |
471 |
- epatch "${FILESDIR}"/${PN}-1.0.8-bash-completion.patch |
472 |
- |
473 |
- eautoreconf |
474 |
-} |
475 |
- |
476 |
-src_configure() { |
477 |
- append-flags -fno-strict-aliasing |
478 |
- |
479 |
- econf \ |
480 |
- --localstatedir=/var \ |
481 |
- --bindir=/usr/sbin \ |
482 |
- --docdir=/usr/share/doc/${PF} \ |
483 |
- --with-config-path=/etc/lxc \ |
484 |
- --with-rootfs-path=/usr/lib/lxc/rootfs \ |
485 |
- --with-distro=gentoo \ |
486 |
- $(use_enable doc) \ |
487 |
- --disable-apparmor \ |
488 |
- $(use_enable examples) \ |
489 |
- $(use_enable lua) \ |
490 |
- $(use_enable seccomp) \ |
491 |
- --disable-python |
492 |
-} |
493 |
- |
494 |
-python_compile() { |
495 |
- distutils-r1_python_compile build_ext -I ../ -L ../${PN} |
496 |
-} |
497 |
- |
498 |
-src_compile() { |
499 |
- default |
500 |
- |
501 |
- if use python; then |
502 |
- pushd "${S}/src/python-${PN}" > /dev/null |
503 |
- distutils-r1_src_compile |
504 |
- popd > /dev/null |
505 |
- fi |
506 |
-} |
507 |
- |
508 |
-src_install() { |
509 |
- default |
510 |
- |
511 |
- mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
512 |
- bashcomp_alias ${PN}-start \ |
513 |
- ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait} |
514 |
- |
515 |
- if use python; then |
516 |
- pushd "${S}/src/python-lxc" > /dev/null |
517 |
- # Unset DOCS. This has been handled by the default target |
518 |
- unset DOCS |
519 |
- distutils-r1_src_install |
520 |
- popd > /dev/null |
521 |
- fi |
522 |
- |
523 |
- keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc |
524 |
- |
525 |
- find "${D}" -name '*.la' -delete |
526 |
- |
527 |
- # Gentoo-specific additions! |
528 |
- # Use initd.3 per #517144 |
529 |
- newinitd "${FILESDIR}/${PN}.initd.3" ${PN} |
530 |
- |
531 |
- # lxc-devsetup script |
532 |
- exeinto /usr/libexec/${PN} |
533 |
- doexe config/init/systemd/${PN}-devsetup |
534 |
- # Use that script with the systemd service (Similar to upstream |
535 |
- # Makefile.am |
536 |
- cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service || die |
537 |
- sed -i \ |
538 |
- "/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \ |
539 |
- ${PN}_at.service \ |
540 |
- || die "Failed to add ${PN}-devsetup to the systemd service file" |
541 |
- systemd_newunit ${PN}_at.service "lxc@.service" |
542 |
-} |
543 |
- |
544 |
-pkg_postinst() { |
545 |
- elog "There is an init script provided with the package now; no documentation" |
546 |
- elog "is currently available though, so please check out /etc/init.d/lxc ." |
547 |
- elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
548 |
- elog "to start the container defined into /etc/lxc/configname.conf ." |
549 |
- elog "For further information about LXC development see" |
550 |
- elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
551 |
- elog "" |
552 |
- ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2" |
553 |
- ewarn "and previous versions. This means you'll have to use syntax like the following" |
554 |
- ewarn "" |
555 |
- ewarn " lxc.rootfs = /container" |
556 |
- ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0" |
557 |
- ewarn "" |
558 |
- ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you" |
559 |
- ewarn "will need sys-apps/yum or dev-util/debootstrap." |
560 |
- ewarn "" |
561 |
- ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to" |
562 |
- ewarn "work, while others will actually make it much more secure. Please refer to" |
563 |
- ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further" |
564 |
- ewarn "details." |
565 |
-} |
566 |
|
567 |
diff --git a/app-emulation/lxc/lxc-2.0.7.ebuild b/app-emulation/lxc/lxc-2.0.7.ebuild |
568 |
deleted file mode 100644 |
569 |
index 22003a834e9..00000000000 |
570 |
--- a/app-emulation/lxc/lxc-2.0.7.ebuild |
571 |
+++ /dev/null |
572 |
@@ -1,201 +0,0 @@ |
573 |
-# Copyright 1999-2017 Gentoo Foundation |
574 |
-# Distributed under the terms of the GNU General Public License v2 |
575 |
- |
576 |
-EAPI="6" |
577 |
- |
578 |
-MY_P="${P/_/-}" |
579 |
-PYTHON_COMPAT=( python{3_4,3_5} ) |
580 |
-DISTUTILS_OPTIONAL=1 |
581 |
- |
582 |
-inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd |
583 |
- |
584 |
-DESCRIPTION="LinuX Containers userspace utilities" |
585 |
-HOMEPAGE="https://linuxcontainers.org/" |
586 |
-SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz" |
587 |
- |
588 |
-KEYWORDS="amd64 ~arm ~arm64" |
589 |
- |
590 |
-LICENSE="LGPL-3" |
591 |
-SLOT="0" |
592 |
-IUSE="cgmanager doc examples lua python seccomp" |
593 |
- |
594 |
-RDEPEND="net-libs/gnutls |
595 |
- sys-libs/libcap |
596 |
- cgmanager? ( app-admin/cgmanager ) |
597 |
- lua? ( >=dev-lang/lua-5.1:= ) |
598 |
- python? ( ${PYTHON_DEPS} ) |
599 |
- seccomp? ( sys-libs/libseccomp )" |
600 |
- |
601 |
-DEPEND="${RDEPEND} |
602 |
- doc? ( app-text/docbook-sgml-utils ) |
603 |
- >=sys-kernel/linux-headers-3.2" |
604 |
- |
605 |
-RDEPEND="${RDEPEND} |
606 |
- sys-process/criu |
607 |
- sys-apps/util-linux |
608 |
- app-misc/pax-utils |
609 |
- virtual/awk" |
610 |
- |
611 |
-CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
612 |
- ~CPUSETS ~CGROUP_CPUACCT |
613 |
- ~CGROUP_SCHED |
614 |
- |
615 |
- ~NAMESPACES |
616 |
- ~IPC_NS ~USER_NS ~PID_NS |
617 |
- |
618 |
- ~NETLINK_DIAG ~PACKET_DIAG |
619 |
- ~INET_UDP_DIAG ~INET_TCP_DIAG |
620 |
- ~UNIX_DIAG ~CHECKPOINT_RESTORE |
621 |
- |
622 |
- ~CGROUP_FREEZER |
623 |
- ~UTS_NS ~NET_NS |
624 |
- ~VETH ~MACVLAN |
625 |
- |
626 |
- ~POSIX_MQUEUE |
627 |
- ~!NETPRIO_CGROUP |
628 |
- |
629 |
- ~!GRKERNSEC_CHROOT_MOUNT |
630 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
631 |
- ~!GRKERNSEC_CHROOT_PIVOT |
632 |
- ~!GRKERNSEC_CHROOT_CHMOD |
633 |
- ~!GRKERNSEC_CHROOT_CAPS |
634 |
- ~!GRKERNSEC_PROC |
635 |
- ~!GRKERNSEC_SYSFS_RESTRICT |
636 |
-" |
637 |
- |
638 |
-ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
639 |
- |
640 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
641 |
- |
642 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
643 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
644 |
- |
645 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
646 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
647 |
- |
648 |
-ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint" |
649 |
-ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint" |
650 |
-ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint" |
651 |
-ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint" |
652 |
-ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint" |
653 |
-ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint" |
654 |
- |
655 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
656 |
- |
657 |
-ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
658 |
- |
659 |
-ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes" |
660 |
-ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes" |
661 |
-ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes" |
662 |
-ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes" |
663 |
-ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes" |
664 |
-ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers" |
665 |
-ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers" |
666 |
- |
667 |
-DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
668 |
- |
669 |
-S="${WORKDIR}/${PN}-${MY_P}" |
670 |
- |
671 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
672 |
- |
673 |
-pkg_setup() { |
674 |
- kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES" |
675 |
- linux-info_pkg_setup |
676 |
-} |
677 |
- |
678 |
-src_prepare() { |
679 |
- eapply "${FILESDIR}"/${PN}-2.0.6-bash-completion.patch |
680 |
- #558854 |
681 |
- eapply "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch |
682 |
- eapply_user |
683 |
- eautoreconf |
684 |
-} |
685 |
- |
686 |
-src_configure() { |
687 |
- append-flags -fno-strict-aliasing |
688 |
- |
689 |
- if use python; then |
690 |
- #541932 |
691 |
- python_setup "python3*" |
692 |
- export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}" |
693 |
- fi |
694 |
- |
695 |
- # I am not sure about the --with-rootfs-path |
696 |
- # /var/lib/lxc is probably more appropriate than |
697 |
- # /usr/lib/lxc. |
698 |
- econf \ |
699 |
- --localstatedir=/var \ |
700 |
- --bindir=/usr/bin \ |
701 |
- --sbindir=/usr/bin \ |
702 |
- --with-config-path=/var/lib/lxc \ |
703 |
- --with-rootfs-path=/var/lib/lxc/rootfs \ |
704 |
- --with-distro=gentoo \ |
705 |
- --with-runtime-path=/run \ |
706 |
- --disable-apparmor \ |
707 |
- --disable-werror \ |
708 |
- $(use_enable cgmanager) \ |
709 |
- $(use_enable doc) \ |
710 |
- $(use_enable examples) \ |
711 |
- $(use_enable lua) \ |
712 |
- $(use_enable python) \ |
713 |
- $(use_enable seccomp) |
714 |
-} |
715 |
- |
716 |
-python_compile() { |
717 |
- distutils-r1_python_compile build_ext -I ../ -L ../${PN} |
718 |
-} |
719 |
- |
720 |
-src_compile() { |
721 |
- default |
722 |
- |
723 |
- if use python; then |
724 |
- pushd "${S}/src/python-${PN}" > /dev/null |
725 |
- distutils-r1_src_compile |
726 |
- popd > /dev/null |
727 |
- fi |
728 |
-} |
729 |
- |
730 |
-src_install() { |
731 |
- default |
732 |
- |
733 |
- mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
734 |
- # start-ephemeral is no longer a command but removing it here |
735 |
- # generates QA warnings (still in upstream completion script) |
736 |
- bashcomp_alias ${PN}-start \ |
737 |
- ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait} |
738 |
- |
739 |
- if use python; then |
740 |
- pushd "${S}/src/python-lxc" > /dev/null |
741 |
- # Unset DOCS. This has been handled by the default target |
742 |
- unset DOCS |
743 |
- distutils-r1_src_install |
744 |
- popd > /dev/null |
745 |
- fi |
746 |
- |
747 |
- keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc |
748 |
- |
749 |
- find "${D}" -name '*.la' -delete |
750 |
- |
751 |
- # Gentoo-specific additions! |
752 |
- newinitd "${FILESDIR}/${PN}.initd.5" ${PN} |
753 |
- |
754 |
- # Remember to compare our systemd unit file with the upstream one |
755 |
- # config/init/systemd/lxc.service.in |
756 |
- systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service" |
757 |
-} |
758 |
- |
759 |
-pkg_postinst() { |
760 |
- elog "" |
761 |
- elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been" |
762 |
- elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc" |
763 |
- elog "please add the following to your /etc/lxc/default.conf" |
764 |
- elog "lxc.lxcpath = /etc/lxc" |
765 |
- elog "" |
766 |
- elog "There is an init script provided with the package now; no documentation" |
767 |
- elog "is currently available though, so please check out /etc/init.d/lxc ." |
768 |
- elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
769 |
- elog "to start the container defined into /etc/lxc/configname.conf ." |
770 |
- elog "For further information about LXC development see" |
771 |
- elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
772 |
- elog "" |
773 |
-} |
774 |
|
775 |
diff --git a/app-emulation/lxc/lxc-2.0.9.ebuild b/app-emulation/lxc/lxc-2.0.9.ebuild |
776 |
deleted file mode 100644 |
777 |
index 288b3662d1c..00000000000 |
778 |
--- a/app-emulation/lxc/lxc-2.0.9.ebuild |
779 |
+++ /dev/null |
780 |
@@ -1,212 +0,0 @@ |
781 |
-# Copyright 1999-2018 Gentoo Foundation |
782 |
-# Distributed under the terms of the GNU General Public License v2 |
783 |
- |
784 |
-EAPI=6 |
785 |
- |
786 |
-PYTHON_COMPAT=( python3_{4,5,6} ) |
787 |
-DISTUTILS_OPTIONAL=1 |
788 |
- |
789 |
-inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd readme.gentoo-r1 |
790 |
-DESCRIPTION="LinuX Containers userspace utilities" |
791 |
-HOMEPAGE="https://linuxcontainers.org/" |
792 |
-SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz" |
793 |
- |
794 |
-KEYWORDS="amd64 ~arm ~arm64 ppc64 x86" |
795 |
- |
796 |
-LICENSE="LGPL-3" |
797 |
-SLOT="0" |
798 |
-IUSE="cgmanager examples lua python seccomp selinux" |
799 |
- |
800 |
-RDEPEND=" |
801 |
- net-libs/gnutls |
802 |
- sys-libs/libcap |
803 |
- cgmanager? ( app-admin/cgmanager ) |
804 |
- lua? ( >=dev-lang/lua-5.1:= ) |
805 |
- python? ( ${PYTHON_DEPS} ) |
806 |
- seccomp? ( sys-libs/libseccomp ) |
807 |
- selinux? ( sys-libs/libselinux )" |
808 |
- |
809 |
-DEPEND="${RDEPEND} |
810 |
- app-text/docbook-sgml-utils |
811 |
- >=sys-kernel/linux-headers-3.2" |
812 |
- |
813 |
-RDEPEND="${RDEPEND} |
814 |
- sys-apps/util-linux |
815 |
- app-misc/pax-utils |
816 |
- virtual/awk" |
817 |
- |
818 |
-CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
819 |
- ~CPUSETS ~CGROUP_CPUACCT |
820 |
- ~CGROUP_SCHED |
821 |
- |
822 |
- ~NAMESPACES |
823 |
- ~IPC_NS ~USER_NS ~PID_NS |
824 |
- |
825 |
- ~NETLINK_DIAG ~PACKET_DIAG |
826 |
- ~INET_UDP_DIAG ~INET_TCP_DIAG |
827 |
- ~UNIX_DIAG ~CHECKPOINT_RESTORE |
828 |
- |
829 |
- ~CGROUP_FREEZER |
830 |
- ~UTS_NS ~NET_NS |
831 |
- ~VETH ~MACVLAN |
832 |
- |
833 |
- ~POSIX_MQUEUE |
834 |
- ~!NETPRIO_CGROUP |
835 |
- |
836 |
- ~!GRKERNSEC_CHROOT_MOUNT |
837 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
838 |
- ~!GRKERNSEC_CHROOT_PIVOT |
839 |
- ~!GRKERNSEC_CHROOT_CHMOD |
840 |
- ~!GRKERNSEC_CHROOT_CAPS |
841 |
- ~!GRKERNSEC_PROC |
842 |
- ~!GRKERNSEC_SYSFS_RESTRICT |
843 |
-" |
844 |
- |
845 |
-ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
846 |
- |
847 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
848 |
- |
849 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
850 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
851 |
- |
852 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
853 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
854 |
- |
855 |
-ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint" |
856 |
-ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint" |
857 |
-ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint" |
858 |
-ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint" |
859 |
-ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint" |
860 |
-ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint" |
861 |
- |
862 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
863 |
- |
864 |
-ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
865 |
- |
866 |
-ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes" |
867 |
-ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes" |
868 |
-ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes" |
869 |
-ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes" |
870 |
-ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes" |
871 |
-ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers" |
872 |
-ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers" |
873 |
- |
874 |
-DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
875 |
- |
876 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
877 |
- |
878 |
-pkg_setup() { |
879 |
- kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES" |
880 |
- linux-info_pkg_setup |
881 |
-} |
882 |
- |
883 |
-src_prepare() { |
884 |
- eapply "${FILESDIR}"/${PN}-2.0.6-bash-completion.patch |
885 |
- #558854 |
886 |
- eapply "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch |
887 |
- eapply_user |
888 |
- eautoreconf |
889 |
-} |
890 |
- |
891 |
-src_configure() { |
892 |
- append-flags -fno-strict-aliasing |
893 |
- |
894 |
- if use python; then |
895 |
- #541932 |
896 |
- python_setup "python3*" |
897 |
- export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}" |
898 |
- fi |
899 |
- |
900 |
- # I am not sure about the --with-rootfs-path |
901 |
- # /var/lib/lxc is probably more appropriate than |
902 |
- # /usr/lib/lxc. |
903 |
- # Note by holgersson: Why is apparmor disabled? |
904 |
- |
905 |
- # --enable-doc is for manpages which is why we don't link it to a "doc" |
906 |
- # USE flag. We always want man pages. |
907 |
- econf \ |
908 |
- --localstatedir=/var \ |
909 |
- --bindir=/usr/bin \ |
910 |
- --sbindir=/usr/bin \ |
911 |
- --with-config-path=/var/lib/lxc \ |
912 |
- --with-rootfs-path=/var/lib/lxc/rootfs \ |
913 |
- --with-distro=gentoo \ |
914 |
- --with-runtime-path=/run \ |
915 |
- --disable-apparmor \ |
916 |
- --disable-werror \ |
917 |
- --enable-doc \ |
918 |
- $(use_enable cgmanager) \ |
919 |
- $(use_enable examples) \ |
920 |
- $(use_enable lua) \ |
921 |
- $(use_enable python) \ |
922 |
- $(use_enable seccomp) \ |
923 |
- $(use_enable selinux) |
924 |
-} |
925 |
- |
926 |
-python_compile() { |
927 |
- distutils-r1_python_compile build_ext -I ../ -L ../${PN} |
928 |
-} |
929 |
- |
930 |
-src_compile() { |
931 |
- default |
932 |
- |
933 |
- if use python; then |
934 |
- pushd "${S}/src/python-${PN}" > /dev/null |
935 |
- distutils-r1_src_compile |
936 |
- popd > /dev/null |
937 |
- fi |
938 |
-} |
939 |
- |
940 |
-src_install() { |
941 |
- default |
942 |
- |
943 |
- mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
944 |
- # start-ephemeral is no longer a command but removing it here |
945 |
- # generates QA warnings (still in upstream completion script) |
946 |
- bashcomp_alias ${PN}-start \ |
947 |
- ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait} |
948 |
- |
949 |
- if use python; then |
950 |
- pushd "${S}/src/python-lxc" > /dev/null |
951 |
- # Unset DOCS. This has been handled by the default target |
952 |
- unset DOCS |
953 |
- distutils-r1_src_install |
954 |
- popd > /dev/null |
955 |
- fi |
956 |
- |
957 |
- keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc |
958 |
- |
959 |
- find "${D}" -name '*.la' -delete |
960 |
- |
961 |
- # Gentoo-specific additions! |
962 |
- newinitd "${FILESDIR}/${PN}.initd.5" ${PN} |
963 |
- |
964 |
- # Remember to compare our systemd unit file with the upstream one |
965 |
- # config/init/systemd/lxc.service.in |
966 |
- systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service" |
967 |
- |
968 |
- DOC_CONTENTS=" |
969 |
- Starting from version ${PN}-1.1.0-r3, the default lxc path has been |
970 |
- moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc |
971 |
- please add the following to your /etc/lxc/lxc.conf |
972 |
- |
973 |
- lxc.lxcpath = /etc/lxc |
974 |
- |
975 |
- For openrc, there is an init script provided with the package. |
976 |
- You _should_ only need to symlink /etc/init.d/lxc to |
977 |
- /etc/init.d/lxc.configname to start the container defined in |
978 |
- /etc/lxc/configname.conf. |
979 |
- |
980 |
- Correspondingly, for systemd a service file lxc@.service is installed. |
981 |
- Enable and start lxc@configname in order to start the container defined |
982 |
- in /etc/lxc/configname.conf. |
983 |
- |
984 |
- If you want checkpoint/restore functionality, please install criu |
985 |
- (sys-process/criu)." |
986 |
- DISABLE_AUTOFORMATTING=true |
987 |
- readme.gentoo_create_doc |
988 |
-} |
989 |
- |
990 |
-pkg_postinst() { |
991 |
- readme.gentoo_print_elog |
992 |
-} |