Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxc/, app-emulation/lxc/files/
Date: Fri, 15 Dec 2017 01:55:40
Message-Id: 1513302904.5bde8835894effb1efaa093dea785343dfcd6a1d.tamiko@gentoo
1 commit: 5bde8835894effb1efaa093dea785343dfcd6a1d
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 15 01:52:25 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 15 01:55:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bde8835
7
8 app-emulation/lxc: major cleanup
9
10 - leave an old 1.0.x (1.0.11) version around for compatibility.
11 - remove all unstable, obsolete 2.0.x versions
12 - clean up patches
13
14 Package-Manager: Portage-2.3.18, Repoman-2.3.6
15 Signed-off-by: Virgil Dupras <hsoft <AT> hardcoded.net>
16
17 app-emulation/lxc/Manifest | 5 -
18 .../lxc/files/lxc-1.0.8-bash-completion.patch | 35 ----
19 .../lxc/files/lxc-2.0.3-bash-completion.patch | 31 ----
20 .../lxc/files/lxc-2.0.3-omit-sysconfig.patch | 5 -
21 .../lxc/files/lxc-2.0.4-bash-completion.patch | 31 ----
22 .../lxc/files/lxc-2.0.4-omit-sysconfig.patch | 5 -
23 .../lxc/files/lxc-2.0.5-bash-completion.patch | 31 ----
24 app-emulation/lxc/lxc-1.0.8.ebuild | 188 -------------------
25 app-emulation/lxc/lxc-2.0.3-r1.ebuild | 196 --------------------
26 app-emulation/lxc/lxc-2.0.4.ebuild | 200 --------------------
27 app-emulation/lxc/lxc-2.0.5.ebuild | 200 --------------------
28 app-emulation/lxc/lxc-2.0.6-r1.ebuild | 201 ---------------------
29 12 files changed, 1128 deletions(-)
30
31 diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest
32 index b425522f07c..265bac0824f 100644
33 --- a/app-emulation/lxc/Manifest
34 +++ b/app-emulation/lxc/Manifest
35 @@ -1,8 +1,3 @@
36 DIST lxc-1.0.11.tar.gz 850645 BLAKE2B 1a8eff91d970d3160d5ca7338f4e4d68c722a277a804396e7c30b34dbf4aeccc0609982940bb660992880078167cdf3382a55af404b3e52ebe8cd8af104b1efc SHA512 5537e61a286cfce3c763b81eec625538c796ea1e8f5e94c5a28fc8964762c8c0efa7983a188d521bf3420a42569d7124e6587950bc90b79583fa42cc8e2f8f74
37 -DIST lxc-1.0.8.tar.gz 575127 BLAKE2B 246ac7a2b4306c52a741b2f763bcc81d9999fb27942ef93d6a786ed2ea010c646f5a2388407d26425387b8a819cacae927c8512995bf19b11d610e1887ea6470 SHA512 f552a4f48bb47d26c6b9ddaf8221a439c0848e3f54ec41b77d54717c21bddd56193941046cc96c699790e8265e762a926469c25ee687adcf7795f2906b1c260a
38 -DIST lxc-2.0.3.tar.gz 772448 BLAKE2B 2336edea328a0ac033f2183386a2907ee8a088032b089c073ae8bbce6f54c55788288be85fe35a0b547976d5868abc31b27ffe5a5049e8769350c2b48dd9310c SHA512 df714f189ec7aa681710fbd58405b8958740102032c0130d8a0eaaae0341a9bc91a215136203c404ad79773800f620bf6f71f811b3effe559aed66efa4f34fef
39 -DIST lxc-2.0.4.tar.gz 775634 BLAKE2B 9699ae598c3dfddf458f62ca154a4ec75c3510d8dc0be98ebb6b10a30b21ec5e56ff9ec20615c0104a92124c4833e9439f88d04e0312a7c82f79ed7b6f802bbd SHA512 3f985bba5aaa8a70f0329316ea4f42ab135d58c47611154c62e103718212a4b2c5e4f25fd45c372424db1fbf40afdc8269ae98655fb3bc8e31085a5d948f702b
40 -DIST lxc-2.0.5.tar.gz 778842 BLAKE2B 02015ece79c2d0f3d0028b004c56042e12d40993ac0fff3c56c747de542debb33c32256d66d266fa99b4263fecaa8bb77c5cc48dbf6e9ca322f87613c2099821 SHA512 8e14036597fa3407c87fb92d13b40bbca9a646d27d817e0a9d20fe626625d6cf04a1df65b1a723391d41a311b9f4f3432b3213004892d64355fe0edc7858cb9f
41 -DIST lxc-2.0.6.tar.gz 788483 BLAKE2B 2b147f1699ad8cef9f7cae6e674af072fd92b017e94567dc8d50fad00a6ba75562dfd984b85d1b648aec059533a378b2212fef4be70941dfa3bd69ec1f53fb13 SHA512 f44c0498876462d78e57d19816eab666e90470badc2bbd38fed9f504e8b21c3e68e4d0f63a8676fa8716be60481befb3db44098228fd71b480972af2b5dcf1e3
42 DIST lxc-2.0.7.tar.gz 792557 BLAKE2B e5f1e6d8961938200e116527fab8ce341cf285826afdccac88f4bae65ffd649a406dac7555024557f38c4b415a59cd3b5fb255f1dbf015ce01d4975bed3b1c80 SHA512 eb48dc800ce43d2f4d46e0cecc4d0a714b3e22c6a4975776b54d17d1d20d5a1411e6b605215282f1f77286ddf22b61c80b86b83752191fc18023894ef7a1c44d
43 DIST lxc-2.0.8.tar.gz 1308705 BLAKE2B 044e82e182f4ca325da237b888ff16b0469eb11ecdab2ed55f5e9372e84d816ec30edee28ef1473aaa7211a9d9aee0d26f45f169320551e45098da9de7a74104 SHA512 ed9fd47e92007f433695cffea659180866a5ac2778712f4eb13b6629bb18292589f5b674b734853ca196ba1f6d38bdbf3cc8a2bb28e25d3540b06b945fcf9096
44
45 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
46 deleted file mode 100644
47 index e9e0e6c98df..00000000000
48 --- a/app-emulation/lxc/files/lxc-1.0.8-bash-completion.patch
49 +++ /dev/null
50 @@ -1,35 +0,0 @@
51 -Index: lxc-lxc-1.0.8/config/bash/Makefile.am
52 -===================================================================
53 ---- lxc-lxc-1.0.8.orig/config/bash/Makefile.am
54 -+++ lxc-lxc-1.0.8/config/bash/Makefile.am
55 -@@ -2,12 +2,12 @@ EXTRA_DIST = lxc
56 -
57 - if ENABLE_BASH
58 - install-bash:
59 -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
60 -- $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
61 -+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
62 -+ $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
63 -
64 - uninstall-bash:
65 -- rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
66 -- rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
67 -+ rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
68 -+ rmdir $(DESTDIR)$(datarootdir)/bash-completion// || :
69 -
70 - install-data-local: install-bash
71 - uninstall-local: uninstall-bash
72 -Index: lxc-lxc-1.0.8/config/bash/lxc.in
73 -===================================================================
74 ---- lxc-lxc-1.0.8.orig/config/bash/lxc.in
75 -+++ lxc-lxc-1.0.8/config/bash/lxc.in
76 -@@ -1,4 +1,3 @@
77 --have lxc-start && {
78 - _lxc_names() {
79 - COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
80 - }
81 -@@ -100,4 +99,3 @@ have lxc-start && {
82 -
83 - complete -o default -F _lxc_generic_o lxc-clone
84 - complete -o default -F _lxc_generic_o lxc-start-ephemeral
85 --}
86
87 diff --git a/app-emulation/lxc/files/lxc-2.0.3-bash-completion.patch b/app-emulation/lxc/files/lxc-2.0.3-bash-completion.patch
88 deleted file mode 100644
89 index 9ef6013e5b6..00000000000
90 --- a/app-emulation/lxc/files/lxc-2.0.3-bash-completion.patch
91 +++ /dev/null
92 @@ -1,31 +0,0 @@
93 ---- lxc-lxc-2.0.1/config/bash/Makefile.am.orig 2016-05-18 20:40:42.238487678 +0000
94 -+++ lxc-lxc-2.0.1/config/bash/Makefile.am 2016-05-18 20:43:02.163497779 +0000
95 -@@ -2,12 +2,12 @@
96 -
97 - if ENABLE_BASH
98 - install-bash:
99 -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
100 -- $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
101 -+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
102 -+ $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
103 -
104 - uninstall-bash:
105 -- rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
106 -- rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
107 -+ rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
108 -+ rmdir $(DESTDIR)$(datarootdir)/bash-completion/completions/ || :
109 -
110 - install-data-local: install-bash
111 - uninstall-local: uninstall-bash
112 ---- lxc-lxc-2.0.1/config/bash/lxc.in.orig 2016-05-18 20:40:51.079488316 +0000
113 -+++ lxc-lxc-2.0.1/config/bash/lxc.in 2016-05-18 20:45:03.506506538 +0000
114 -@@ -1,4 +1,3 @@
115 --_have lxc-start && {
116 - _lxc_names() {
117 - COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
118 - }
119 -@@ -100,4 +99,3 @@
120 -
121 - complete -o default -F _lxc_generic_o lxc-copy
122 - complete -o default -F _lxc_generic_o lxc-start-ephemeral
123 --}
124
125 diff --git a/app-emulation/lxc/files/lxc-2.0.3-omit-sysconfig.patch b/app-emulation/lxc/files/lxc-2.0.3-omit-sysconfig.patch
126 deleted file mode 100644
127 index 9b83a3b2687..00000000000
128 --- a/app-emulation/lxc/files/lxc-2.0.3-omit-sysconfig.patch
129 +++ /dev/null
130 @@ -1,5 +0,0 @@
131 ---- lxc-lxc-2.0.1/config/Makefile.am.orig 2016-05-19 02:56:11.891113982 +0000
132 -+++ lxc-lxc-2.0.1/config/Makefile.am 2016-05-19 02:56:32.596115476 +0000
133 -@@ -1 +1 @@
134 --SUBDIRS = apparmor bash etc init selinux templates yum sysconfig
135 -+SUBDIRS = apparmor bash etc init selinux templates yum
136
137 diff --git a/app-emulation/lxc/files/lxc-2.0.4-bash-completion.patch b/app-emulation/lxc/files/lxc-2.0.4-bash-completion.patch
138 deleted file mode 100644
139 index 6feb4c2bb01..00000000000
140 --- a/app-emulation/lxc/files/lxc-2.0.4-bash-completion.patch
141 +++ /dev/null
142 @@ -1,31 +0,0 @@
143 ---- /config/bash/Makefile.am.orig 2016-05-18 20:40:42.238487678 +0000
144 -+++ /config/bash/Makefile.am 2016-05-18 20:43:02.163497779 +0000
145 -@@ -2,12 +2,12 @@
146 -
147 - if ENABLE_BASH
148 - install-bash:
149 -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
150 -- $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
151 -+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
152 -+ $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
153 -
154 - uninstall-bash:
155 -- rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
156 -- rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
157 -+ rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
158 -+ rmdir $(DESTDIR)$(datarootdir)/bash-completion/completions/ || :
159 -
160 - install-data-local: install-bash
161 - uninstall-local: uninstall-bash
162 ---- /config/bash/lxc.in.orig 2016-05-18 20:40:51.079488316 +0000
163 -+++ /config/bash/lxc.in 2016-05-18 20:45:03.506506538 +0000
164 -@@ -1,4 +1,3 @@
165 --_have lxc-start && {
166 - _lxc_names() {
167 - COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
168 - }
169 -@@ -100,4 +99,3 @@
170 -
171 - complete -o default -F _lxc_generic_o lxc-copy
172 - complete -o default -F _lxc_generic_o lxc-start-ephemeral
173 --}
174
175 diff --git a/app-emulation/lxc/files/lxc-2.0.4-omit-sysconfig.patch b/app-emulation/lxc/files/lxc-2.0.4-omit-sysconfig.patch
176 deleted file mode 100644
177 index 3ec81356499..00000000000
178 --- a/app-emulation/lxc/files/lxc-2.0.4-omit-sysconfig.patch
179 +++ /dev/null
180 @@ -1,5 +0,0 @@
181 ---- /config/Makefile.am.orig 2016-05-19 02:56:11.891113982 +0000
182 -+++ /config/Makefile.am 2016-05-19 02:56:32.596115476 +0000
183 -@@ -1 +1 @@
184 --SUBDIRS = apparmor bash etc init selinux templates yum sysconfig
185 -+SUBDIRS = apparmor bash etc init selinux templates yum
186
187 diff --git a/app-emulation/lxc/files/lxc-2.0.5-bash-completion.patch b/app-emulation/lxc/files/lxc-2.0.5-bash-completion.patch
188 deleted file mode 100644
189 index 6feb4c2bb01..00000000000
190 --- a/app-emulation/lxc/files/lxc-2.0.5-bash-completion.patch
191 +++ /dev/null
192 @@ -1,31 +0,0 @@
193 ---- /config/bash/Makefile.am.orig 2016-05-18 20:40:42.238487678 +0000
194 -+++ /config/bash/Makefile.am 2016-05-18 20:43:02.163497779 +0000
195 -@@ -2,12 +2,12 @@
196 -
197 - if ENABLE_BASH
198 - install-bash:
199 -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
200 -- $(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
201 -+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions/
202 -+ $(INSTALL_DATA) lxc $(DESTDIR)$(datarootdir)/bash-completion/completions/
203 -
204 - uninstall-bash:
205 -- rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
206 -- rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
207 -+ rm -f $(DESTDIR)$(datarootdir)/bash-completion/completions/lxc
208 -+ rmdir $(DESTDIR)$(datarootdir)/bash-completion/completions/ || :
209 -
210 - install-data-local: install-bash
211 - uninstall-local: uninstall-bash
212 ---- /config/bash/lxc.in.orig 2016-05-18 20:40:51.079488316 +0000
213 -+++ /config/bash/lxc.in 2016-05-18 20:45:03.506506538 +0000
214 -@@ -1,4 +1,3 @@
215 --_have lxc-start && {
216 - _lxc_names() {
217 - COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
218 - }
219 -@@ -100,4 +99,3 @@
220 -
221 - complete -o default -F _lxc_generic_o lxc-copy
222 - complete -o default -F _lxc_generic_o lxc-start-ephemeral
223 --}
224
225 diff --git a/app-emulation/lxc/lxc-1.0.8.ebuild b/app-emulation/lxc/lxc-1.0.8.ebuild
226 deleted file mode 100644
227 index 1c55e591610..00000000000
228 --- a/app-emulation/lxc/lxc-1.0.8.ebuild
229 +++ /dev/null
230 @@ -1,188 +0,0 @@
231 -# Copyright 1999-2017 Gentoo Foundation
232 -# Distributed under the terms of the GNU General Public License v2
233 -
234 -EAPI="5"
235 -
236 -MY_P="${P/_/-}"
237 -PYTHON_COMPAT=( python3_4 )
238 -DISTUTILS_OPTIONAL=1
239 -
240 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
241 -
242 -DESCRIPTION="LinuX Containers userspace utilities"
243 -HOMEPAGE="https://linuxcontainers.org/"
244 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
245 -
246 -KEYWORDS="amd64 ~arm ~arm64 ppc64 x86"
247 -
248 -LICENSE="LGPL-3"
249 -SLOT="0"
250 -IUSE="doc examples lua python seccomp"
251 -
252 -RDEPEND="net-libs/gnutls
253 - sys-libs/libcap
254 - lua? ( >=dev-lang/lua-5.1:= )
255 - python? ( ${PYTHON_DEPS} )
256 - seccomp? ( sys-libs/libseccomp )"
257 -
258 -DEPEND="${RDEPEND}
259 - doc? ( app-text/docbook-sgml-utils )
260 - >=sys-kernel/linux-headers-3.2"
261 -
262 -RDEPEND="${RDEPEND}
263 - sys-apps/util-linux
264 - app-misc/pax-utils
265 - virtual/awk"
266 -
267 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
268 - ~CPUSETS ~CGROUP_CPUACCT
269 - ~RESOURCE_COUNTERS
270 - ~CGROUP_SCHED
271 -
272 - ~NAMESPACES
273 - ~IPC_NS ~USER_NS ~PID_NS
274 -
275 - ~DEVPTS_MULTIPLE_INSTANCES
276 - ~CGROUP_FREEZER
277 - ~UTS_NS ~NET_NS
278 - ~VETH ~MACVLAN
279 -
280 - ~POSIX_MQUEUE
281 - ~!NETPRIO_CGROUP
282 -
283 - ~!GRKERNSEC_CHROOT_MOUNT
284 - ~!GRKERNSEC_CHROOT_DOUBLE
285 - ~!GRKERNSEC_CHROOT_PIVOT
286 - ~!GRKERNSEC_CHROOT_CHMOD
287 - ~!GRKERNSEC_CHROOT_CAPS
288 - ~!GRKERNSEC_PROC
289 -"
290 -
291 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
292 -
293 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
294 -
295 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
296 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
297 -
298 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
299 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
300 -
301 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
302 -
303 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
304 -
305 -ERROR_GRKERNSEC_CHROOT_MOUNT=":CONFIG_GRKERNSEC_CHROOT_MOUNT some GRSEC features make LXC unusable see postinst notes"
306 -ERROR_GRKERNSEC_CHROOT_DOUBLE=":CONFIG_GRKERNSEC_CHROOT_DOUBLE some GRSEC features make LXC unusable see postinst notes"
307 -ERROR_GRKERNSEC_CHROOT_PIVOT=":CONFIG_GRKERNSEC_CHROOT_PIVOT some GRSEC features make LXC unusable see postinst notes"
308 -ERROR_GRKERNSEC_CHROOT_CHMOD=":CONFIG_GRKERNSEC_CHROOT_CHMOD some GRSEC features make LXC unusable see postinst notes"
309 -ERROR_GRKERNSEC_CHROOT_CAPS=":CONFIG_GRKERNSEC_CHROOT_CAPS some GRSEC features make LXC unusable see postinst notes"
310 -ERROR_GRKERNSEC_PROC=":CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
311 -
312 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
313 -
314 -S="${WORKDIR}/${PN}-${MY_P}"
315 -
316 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
317 -
318 -src_prepare() {
319 - sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
320 - if [[ -n ${BACKPORTS} ]]; then
321 - epatch "${WORKDIR}"/patches/*
322 - fi
323 -
324 - epatch "${FILESDIR}"/${PN}-1.0.8-bash-completion.patch
325 -
326 - eautoreconf
327 -}
328 -
329 -src_configure() {
330 - append-flags -fno-strict-aliasing
331 -
332 - econf \
333 - --localstatedir=/var \
334 - --bindir=/usr/sbin \
335 - --docdir=/usr/share/doc/${PF} \
336 - --with-config-path=/etc/lxc \
337 - --with-rootfs-path=/usr/lib/lxc/rootfs \
338 - --with-distro=gentoo \
339 - $(use_enable doc) \
340 - --disable-apparmor \
341 - $(use_enable examples) \
342 - $(use_enable lua) \
343 - $(use_enable seccomp) \
344 - --disable-python
345 -}
346 -
347 -python_compile() {
348 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
349 -}
350 -
351 -src_compile() {
352 - default
353 -
354 - if use python; then
355 - pushd "${S}/src/python-${PN}" > /dev/null
356 - distutils-r1_src_compile
357 - popd > /dev/null
358 - fi
359 -}
360 -
361 -src_install() {
362 - default
363 -
364 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
365 - bashcomp_alias ${PN}-start \
366 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
367 -
368 - if use python; then
369 - pushd "${S}/src/python-lxc" > /dev/null
370 - # Unset DOCS. This has been handled by the default target
371 - unset DOCS
372 - distutils-r1_src_install
373 - popd > /dev/null
374 - fi
375 -
376 - keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc
377 -
378 - find "${D}" -name '*.la' -delete
379 -
380 - # Gentoo-specific additions!
381 - # Use initd.3 per #517144
382 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
383 -
384 - # lxc-devsetup script
385 - exeinto /usr/libexec/${PN}
386 - doexe config/init/systemd/${PN}-devsetup
387 - # Use that script with the systemd service (Similar to upstream
388 - # Makefile.am
389 - cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service || die
390 - sed -i \
391 - "/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \
392 - ${PN}_at.service \
393 - || die "Failed to add ${PN}-devsetup to the systemd service file"
394 - systemd_newunit ${PN}_at.service "lxc@.service"
395 -}
396 -
397 -pkg_postinst() {
398 - elog "There is an init script provided with the package now; no documentation"
399 - elog "is currently available though, so please check out /etc/init.d/lxc ."
400 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
401 - elog "to start the container defined into /etc/lxc/configname.conf ."
402 - elog "For further information about LXC development see"
403 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
404 - elog ""
405 - ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2"
406 - ewarn "and previous versions. This means you'll have to use syntax like the following"
407 - ewarn ""
408 - ewarn " lxc.rootfs = /container"
409 - ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0"
410 - ewarn ""
411 - ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you"
412 - ewarn "will need sys-apps/yum or dev-util/debootstrap."
413 - ewarn ""
414 - ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to"
415 - ewarn "work, while others will actually make it much more secure. Please refer to"
416 - ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further"
417 - ewarn "details."
418 -}
419
420 diff --git a/app-emulation/lxc/lxc-2.0.3-r1.ebuild b/app-emulation/lxc/lxc-2.0.3-r1.ebuild
421 deleted file mode 100644
422 index fbf2ce71f6d..00000000000
423 --- a/app-emulation/lxc/lxc-2.0.3-r1.ebuild
424 +++ /dev/null
425 @@ -1,196 +0,0 @@
426 -# Copyright 1999-2016 Gentoo Foundation
427 -# Distributed under the terms of the GNU General Public License v2
428 -
429 -EAPI="5"
430 -
431 -MY_P="${P/_/-}"
432 -PYTHON_COMPAT=( python{3_4,3_5} )
433 -DISTUTILS_OPTIONAL=1
434 -
435 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
436 -
437 -DESCRIPTION="LinuX Containers userspace utilities"
438 -HOMEPAGE="https://linuxcontainers.org/"
439 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
440 -
441 -KEYWORDS="~amd64 ~arm ~arm64"
442 -
443 -LICENSE="LGPL-3"
444 -SLOT="0"
445 -IUSE="cgmanager doc examples lua python seccomp"
446 -
447 -RDEPEND="net-libs/gnutls
448 - sys-libs/libcap
449 - cgmanager? ( app-admin/cgmanager )
450 - lua? ( >=dev-lang/lua-5.1:= )
451 - python? ( ${PYTHON_DEPS} )
452 - seccomp? ( sys-libs/libseccomp )"
453 -
454 -DEPEND="${RDEPEND}
455 - doc? ( app-text/docbook-sgml-utils )
456 - >=sys-kernel/linux-headers-3.2"
457 -
458 -RDEPEND="${RDEPEND}
459 - sys-process/criu
460 - sys-apps/util-linux
461 - app-misc/pax-utils
462 - virtual/awk"
463 -
464 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
465 - ~CPUSETS ~CGROUP_CPUACCT
466 - ~CGROUP_SCHED
467 -
468 - ~NAMESPACES
469 - ~IPC_NS ~USER_NS ~PID_NS
470 -
471 - ~NETLINK_DIAG ~PACKET_DIAG
472 - ~INET_UDP_DIAG ~INET_TCP_DIAG
473 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
474 -
475 - ~DEVPTS_MULTIPLE_INSTANCES
476 - ~CGROUP_FREEZER
477 - ~UTS_NS ~NET_NS
478 - ~VETH ~MACVLAN
479 -
480 - ~POSIX_MQUEUE
481 - ~!NETPRIO_CGROUP
482 -
483 - ~!GRKERNSEC_CHROOT_MOUNT
484 - ~!GRKERNSEC_CHROOT_DOUBLE
485 - ~!GRKERNSEC_CHROOT_PIVOT
486 - ~!GRKERNSEC_CHROOT_CHMOD
487 - ~!GRKERNSEC_CHROOT_CAPS
488 - ~!GRKERNSEC_PROC
489 - ~!GRKERNSEC_SYSFS_RESTRICT
490 -"
491 -
492 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
493 -
494 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
495 -
496 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
497 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
498 -
499 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
500 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
501 -
502 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
503 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
504 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
505 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
506 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
507 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
508 -
509 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
510 -
511 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
512 -
513 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
514 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
515 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
516 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
517 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
518 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
519 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
520 -
521 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
522 -
523 -S="${WORKDIR}/${PN}-${MY_P}"
524 -
525 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
526 -
527 -src_prepare() {
528 - epatch "${FILESDIR}"/${P}-bash-completion.patch
529 - #558854
530 - epatch "${FILESDIR}"/${P}-omit-sysconfig.patch
531 - eautoreconf
532 -}
533 -
534 -src_configure() {
535 - append-flags -fno-strict-aliasing
536 -
537 - if use python; then
538 - #541932
539 - python_setup "python3*"
540 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
541 - fi
542 -
543 - # I am not sure about the --with-rootfs-path
544 - # /var/lib/lxc is probably more appropriate than
545 - # /usr/lib/lxc.
546 - econf \
547 - --localstatedir=/var \
548 - --bindir=/usr/bin \
549 - --sbindir=/usr/bin \
550 - --docdir=/usr/share/doc/${PF} \
551 - --with-config-path=/var/lib/lxc \
552 - --with-rootfs-path=/var/lib/lxc/rootfs \
553 - --with-distro=gentoo \
554 - --with-runtime-path=/run \
555 - --disable-apparmor \
556 - $(use_enable cgmanager) \
557 - $(use_enable doc) \
558 - $(use_enable examples) \
559 - $(use_enable lua) \
560 - $(use_enable python) \
561 - $(use_enable seccomp)
562 -}
563 -
564 -python_compile() {
565 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
566 -}
567 -
568 -src_compile() {
569 - default
570 -
571 - if use python; then
572 - pushd "${S}/src/python-${PN}" > /dev/null
573 - distutils-r1_src_compile
574 - popd > /dev/null
575 - fi
576 -}
577 -
578 -src_install() {
579 - default
580 -
581 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
582 - # start-ephemeral is no longer a command but removing it here
583 - # generates QA warnings (still in upstream completion script)
584 - bashcomp_alias ${PN}-start \
585 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
586 -
587 - if use python; then
588 - pushd "${S}/src/python-lxc" > /dev/null
589 - # Unset DOCS. This has been handled by the default target
590 - unset DOCS
591 - distutils-r1_src_install
592 - popd > /dev/null
593 - fi
594 -
595 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
596 -
597 - find "${D}" -name '*.la' -delete
598 -
599 - # Gentoo-specific additions!
600 - newinitd "${FILESDIR}/${PN}.initd.5" ${PN}
601 -
602 - # Remember to compare our systemd unit file with the upstream one
603 - # config/init/systemd/lxc.service.in
604 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service"
605 -}
606 -
607 -pkg_postinst() {
608 - elog ""
609 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
610 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
611 - elog "please add the following to your /etc/lxc/default.conf"
612 - elog "lxc.lxcpath = /etc/lxc"
613 - elog ""
614 - elog "There is an init script provided with the package now; no documentation"
615 - elog "is currently available though, so please check out /etc/init.d/lxc ."
616 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
617 - elog "to start the container defined into /etc/lxc/configname.conf ."
618 - elog "For further information about LXC development see"
619 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
620 - elog ""
621 -}
622
623 diff --git a/app-emulation/lxc/lxc-2.0.4.ebuild b/app-emulation/lxc/lxc-2.0.4.ebuild
624 deleted file mode 100644
625 index 5cafe41f06e..00000000000
626 --- a/app-emulation/lxc/lxc-2.0.4.ebuild
627 +++ /dev/null
628 @@ -1,200 +0,0 @@
629 -# Copyright 1999-2016 Gentoo Foundation
630 -# Distributed under the terms of the GNU General Public License v2
631 -
632 -EAPI="6"
633 -
634 -MY_P="${P/_/-}"
635 -PYTHON_COMPAT=( python{3_4,3_5} )
636 -DISTUTILS_OPTIONAL=1
637 -
638 -inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd
639 -
640 -DESCRIPTION="LinuX Containers userspace utilities"
641 -HOMEPAGE="https://linuxcontainers.org/"
642 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
643 -
644 -KEYWORDS="~amd64 ~arm ~arm64"
645 -
646 -LICENSE="LGPL-3"
647 -SLOT="0"
648 -IUSE="cgmanager doc examples lua python seccomp"
649 -
650 -RDEPEND="net-libs/gnutls
651 - sys-libs/libcap
652 - cgmanager? ( app-admin/cgmanager )
653 - lua? ( >=dev-lang/lua-5.1:= )
654 - python? ( ${PYTHON_DEPS} )
655 - seccomp? ( sys-libs/libseccomp )"
656 -
657 -DEPEND="${RDEPEND}
658 - doc? ( app-text/docbook-sgml-utils )
659 - >=sys-kernel/linux-headers-3.2"
660 -
661 -RDEPEND="${RDEPEND}
662 - sys-process/criu
663 - sys-apps/util-linux
664 - app-misc/pax-utils
665 - virtual/awk"
666 -
667 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
668 - ~CPUSETS ~CGROUP_CPUACCT
669 - ~CGROUP_SCHED
670 -
671 - ~NAMESPACES
672 - ~IPC_NS ~USER_NS ~PID_NS
673 -
674 - ~NETLINK_DIAG ~PACKET_DIAG
675 - ~INET_UDP_DIAG ~INET_TCP_DIAG
676 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
677 -
678 - ~CGROUP_FREEZER
679 - ~UTS_NS ~NET_NS
680 - ~VETH ~MACVLAN
681 -
682 - ~POSIX_MQUEUE
683 - ~!NETPRIO_CGROUP
684 -
685 - ~!GRKERNSEC_CHROOT_MOUNT
686 - ~!GRKERNSEC_CHROOT_DOUBLE
687 - ~!GRKERNSEC_CHROOT_PIVOT
688 - ~!GRKERNSEC_CHROOT_CHMOD
689 - ~!GRKERNSEC_CHROOT_CAPS
690 - ~!GRKERNSEC_PROC
691 - ~!GRKERNSEC_SYSFS_RESTRICT
692 -"
693 -
694 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
695 -
696 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
697 -
698 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
699 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
700 -
701 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
702 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
703 -
704 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
705 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
706 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
707 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
708 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
709 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
710 -
711 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
712 -
713 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
714 -
715 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
716 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
717 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
718 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
719 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
720 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
721 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
722 -
723 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
724 -
725 -S="${WORKDIR}/${PN}-${MY_P}"
726 -
727 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
728 -
729 -pkg_setup() {
730 - kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES"
731 - linux-info_pkg_setup
732 -}
733 -
734 -src_prepare() {
735 - eapply "${FILESDIR}"/${P}-bash-completion.patch
736 - #558854
737 - eapply "${FILESDIR}"/${P}-omit-sysconfig.patch
738 - eapply_user
739 - eautoreconf
740 -}
741 -
742 -src_configure() {
743 - append-flags -fno-strict-aliasing
744 -
745 - if use python; then
746 - #541932
747 - python_setup "python3*"
748 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
749 - fi
750 -
751 - # I am not sure about the --with-rootfs-path
752 - # /var/lib/lxc is probably more appropriate than
753 - # /usr/lib/lxc.
754 - econf \
755 - --localstatedir=/var \
756 - --bindir=/usr/bin \
757 - --sbindir=/usr/bin \
758 - --with-config-path=/var/lib/lxc \
759 - --with-rootfs-path=/var/lib/lxc/rootfs \
760 - --with-distro=gentoo \
761 - --with-runtime-path=/run \
762 - --disable-apparmor \
763 - $(use_enable cgmanager) \
764 - $(use_enable doc) \
765 - $(use_enable examples) \
766 - $(use_enable lua) \
767 - $(use_enable python) \
768 - $(use_enable seccomp)
769 -}
770 -
771 -python_compile() {
772 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
773 -}
774 -
775 -src_compile() {
776 - default
777 -
778 - if use python; then
779 - pushd "${S}/src/python-${PN}" > /dev/null
780 - distutils-r1_src_compile
781 - popd > /dev/null
782 - fi
783 -}
784 -
785 -src_install() {
786 - default
787 -
788 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
789 - # start-ephemeral is no longer a command but removing it here
790 - # generates QA warnings (still in upstream completion script)
791 - bashcomp_alias ${PN}-start \
792 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
793 -
794 - if use python; then
795 - pushd "${S}/src/python-lxc" > /dev/null
796 - # Unset DOCS. This has been handled by the default target
797 - unset DOCS
798 - distutils-r1_src_install
799 - popd > /dev/null
800 - fi
801 -
802 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
803 -
804 - find "${D}" -name '*.la' -delete
805 -
806 - # Gentoo-specific additions!
807 - newinitd "${FILESDIR}/${PN}.initd.5" ${PN}
808 -
809 - # Remember to compare our systemd unit file with the upstream one
810 - # config/init/systemd/lxc.service.in
811 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service"
812 -}
813 -
814 -pkg_postinst() {
815 - elog ""
816 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
817 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
818 - elog "please add the following to your /etc/lxc/default.conf"
819 - elog "lxc.lxcpath = /etc/lxc"
820 - elog ""
821 - elog "There is an init script provided with the package now; no documentation"
822 - elog "is currently available though, so please check out /etc/init.d/lxc ."
823 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
824 - elog "to start the container defined into /etc/lxc/configname.conf ."
825 - elog "For further information about LXC development see"
826 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
827 - elog ""
828 -}
829
830 diff --git a/app-emulation/lxc/lxc-2.0.5.ebuild b/app-emulation/lxc/lxc-2.0.5.ebuild
831 deleted file mode 100644
832 index 5cafe41f06e..00000000000
833 --- a/app-emulation/lxc/lxc-2.0.5.ebuild
834 +++ /dev/null
835 @@ -1,200 +0,0 @@
836 -# Copyright 1999-2016 Gentoo Foundation
837 -# Distributed under the terms of the GNU General Public License v2
838 -
839 -EAPI="6"
840 -
841 -MY_P="${P/_/-}"
842 -PYTHON_COMPAT=( python{3_4,3_5} )
843 -DISTUTILS_OPTIONAL=1
844 -
845 -inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd
846 -
847 -DESCRIPTION="LinuX Containers userspace utilities"
848 -HOMEPAGE="https://linuxcontainers.org/"
849 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
850 -
851 -KEYWORDS="~amd64 ~arm ~arm64"
852 -
853 -LICENSE="LGPL-3"
854 -SLOT="0"
855 -IUSE="cgmanager doc examples lua python seccomp"
856 -
857 -RDEPEND="net-libs/gnutls
858 - sys-libs/libcap
859 - cgmanager? ( app-admin/cgmanager )
860 - lua? ( >=dev-lang/lua-5.1:= )
861 - python? ( ${PYTHON_DEPS} )
862 - seccomp? ( sys-libs/libseccomp )"
863 -
864 -DEPEND="${RDEPEND}
865 - doc? ( app-text/docbook-sgml-utils )
866 - >=sys-kernel/linux-headers-3.2"
867 -
868 -RDEPEND="${RDEPEND}
869 - sys-process/criu
870 - sys-apps/util-linux
871 - app-misc/pax-utils
872 - virtual/awk"
873 -
874 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
875 - ~CPUSETS ~CGROUP_CPUACCT
876 - ~CGROUP_SCHED
877 -
878 - ~NAMESPACES
879 - ~IPC_NS ~USER_NS ~PID_NS
880 -
881 - ~NETLINK_DIAG ~PACKET_DIAG
882 - ~INET_UDP_DIAG ~INET_TCP_DIAG
883 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
884 -
885 - ~CGROUP_FREEZER
886 - ~UTS_NS ~NET_NS
887 - ~VETH ~MACVLAN
888 -
889 - ~POSIX_MQUEUE
890 - ~!NETPRIO_CGROUP
891 -
892 - ~!GRKERNSEC_CHROOT_MOUNT
893 - ~!GRKERNSEC_CHROOT_DOUBLE
894 - ~!GRKERNSEC_CHROOT_PIVOT
895 - ~!GRKERNSEC_CHROOT_CHMOD
896 - ~!GRKERNSEC_CHROOT_CAPS
897 - ~!GRKERNSEC_PROC
898 - ~!GRKERNSEC_SYSFS_RESTRICT
899 -"
900 -
901 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
902 -
903 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
904 -
905 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
906 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
907 -
908 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
909 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
910 -
911 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
912 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
913 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
914 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
915 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
916 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
917 -
918 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
919 -
920 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
921 -
922 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
923 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
924 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
925 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
926 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
927 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
928 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
929 -
930 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
931 -
932 -S="${WORKDIR}/${PN}-${MY_P}"
933 -
934 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
935 -
936 -pkg_setup() {
937 - kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES"
938 - linux-info_pkg_setup
939 -}
940 -
941 -src_prepare() {
942 - eapply "${FILESDIR}"/${P}-bash-completion.patch
943 - #558854
944 - eapply "${FILESDIR}"/${P}-omit-sysconfig.patch
945 - eapply_user
946 - eautoreconf
947 -}
948 -
949 -src_configure() {
950 - append-flags -fno-strict-aliasing
951 -
952 - if use python; then
953 - #541932
954 - python_setup "python3*"
955 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
956 - fi
957 -
958 - # I am not sure about the --with-rootfs-path
959 - # /var/lib/lxc is probably more appropriate than
960 - # /usr/lib/lxc.
961 - econf \
962 - --localstatedir=/var \
963 - --bindir=/usr/bin \
964 - --sbindir=/usr/bin \
965 - --with-config-path=/var/lib/lxc \
966 - --with-rootfs-path=/var/lib/lxc/rootfs \
967 - --with-distro=gentoo \
968 - --with-runtime-path=/run \
969 - --disable-apparmor \
970 - $(use_enable cgmanager) \
971 - $(use_enable doc) \
972 - $(use_enable examples) \
973 - $(use_enable lua) \
974 - $(use_enable python) \
975 - $(use_enable seccomp)
976 -}
977 -
978 -python_compile() {
979 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
980 -}
981 -
982 -src_compile() {
983 - default
984 -
985 - if use python; then
986 - pushd "${S}/src/python-${PN}" > /dev/null
987 - distutils-r1_src_compile
988 - popd > /dev/null
989 - fi
990 -}
991 -
992 -src_install() {
993 - default
994 -
995 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
996 - # start-ephemeral is no longer a command but removing it here
997 - # generates QA warnings (still in upstream completion script)
998 - bashcomp_alias ${PN}-start \
999 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1000 -
1001 - if use python; then
1002 - pushd "${S}/src/python-lxc" > /dev/null
1003 - # Unset DOCS. This has been handled by the default target
1004 - unset DOCS
1005 - distutils-r1_src_install
1006 - popd > /dev/null
1007 - fi
1008 -
1009 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1010 -
1011 - find "${D}" -name '*.la' -delete
1012 -
1013 - # Gentoo-specific additions!
1014 - newinitd "${FILESDIR}/${PN}.initd.5" ${PN}
1015 -
1016 - # Remember to compare our systemd unit file with the upstream one
1017 - # config/init/systemd/lxc.service.in
1018 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service"
1019 -}
1020 -
1021 -pkg_postinst() {
1022 - elog ""
1023 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1024 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1025 - elog "please add the following to your /etc/lxc/default.conf"
1026 - elog "lxc.lxcpath = /etc/lxc"
1027 - elog ""
1028 - elog "There is an init script provided with the package now; no documentation"
1029 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1030 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1031 - elog "to start the container defined into /etc/lxc/configname.conf ."
1032 - elog "For further information about LXC development see"
1033 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1034 - elog ""
1035 -}
1036
1037 diff --git a/app-emulation/lxc/lxc-2.0.6-r1.ebuild b/app-emulation/lxc/lxc-2.0.6-r1.ebuild
1038 deleted file mode 100644
1039 index c3ca8d9ee12..00000000000
1040 --- a/app-emulation/lxc/lxc-2.0.6-r1.ebuild
1041 +++ /dev/null
1042 @@ -1,201 +0,0 @@
1043 -# Copyright 1999-2017 Gentoo Foundation
1044 -# Distributed under the terms of the GNU General Public License v2
1045 -
1046 -EAPI="6"
1047 -
1048 -MY_P="${P/_/-}"
1049 -PYTHON_COMPAT=( python{3_4,3_5} )
1050 -DISTUTILS_OPTIONAL=1
1051 -
1052 -inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd
1053 -
1054 -DESCRIPTION="LinuX Containers userspace utilities"
1055 -HOMEPAGE="https://linuxcontainers.org/"
1056 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1057 -
1058 -KEYWORDS="~amd64 ~arm ~arm64"
1059 -
1060 -LICENSE="LGPL-3"
1061 -SLOT="0"
1062 -IUSE="cgmanager doc examples lua python seccomp"
1063 -
1064 -RDEPEND="net-libs/gnutls
1065 - sys-libs/libcap
1066 - cgmanager? ( app-admin/cgmanager )
1067 - lua? ( >=dev-lang/lua-5.1:= )
1068 - python? ( ${PYTHON_DEPS} )
1069 - seccomp? ( sys-libs/libseccomp )"
1070 -
1071 -DEPEND="${RDEPEND}
1072 - doc? ( app-text/docbook-sgml-utils )
1073 - >=sys-kernel/linux-headers-3.2"
1074 -
1075 -RDEPEND="${RDEPEND}
1076 - sys-process/criu
1077 - sys-apps/util-linux
1078 - app-misc/pax-utils
1079 - virtual/awk"
1080 -
1081 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1082 - ~CPUSETS ~CGROUP_CPUACCT
1083 - ~CGROUP_SCHED
1084 -
1085 - ~NAMESPACES
1086 - ~IPC_NS ~USER_NS ~PID_NS
1087 -
1088 - ~NETLINK_DIAG ~PACKET_DIAG
1089 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1090 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1091 -
1092 - ~CGROUP_FREEZER
1093 - ~UTS_NS ~NET_NS
1094 - ~VETH ~MACVLAN
1095 -
1096 - ~POSIX_MQUEUE
1097 - ~!NETPRIO_CGROUP
1098 -
1099 - ~!GRKERNSEC_CHROOT_MOUNT
1100 - ~!GRKERNSEC_CHROOT_DOUBLE
1101 - ~!GRKERNSEC_CHROOT_PIVOT
1102 - ~!GRKERNSEC_CHROOT_CHMOD
1103 - ~!GRKERNSEC_CHROOT_CAPS
1104 - ~!GRKERNSEC_PROC
1105 - ~!GRKERNSEC_SYSFS_RESTRICT
1106 -"
1107 -
1108 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1109 -
1110 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1111 -
1112 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1113 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1114 -
1115 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1116 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1117 -
1118 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1119 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1120 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1121 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1122 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1123 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1124 -
1125 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1126 -
1127 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1128 -
1129 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1130 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1131 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1132 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1133 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1134 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1135 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1136 -
1137 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1138 -
1139 -S="${WORKDIR}/${PN}-${MY_P}"
1140 -
1141 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1142 -
1143 -pkg_setup() {
1144 - kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES"
1145 - linux-info_pkg_setup
1146 -}
1147 -
1148 -src_prepare() {
1149 - eapply "${FILESDIR}"/${P}-bash-completion.patch
1150 - #558854
1151 - eapply "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch
1152 - eapply "${FILESDIR}"/${PN}-2.0.6-major.patch
1153 - eapply_user
1154 - eautoreconf
1155 -}
1156 -
1157 -src_configure() {
1158 - append-flags -fno-strict-aliasing
1159 -
1160 - if use python; then
1161 - #541932
1162 - python_setup "python3*"
1163 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
1164 - fi
1165 -
1166 - # I am not sure about the --with-rootfs-path
1167 - # /var/lib/lxc is probably more appropriate than
1168 - # /usr/lib/lxc.
1169 - econf \
1170 - --localstatedir=/var \
1171 - --bindir=/usr/bin \
1172 - --sbindir=/usr/bin \
1173 - --with-config-path=/var/lib/lxc \
1174 - --with-rootfs-path=/var/lib/lxc/rootfs \
1175 - --with-distro=gentoo \
1176 - --with-runtime-path=/run \
1177 - --disable-apparmor \
1178 - $(use_enable cgmanager) \
1179 - $(use_enable doc) \
1180 - $(use_enable examples) \
1181 - $(use_enable lua) \
1182 - $(use_enable python) \
1183 - $(use_enable seccomp)
1184 -}
1185 -
1186 -python_compile() {
1187 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1188 -}
1189 -
1190 -src_compile() {
1191 - default
1192 -
1193 - if use python; then
1194 - pushd "${S}/src/python-${PN}" > /dev/null
1195 - distutils-r1_src_compile
1196 - popd > /dev/null
1197 - fi
1198 -}
1199 -
1200 -src_install() {
1201 - default
1202 -
1203 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1204 - # start-ephemeral is no longer a command but removing it here
1205 - # generates QA warnings (still in upstream completion script)
1206 - bashcomp_alias ${PN}-start \
1207 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1208 -
1209 - if use python; then
1210 - pushd "${S}/src/python-lxc" > /dev/null
1211 - # Unset DOCS. This has been handled by the default target
1212 - unset DOCS
1213 - distutils-r1_src_install
1214 - popd > /dev/null
1215 - fi
1216 -
1217 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1218 -
1219 - find "${D}" -name '*.la' -delete
1220 -
1221 - # Gentoo-specific additions!
1222 - newinitd "${FILESDIR}/${PN}.initd.5" ${PN}
1223 -
1224 - # Remember to compare our systemd unit file with the upstream one
1225 - # config/init/systemd/lxc.service.in
1226 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service"
1227 -}
1228 -
1229 -pkg_postinst() {
1230 - elog ""
1231 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1232 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1233 - elog "please add the following to your /etc/lxc/default.conf"
1234 - elog "lxc.lxcpath = /etc/lxc"
1235 - elog ""
1236 - elog "There is an init script provided with the package now; no documentation"
1237 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1238 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1239 - elog "to start the container defined into /etc/lxc/configname.conf ."
1240 - elog "For further information about LXC development see"
1241 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1242 - elog ""
1243 -}