Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxc/
Date: Wed, 24 Aug 2016 10:38:19
Message-Id: 1472035064.53e34a34cbab60df53af33ba64a14356f5d457b2.pacho@gentoo
1 commit: 53e34a34cbab60df53af33ba64a14356f5d457b2
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 24 10:27:50 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 10:37:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e34a34
7
8 app-emulation/lxc: Drop old
9
10 Package-Manager: portage-2.3.0
11
12 app-emulation/lxc/Manifest | 8 --
13 app-emulation/lxc/lxc-1.0.6-r1.ebuild | 188 -------------------------------
14 app-emulation/lxc/lxc-1.1.0-r6.ebuild | 200 ---------------------------------
15 app-emulation/lxc/lxc-1.1.1-r1.ebuild | 201 ----------------------------------
16 app-emulation/lxc/lxc-1.1.2-r1.ebuild | 199 ---------------------------------
17 app-emulation/lxc/lxc-1.1.2-r2.ebuild | 199 ---------------------------------
18 app-emulation/lxc/lxc-1.1.2.ebuild | 198 ---------------------------------
19 app-emulation/lxc/lxc-1.1.3.ebuild | 198 ---------------------------------
20 app-emulation/lxc/lxc-1.1.4.ebuild | 198 ---------------------------------
21 app-emulation/lxc/lxc-1.1.5.ebuild | 198 ---------------------------------
22 app-emulation/lxc/lxc-2.0.1.ebuild | 200 ---------------------------------
23 app-emulation/lxc/lxc-2.0.3.ebuild | 197 ---------------------------------
24 12 files changed, 2184 deletions(-)
25
26 diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest
27 index 575cd3e..3260e04 100644
28 --- a/app-emulation/lxc/Manifest
29 +++ b/app-emulation/lxc/Manifest
30 @@ -1,11 +1,3 @@
31 -DIST lxc-1.0.6.tar.gz 561249 SHA256 2aea199a89e2cd946f93406af6c3f62844f36954b79a6991b36d2c33022cb11c SHA512 fe85ccb57865d86704df6b4b79d60f31892785b07dc9dd2580cc6c384c89c29c23516e906b7a16bc03c6582c1fb2432bb8ff11bd17c09efa8f6a035fb41f46b1 WHIRLPOOL 9e77453fbe31523a2e8f39cfaba6f09fef68d00b54549167a0cde56c00934f827f5b4190b9fb64242f36782a9fcda63e6796c35fd47420870c2cee7b9bc0a1c8
32 DIST lxc-1.0.7.tar.gz 564985 SHA256 a0b1b09592e076e270dcb3ba004616d9ac3147f9de0b78ca39a30f8956b0a8f2 SHA512 e6ff42a7b41177e1be0d2cd47d4c554565c7fc35355f3aa8aeba00d4adc7a0f364ecd060ddb6c97b2fe5968329c4e4c4b3cb022bffd2da145f30880f077264a8 WHIRLPOOL f07e5e9efb8ff394aa9cdd6c3e725b453c8137ec221399cbf910d57dbc9268fc84e7227273567792821415dc14e774942b76a58a1a478de57d5c82e545702000
33 DIST lxc-1.0.8.tar.gz 575127 SHA256 399ac3eb4e0a89d657fb2e2a57f686ed061d3f1ea4733e7521b1539e9906c7ee SHA512 f552a4f48bb47d26c6b9ddaf8221a439c0848e3f54ec41b77d54717c21bddd56193941046cc96c699790e8265e762a926469c25ee687adcf7795f2906b1c260a WHIRLPOOL 72cd0b8b0345692dd9a3ed8785ee27f5e575794a96c515db1f1d073c29be4c06ae8c1ee24fa375a5ede2bba2494704916710b2e8814ed991d43330a40dff3d56
34 -DIST lxc-1.1.0.tar.gz 592543 SHA256 216e806f7e18e5bfbc782493a9e44fc255f24a587d6faee94cda848a0b949155 SHA512 160da88d6dc96cd9f0679f948bfed057c024adcd459fa4b79e872d12284fa3774ac33a13923c6e150072886a371ccfcdf7ab2c4587efa7f6175fc91a67525c4a WHIRLPOOL 2caf81418850ea8b1ecf25b25e799895563ecf1819f32310fcbb4efe88f711eafe2bcb16a0d3b8ee59072c770a5520b4df90a5962215b932e68a4705c4a56d61
35 -DIST lxc-1.1.1.tar.gz 594112 SHA256 64951fdd39df2bea083bb5a8ac35a7390daf2dc7753d8fce33138129892ef672 SHA512 8af3fb43127b57de4e252baf5cb387270955062ff3838e4807a93d04520ca23f0457913bc8274da51b20961fb08650f9b976a84d395785aca2b2d300b285d549 WHIRLPOOL 4f28b976dd6710705d6361b9a45fef9a1265dffef0cedd0fb304f2820585ece3e2bb64d4c5289d444b3ab55bac265850943c63cdf258c40c45c99176a788ca2a
36 -DIST lxc-1.1.2.tar.gz 597158 SHA256 f22fcf2659ca98dfe864e632374de98c42cdf465d0c694834b6f6098a3cb8519 SHA512 7c4c9b5418321eedcd37a3f5c2c99ff227de48f672cabd1722a74722077d33badb038675ec95fc3e338eaf2b06972c4ffb2e11f36347587ef71a95fad5b66daa WHIRLPOOL 2b657a9195b6357a367f6aa7609952d9162aae7d7be3f2c5e4cda4b2e81f2c7411835e75af5740cca053d445a3cf7dc7457f9e76ca866de7265e99ed42c744e9
37 -DIST lxc-1.1.3.tar.gz 599889 SHA256 b75fb8e376d3313e152f31fb7372b68f33a953a12191a39de4cded04fff94300 SHA512 cafa4fbe4fe23b8c0b98007a79f20899c4a3b98c51d797b9c16e38dfec1eee5a513b58621308fe6551707d38028d9e5bd78ade8822691ffe4a7a369b10a48dda WHIRLPOOL 04ad57d8b189ab089b27adad8e511dcc2e5c563505f8134323ac9d738283bd5d0d929ebadeb69cd49ea68ea3e182f22c72590505cbf6f9d8438112e46909e1b5
38 -DIST lxc-1.1.4.tar.gz 604167 SHA256 b087baf5ac4b94618388e6e759d9cdafcf5c98ed67bf9012ee9660076f9fb0d1 SHA512 b239c285b68ddb25c165e998307d69b368bb802e89c1e26de9daab956ffc05cb8e80bf7c796233552b08a57d1cc37c22777bb7a7469db111582184ee13272c93 WHIRLPOOL 2d69d0540c15274627cdbd0f1944a119b601e1298b9328ba336beae0aa6bffd62dfdf85af82f54c3926489e19b4cee7eaa6c35bcfb72e4b3904f85102055ae85
39 -DIST lxc-1.1.5.tar.gz 607219 SHA256 eefce4cc679656cb8636bf0849f3ba6981c48167884e13dbcb377820a717c09c SHA512 e48ab549f1317afcb5f7768ab988ba27a3e9f1458504e1d70b2e27c502233e7b3538b8ce0b79940140a59a37681bcd8e459416e814f9e4814a4ed86b89e8df1c WHIRLPOOL 0d65ec400913b3298517ba0cb50e064b894d8b26cbd331662e11caee285a37aa1e0d1e4623b69e75585c4369544ca02ff97db90d5127c697cd53fde87d2bc968
40 -DIST lxc-2.0.1.tar.gz 772083 SHA256 543b927e0be6df256562afe05281552645c78c4a9c0881bf313e31ae13679a29 SHA512 f64cc7167bfed1cc74689bf7d9a5b1ad5b957d5791529c8319c55d2cc671dbd00df9c08fb8f10f73c0d77465a54eb4c98c980e66dd888f52c7670640c6bbf78f WHIRLPOOL a4d25a6733200fcc488b90c34715af8d5d9cd53632f8c82085e5dfe0216500c4714414b616bddda82f4ee014525fd222604d9d46d385658147e411060632f748
41 DIST lxc-2.0.3.tar.gz 772448 SHA256 635afa330088fea57883018da326fc72f85460b5a6c7802ad68044381aff14f3 SHA512 df714f189ec7aa681710fbd58405b8958740102032c0130d8a0eaaae0341a9bc91a215136203c404ad79773800f620bf6f71f811b3effe559aed66efa4f34fef WHIRLPOOL 89ce2f6762c7279e24658c1154b5c2960d3db32e0ec3724b338f5d30da77cc0b33a2376e5eebe6d9c356bdd34c2aa9da1e2434aecd7e428fa4b729389e35b862
42
43 diff --git a/app-emulation/lxc/lxc-1.0.6-r1.ebuild b/app-emulation/lxc/lxc-1.0.6-r1.ebuild
44 deleted file mode 100644
45 index 5fcb857..00000000
46 --- a/app-emulation/lxc/lxc-1.0.6-r1.ebuild
47 +++ /dev/null
48 @@ -1,188 +0,0 @@
49 -# Copyright 1999-2015 Gentoo Foundation
50 -# Distributed under the terms of the GNU General Public License v2
51 -# $Id$
52 -
53 -EAPI="5"
54 -
55 -MY_P="${P/_/-}"
56 -PYTHON_COMPAT=( python{3_3,3_4} )
57 -DISTUTILS_OPTIONAL=1
58 -
59 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
60 -
61 -DESCRIPTION="LinuX Containers userspace utilities"
62 -HOMEPAGE="https://linuxcontainers.org/"
63 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
64 -
65 -KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
66 -
67 -LICENSE="LGPL-3"
68 -SLOT="0"
69 -IUSE="doc examples lua python seccomp"
70 -
71 -RDEPEND="net-libs/gnutls
72 - sys-libs/libcap
73 - lua? ( >=dev-lang/lua-5.1:= )
74 - python? ( ${PYTHON_DEPS} )
75 - seccomp? ( sys-libs/libseccomp )"
76 -
77 -DEPEND="${RDEPEND}
78 - doc? ( app-text/docbook-sgml-utils )
79 - >=sys-kernel/linux-headers-3.2"
80 -
81 -RDEPEND="${RDEPEND}
82 - sys-apps/util-linux
83 - app-misc/pax-utils
84 - virtual/awk"
85 -
86 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
87 - ~CPUSETS ~CGROUP_CPUACCT
88 - ~RESOURCE_COUNTERS
89 - ~CGROUP_SCHED
90 -
91 - ~NAMESPACES
92 - ~IPC_NS ~USER_NS ~PID_NS
93 -
94 - ~DEVPTS_MULTIPLE_INSTANCES
95 - ~CGROUP_FREEZER
96 - ~UTS_NS ~NET_NS
97 - ~VETH ~MACVLAN
98 -
99 - ~POSIX_MQUEUE
100 - ~!NETPRIO_CGROUP
101 -
102 - ~!GRKERNSEC_CHROOT_MOUNT
103 - ~!GRKERNSEC_CHROOT_DOUBLE
104 - ~!GRKERNSEC_CHROOT_PIVOT
105 - ~!GRKERNSEC_CHROOT_CHMOD
106 - ~!GRKERNSEC_CHROOT_CAPS
107 - ~!GRKERNSEC_PROC
108 -"
109 -
110 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
111 -
112 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
113 -
114 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
115 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
116 -
117 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
118 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
119 -
120 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
121 -
122 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
123 -
124 -ERROR_GRKERNSEC_CHROOT_MOUNT=":CONFIG_GRKERNSEC_CHROOT_MOUNT some GRSEC features make LXC unusable see postinst notes"
125 -ERROR_GRKERNSEC_CHROOT_DOUBLE=":CONFIG_GRKERNSEC_CHROOT_DOUBLE some GRSEC features make LXC unusable see postinst notes"
126 -ERROR_GRKERNSEC_CHROOT_PIVOT=":CONFIG_GRKERNSEC_CHROOT_PIVOT some GRSEC features make LXC unusable see postinst notes"
127 -ERROR_GRKERNSEC_CHROOT_CHMOD=":CONFIG_GRKERNSEC_CHROOT_CHMOD some GRSEC features make LXC unusable see postinst notes"
128 -ERROR_GRKERNSEC_CHROOT_CAPS=":CONFIG_GRKERNSEC_CHROOT_CAPS some GRSEC features make LXC unusable see postinst notes"
129 -ERROR_GRKERNSEC_PROC=":CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
130 -
131 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
132 -
133 -S="${WORKDIR}/${PN}-${MY_P}"
134 -
135 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
136 -
137 -src_prepare() {
138 - sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
139 - if [[ -n ${BACKPORTS} ]]; then
140 - epatch "${WORKDIR}"/patches/*
141 - fi
142 -
143 - epatch "${FILESDIR}"/${P}-bash-completion.patch
144 -
145 - eautoreconf
146 -}
147 -
148 -src_configure() {
149 - append-flags -fno-strict-aliasing
150 -
151 - econf \
152 - --localstatedir=/var \
153 - --bindir=/usr/sbin \
154 - --docdir=/usr/share/doc/${PF} \
155 - --with-config-path=/etc/lxc \
156 - --with-rootfs-path=/usr/lib/lxc/rootfs \
157 - $(use_enable doc) \
158 - --disable-apparmor \
159 - $(use_enable examples) \
160 - $(use_enable lua) \
161 - $(use_enable seccomp) \
162 - --disable-python
163 -}
164 -
165 -python_compile() {
166 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
167 -}
168 -
169 -src_compile() {
170 - default
171 -
172 - if use python; then
173 - pushd "${S}/src/python-${PN}" > /dev/null
174 - distutils-r1_src_compile
175 - popd > /dev/null
176 - fi
177 -}
178 -
179 -src_install() {
180 - default
181 -
182 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
183 - bashcomp_alias ${PN}-start \
184 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
185 -
186 - if use python; then
187 - pushd "${S}/src/python-lxc" > /dev/null
188 - # Unset DOCS. This has been handled by the default target
189 - unset DOCS
190 - distutils-r1_src_install
191 - popd > /dev/null
192 - fi
193 -
194 - keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc
195 -
196 - find "${D}" -name '*.la' -delete
197 -
198 - # Gentoo-specific additions!
199 - # Use initd.3 per #517144
200 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
201 -
202 - # lxc-devsetup script
203 - exeinto /usr/libexec/${PN}
204 - doexe config/init/systemd/${PN}-devsetup
205 - # Use that script with the systemd service (Similar to upstream
206 - # Makefile.am
207 - cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service || die
208 - sed -i \
209 - "/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \
210 - ${PN}_at.service \
211 - || die "Failed to add ${PN}-devsetup to the systemd service file"
212 - systemd_newunit ${PN}_at.service "lxc@.service"
213 -}
214 -
215 -pkg_postinst() {
216 - elog "There is an init script provided with the package now; no documentation"
217 - elog "is currently available though, so please check out /etc/init.d/lxc ."
218 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
219 - elog "to start the container defined into /etc/lxc/configname.conf ."
220 - elog "For further information about LXC development see"
221 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
222 - elog ""
223 - ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2"
224 - ewarn "and previous versions. This means you'll have to use syntax like the following"
225 - ewarn ""
226 - ewarn " lxc.rootfs = /container"
227 - ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0"
228 - ewarn ""
229 - ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you"
230 - ewarn "will need sys-apps/yum or dev-util/debootstrap."
231 - ewarn ""
232 - ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to"
233 - ewarn "work, while others will actually make it much more secure. Please refer to"
234 - ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further"
235 - ewarn "details."
236 -}
237
238 diff --git a/app-emulation/lxc/lxc-1.1.0-r6.ebuild b/app-emulation/lxc/lxc-1.1.0-r6.ebuild
239 deleted file mode 100644
240 index 3976c1f..00000000
241 --- a/app-emulation/lxc/lxc-1.1.0-r6.ebuild
242 +++ /dev/null
243 @@ -1,200 +0,0 @@
244 -# Copyright 1999-2015 Gentoo Foundation
245 -# Distributed under the terms of the GNU General Public License v2
246 -# $Id$
247 -
248 -EAPI="5"
249 -
250 -MY_P="${P/_/-}"
251 -PYTHON_COMPAT=( python{3_3,3_4} )
252 -DISTUTILS_OPTIONAL=1
253 -
254 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
255 -
256 -DESCRIPTION="LinuX Containers userspace utilities"
257 -HOMEPAGE="https://linuxcontainers.org/"
258 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
259 -
260 -KEYWORDS="~amd64 ~arm"
261 -
262 -LICENSE="LGPL-3"
263 -SLOT="0"
264 -IUSE="cgmanager doc examples lua python seccomp"
265 -
266 -RDEPEND="net-libs/gnutls
267 - sys-libs/libcap
268 - cgmanager? ( app-admin/cgmanager )
269 - lua? ( >=dev-lang/lua-5.1:= )
270 - python? ( ${PYTHON_DEPS} )
271 - seccomp? ( sys-libs/libseccomp )"
272 -
273 -DEPEND="${RDEPEND}
274 - doc? ( app-text/docbook-sgml-utils )
275 - >=sys-kernel/linux-headers-3.2"
276 -
277 -RDEPEND="${RDEPEND}
278 - sys-process/criu
279 - sys-apps/util-linux
280 - app-misc/pax-utils
281 - virtual/awk"
282 -
283 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
284 - ~CPUSETS ~CGROUP_CPUACCT
285 - ~CGROUP_SCHED
286 -
287 - ~NAMESPACES
288 - ~IPC_NS ~USER_NS ~PID_NS
289 -
290 - ~NETLINK_DIAG ~PACKET_DIAG
291 - ~INET_UDP_DIAG ~INET_TCP_DIAG
292 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
293 -
294 - ~DEVPTS_MULTIPLE_INSTANCES
295 - ~CGROUP_FREEZER
296 - ~UTS_NS ~NET_NS
297 - ~VETH ~MACVLAN
298 -
299 - ~POSIX_MQUEUE
300 - ~!NETPRIO_CGROUP
301 -
302 - ~!GRKERNSEC_CHROOT_MOUNT
303 - ~!GRKERNSEC_CHROOT_DOUBLE
304 - ~!GRKERNSEC_CHROOT_PIVOT
305 - ~!GRKERNSEC_CHROOT_CHMOD
306 - ~!GRKERNSEC_CHROOT_CAPS
307 - ~!GRKERNSEC_PROC
308 - ~!GRKERNSEC_SYSFS_RESTRICT
309 -"
310 -
311 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
312 -
313 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
314 -
315 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
316 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
317 -
318 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
319 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
320 -
321 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
322 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
323 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
324 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
325 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
326 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
327 -
328 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
329 -
330 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
331 -
332 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
333 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
334 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
335 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
336 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
337 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
338 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
339 -
340 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
341 -
342 -S="${WORKDIR}/${PN}-${MY_P}"
343 -
344 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
345 -
346 -src_prepare() {
347 -
348 - epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
349 - epatch "${FILESDIR}"/${P}-fix-gentoo-template.patch
350 -
351 - eautoreconf
352 -}
353 -
354 -src_configure() {
355 - append-flags -fno-strict-aliasing
356 -
357 - if use python; then
358 - #541932
359 - python_setup "python3*"
360 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
361 - fi
362 -
363 - # I am not sure about the --with-rootfs-path
364 - # /var/lib/lxc is probably more appropriate than
365 - # /usr/lib/lxc.
366 - econf \
367 - --localstatedir=/var \
368 - --bindir=/usr/bin \
369 - --sbindir=/usr/bin \
370 - --docdir=/usr/share/doc/${PF} \
371 - --with-config-path=/var/lib/lxc \
372 - --with-rootfs-path=/var/lib/lxc/rootfs \
373 - --with-distro=gentoo \
374 - --with-runtime-path=/run \
375 - --disable-apparmor \
376 - $(use_enable cgmanager) \
377 - $(use_enable doc) \
378 - $(use_enable examples) \
379 - $(use_enable lua) \
380 - $(use_enable python) \
381 - $(use_enable seccomp)
382 -}
383 -
384 -python_compile() {
385 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
386 -}
387 -
388 -src_compile() {
389 - default
390 -
391 - if use python; then
392 - pushd "${S}/src/python-${PN}" > /dev/null
393 - distutils-r1_src_compile
394 - popd > /dev/null
395 - fi
396 -}
397 -
398 -src_install() {
399 - default
400 -
401 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
402 - bashcomp_alias ${PN}-start \
403 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
404 -
405 - if use python; then
406 - pushd "${S}/src/python-lxc" > /dev/null
407 - # Unset DOCS. This has been handled by the default target
408 - unset DOCS
409 - distutils-r1_src_install
410 - popd > /dev/null
411 - fi
412 -
413 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
414 -
415 - find "${D}" -name '*.la' -delete
416 -
417 - # Gentoo-specific additions!
418 - # Use initd.3 per #517144
419 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
420 -
421 - # lxc-devsetup script
422 - exeinto /usr/libexec/${PN}
423 - doexe config/init/systemd/${PN}-devsetup
424 - # Remember to compare our systemd unit file with the upstream one
425 - # config/init/systemd/lxc.service.in
426 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
427 -}
428 -
429 -pkg_postinst() {
430 - elog ""
431 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
432 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
433 - elog "please add the following to your /etc/lxc/default.conf"
434 - elog "lxc.lxcpath = /etc/lxc"
435 - elog ""
436 - elog "There is an init script provided with the package now; no documentation"
437 - elog "is currently available though, so please check out /etc/init.d/lxc ."
438 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
439 - elog "to start the container defined into /etc/lxc/configname.conf ."
440 - elog "For further information about LXC development see"
441 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
442 - elog ""
443 -}
444
445 diff --git a/app-emulation/lxc/lxc-1.1.1-r1.ebuild b/app-emulation/lxc/lxc-1.1.1-r1.ebuild
446 deleted file mode 100644
447 index a4f137c..00000000
448 --- a/app-emulation/lxc/lxc-1.1.1-r1.ebuild
449 +++ /dev/null
450 @@ -1,201 +0,0 @@
451 -# Copyright 1999-2015 Gentoo Foundation
452 -# Distributed under the terms of the GNU General Public License v2
453 -# $Id$
454 -
455 -EAPI="5"
456 -
457 -MY_P="${P/_/-}"
458 -PYTHON_COMPAT=( python{3_3,3_4} )
459 -DISTUTILS_OPTIONAL=1
460 -
461 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
462 -
463 -DESCRIPTION="LinuX Containers userspace utilities"
464 -HOMEPAGE="https://linuxcontainers.org/"
465 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
466 -
467 -KEYWORDS="~amd64 ~arm ~arm64"
468 -
469 -LICENSE="LGPL-3"
470 -SLOT="0"
471 -IUSE="cgmanager doc examples lua python seccomp"
472 -
473 -RDEPEND="net-libs/gnutls
474 - sys-libs/libcap
475 - cgmanager? ( app-admin/cgmanager )
476 - lua? ( >=dev-lang/lua-5.1:= )
477 - python? ( ${PYTHON_DEPS} )
478 - seccomp? ( sys-libs/libseccomp )"
479 -
480 -DEPEND="${RDEPEND}
481 - doc? ( app-text/docbook-sgml-utils )
482 - >=sys-kernel/linux-headers-3.2"
483 -
484 -RDEPEND="${RDEPEND}
485 - sys-process/criu
486 - sys-apps/util-linux
487 - app-misc/pax-utils
488 - virtual/awk"
489 -
490 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
491 - ~CPUSETS ~CGROUP_CPUACCT
492 - ~CGROUP_SCHED
493 -
494 - ~NAMESPACES
495 - ~IPC_NS ~USER_NS ~PID_NS
496 -
497 - ~NETLINK_DIAG ~PACKET_DIAG
498 - ~INET_UDP_DIAG ~INET_TCP_DIAG
499 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
500 -
501 - ~DEVPTS_MULTIPLE_INSTANCES
502 - ~CGROUP_FREEZER
503 - ~UTS_NS ~NET_NS
504 - ~VETH ~MACVLAN
505 -
506 - ~POSIX_MQUEUE
507 - ~!NETPRIO_CGROUP
508 -
509 - ~!GRKERNSEC_CHROOT_MOUNT
510 - ~!GRKERNSEC_CHROOT_DOUBLE
511 - ~!GRKERNSEC_CHROOT_PIVOT
512 - ~!GRKERNSEC_CHROOT_CHMOD
513 - ~!GRKERNSEC_CHROOT_CAPS
514 - ~!GRKERNSEC_PROC
515 - ~!GRKERNSEC_SYSFS_RESTRICT
516 -"
517 -
518 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
519 -
520 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
521 -
522 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
523 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
524 -
525 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
526 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
527 -
528 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
529 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
530 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
531 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
532 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
533 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
534 -
535 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
536 -
537 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
538 -
539 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
540 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
541 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
542 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
543 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
544 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
545 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
546 -
547 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
548 -
549 -S="${WORKDIR}/${PN}-${MY_P}"
550 -
551 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
552 -
553 -src_prepare() {
554 -
555 - epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
556 - # Fixed in master. It will probably make it to 1.1.2
557 - epatch "${FILESDIR}"/${P}-shm-tmpfs.patch
558 -
559 - eautoreconf
560 -}
561 -
562 -src_configure() {
563 - append-flags -fno-strict-aliasing
564 -
565 - if use python; then
566 - #541932
567 - python_setup "python3*"
568 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
569 - fi
570 -
571 - # I am not sure about the --with-rootfs-path
572 - # /var/lib/lxc is probably more appropriate than
573 - # /usr/lib/lxc.
574 - econf \
575 - --localstatedir=/var \
576 - --bindir=/usr/bin \
577 - --sbindir=/usr/bin \
578 - --docdir=/usr/share/doc/${PF} \
579 - --with-config-path=/var/lib/lxc \
580 - --with-rootfs-path=/var/lib/lxc/rootfs \
581 - --with-distro=gentoo \
582 - --with-runtime-path=/run \
583 - --disable-apparmor \
584 - $(use_enable cgmanager) \
585 - $(use_enable doc) \
586 - $(use_enable examples) \
587 - $(use_enable lua) \
588 - $(use_enable python) \
589 - $(use_enable seccomp)
590 -}
591 -
592 -python_compile() {
593 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
594 -}
595 -
596 -src_compile() {
597 - default
598 -
599 - if use python; then
600 - pushd "${S}/src/python-${PN}" > /dev/null
601 - distutils-r1_src_compile
602 - popd > /dev/null
603 - fi
604 -}
605 -
606 -src_install() {
607 - default
608 -
609 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
610 - bashcomp_alias ${PN}-start \
611 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
612 -
613 - if use python; then
614 - pushd "${S}/src/python-lxc" > /dev/null
615 - # Unset DOCS. This has been handled by the default target
616 - unset DOCS
617 - distutils-r1_src_install
618 - popd > /dev/null
619 - fi
620 -
621 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
622 -
623 - find "${D}" -name '*.la' -delete
624 -
625 - # Gentoo-specific additions!
626 - # Use initd.3 per #517144
627 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
628 -
629 - # lxc-devsetup script
630 - exeinto /usr/libexec/${PN}
631 - doexe config/init/systemd/${PN}-devsetup
632 - # Remember to compare our systemd unit file with the upstream one
633 - # config/init/systemd/lxc.service.in
634 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
635 -}
636 -
637 -pkg_postinst() {
638 - elog ""
639 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
640 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
641 - elog "please add the following to your /etc/lxc/default.conf"
642 - elog "lxc.lxcpath = /etc/lxc"
643 - elog ""
644 - elog "There is an init script provided with the package now; no documentation"
645 - elog "is currently available though, so please check out /etc/init.d/lxc ."
646 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
647 - elog "to start the container defined into /etc/lxc/configname.conf ."
648 - elog "For further information about LXC development see"
649 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
650 - elog ""
651 -}
652
653 diff --git a/app-emulation/lxc/lxc-1.1.2-r1.ebuild b/app-emulation/lxc/lxc-1.1.2-r1.ebuild
654 deleted file mode 100644
655 index 6e09da1..00000000
656 --- a/app-emulation/lxc/lxc-1.1.2-r1.ebuild
657 +++ /dev/null
658 @@ -1,199 +0,0 @@
659 -# Copyright 1999-2015 Gentoo Foundation
660 -# Distributed under the terms of the GNU General Public License v2
661 -# $Id$
662 -
663 -EAPI="5"
664 -
665 -MY_P="${P/_/-}"
666 -PYTHON_COMPAT=( python{3_3,3_4} )
667 -DISTUTILS_OPTIONAL=1
668 -
669 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
670 -
671 -DESCRIPTION="LinuX Containers userspace utilities"
672 -HOMEPAGE="https://linuxcontainers.org/"
673 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
674 -
675 -KEYWORDS="~amd64 ~arm ~arm64"
676 -
677 -LICENSE="LGPL-3"
678 -SLOT="0"
679 -IUSE="cgmanager doc examples lua python seccomp"
680 -
681 -RDEPEND="net-libs/gnutls
682 - sys-libs/libcap
683 - cgmanager? ( app-admin/cgmanager )
684 - lua? ( >=dev-lang/lua-5.1:= )
685 - python? ( ${PYTHON_DEPS} )
686 - seccomp? ( sys-libs/libseccomp )"
687 -
688 -DEPEND="${RDEPEND}
689 - doc? ( app-text/docbook-sgml-utils )
690 - >=sys-kernel/linux-headers-3.2"
691 -
692 -RDEPEND="${RDEPEND}
693 - sys-process/criu
694 - sys-apps/util-linux
695 - app-misc/pax-utils
696 - virtual/awk"
697 -
698 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
699 - ~CPUSETS ~CGROUP_CPUACCT
700 - ~CGROUP_SCHED
701 -
702 - ~NAMESPACES
703 - ~IPC_NS ~USER_NS ~PID_NS
704 -
705 - ~NETLINK_DIAG ~PACKET_DIAG
706 - ~INET_UDP_DIAG ~INET_TCP_DIAG
707 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
708 -
709 - ~DEVPTS_MULTIPLE_INSTANCES
710 - ~CGROUP_FREEZER
711 - ~UTS_NS ~NET_NS
712 - ~VETH ~MACVLAN
713 -
714 - ~POSIX_MQUEUE
715 - ~!NETPRIO_CGROUP
716 -
717 - ~!GRKERNSEC_CHROOT_MOUNT
718 - ~!GRKERNSEC_CHROOT_DOUBLE
719 - ~!GRKERNSEC_CHROOT_PIVOT
720 - ~!GRKERNSEC_CHROOT_CHMOD
721 - ~!GRKERNSEC_CHROOT_CAPS
722 - ~!GRKERNSEC_PROC
723 - ~!GRKERNSEC_SYSFS_RESTRICT
724 -"
725 -
726 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
727 -
728 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
729 -
730 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
731 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
732 -
733 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
734 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
735 -
736 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
737 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
738 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
739 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
740 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
741 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
742 -
743 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
744 -
745 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
746 -
747 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
748 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
749 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
750 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
751 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
752 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
753 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
754 -
755 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
756 -
757 -S="${WORKDIR}/${PN}-${MY_P}"
758 -
759 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
760 -
761 -src_prepare() {
762 -
763 - epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
764 - epatch "${FILESDIR}"/${P}-fix-gentoo-moresecure-template.patch
765 - eautoreconf
766 -}
767 -
768 -src_configure() {
769 - append-flags -fno-strict-aliasing
770 -
771 - if use python; then
772 - #541932
773 - python_setup "python3*"
774 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
775 - fi
776 -
777 - # I am not sure about the --with-rootfs-path
778 - # /var/lib/lxc is probably more appropriate than
779 - # /usr/lib/lxc.
780 - econf \
781 - --localstatedir=/var \
782 - --bindir=/usr/bin \
783 - --sbindir=/usr/bin \
784 - --docdir=/usr/share/doc/${PF} \
785 - --with-config-path=/var/lib/lxc \
786 - --with-rootfs-path=/var/lib/lxc/rootfs \
787 - --with-distro=gentoo \
788 - --with-runtime-path=/run \
789 - --disable-apparmor \
790 - $(use_enable cgmanager) \
791 - $(use_enable doc) \
792 - $(use_enable examples) \
793 - $(use_enable lua) \
794 - $(use_enable python) \
795 - $(use_enable seccomp)
796 -}
797 -
798 -python_compile() {
799 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
800 -}
801 -
802 -src_compile() {
803 - default
804 -
805 - if use python; then
806 - pushd "${S}/src/python-${PN}" > /dev/null
807 - distutils-r1_src_compile
808 - popd > /dev/null
809 - fi
810 -}
811 -
812 -src_install() {
813 - default
814 -
815 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
816 - bashcomp_alias ${PN}-start \
817 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
818 -
819 - if use python; then
820 - pushd "${S}/src/python-lxc" > /dev/null
821 - # Unset DOCS. This has been handled by the default target
822 - unset DOCS
823 - distutils-r1_src_install
824 - popd > /dev/null
825 - fi
826 -
827 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
828 -
829 - find "${D}" -name '*.la' -delete
830 -
831 - # Gentoo-specific additions!
832 - # Use initd.3 per #517144
833 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
834 -
835 - # lxc-devsetup script
836 - exeinto /usr/libexec/${PN}
837 - doexe config/init/systemd/${PN}-devsetup
838 - # Remember to compare our systemd unit file with the upstream one
839 - # config/init/systemd/lxc.service.in
840 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
841 -}
842 -
843 -pkg_postinst() {
844 - elog ""
845 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
846 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
847 - elog "please add the following to your /etc/lxc/default.conf"
848 - elog "lxc.lxcpath = /etc/lxc"
849 - elog ""
850 - elog "There is an init script provided with the package now; no documentation"
851 - elog "is currently available though, so please check out /etc/init.d/lxc ."
852 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
853 - elog "to start the container defined into /etc/lxc/configname.conf ."
854 - elog "For further information about LXC development see"
855 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
856 - elog ""
857 -}
858
859 diff --git a/app-emulation/lxc/lxc-1.1.2-r2.ebuild b/app-emulation/lxc/lxc-1.1.2-r2.ebuild
860 deleted file mode 100644
861 index 6e09da1..00000000
862 --- a/app-emulation/lxc/lxc-1.1.2-r2.ebuild
863 +++ /dev/null
864 @@ -1,199 +0,0 @@
865 -# Copyright 1999-2015 Gentoo Foundation
866 -# Distributed under the terms of the GNU General Public License v2
867 -# $Id$
868 -
869 -EAPI="5"
870 -
871 -MY_P="${P/_/-}"
872 -PYTHON_COMPAT=( python{3_3,3_4} )
873 -DISTUTILS_OPTIONAL=1
874 -
875 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
876 -
877 -DESCRIPTION="LinuX Containers userspace utilities"
878 -HOMEPAGE="https://linuxcontainers.org/"
879 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
880 -
881 -KEYWORDS="~amd64 ~arm ~arm64"
882 -
883 -LICENSE="LGPL-3"
884 -SLOT="0"
885 -IUSE="cgmanager doc examples lua python seccomp"
886 -
887 -RDEPEND="net-libs/gnutls
888 - sys-libs/libcap
889 - cgmanager? ( app-admin/cgmanager )
890 - lua? ( >=dev-lang/lua-5.1:= )
891 - python? ( ${PYTHON_DEPS} )
892 - seccomp? ( sys-libs/libseccomp )"
893 -
894 -DEPEND="${RDEPEND}
895 - doc? ( app-text/docbook-sgml-utils )
896 - >=sys-kernel/linux-headers-3.2"
897 -
898 -RDEPEND="${RDEPEND}
899 - sys-process/criu
900 - sys-apps/util-linux
901 - app-misc/pax-utils
902 - virtual/awk"
903 -
904 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
905 - ~CPUSETS ~CGROUP_CPUACCT
906 - ~CGROUP_SCHED
907 -
908 - ~NAMESPACES
909 - ~IPC_NS ~USER_NS ~PID_NS
910 -
911 - ~NETLINK_DIAG ~PACKET_DIAG
912 - ~INET_UDP_DIAG ~INET_TCP_DIAG
913 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
914 -
915 - ~DEVPTS_MULTIPLE_INSTANCES
916 - ~CGROUP_FREEZER
917 - ~UTS_NS ~NET_NS
918 - ~VETH ~MACVLAN
919 -
920 - ~POSIX_MQUEUE
921 - ~!NETPRIO_CGROUP
922 -
923 - ~!GRKERNSEC_CHROOT_MOUNT
924 - ~!GRKERNSEC_CHROOT_DOUBLE
925 - ~!GRKERNSEC_CHROOT_PIVOT
926 - ~!GRKERNSEC_CHROOT_CHMOD
927 - ~!GRKERNSEC_CHROOT_CAPS
928 - ~!GRKERNSEC_PROC
929 - ~!GRKERNSEC_SYSFS_RESTRICT
930 -"
931 -
932 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
933 -
934 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
935 -
936 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
937 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
938 -
939 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
940 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
941 -
942 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
943 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
944 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
945 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
946 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
947 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
948 -
949 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
950 -
951 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
952 -
953 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
954 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
955 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
956 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
957 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
958 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
959 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
960 -
961 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
962 -
963 -S="${WORKDIR}/${PN}-${MY_P}"
964 -
965 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
966 -
967 -src_prepare() {
968 -
969 - epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
970 - epatch "${FILESDIR}"/${P}-fix-gentoo-moresecure-template.patch
971 - eautoreconf
972 -}
973 -
974 -src_configure() {
975 - append-flags -fno-strict-aliasing
976 -
977 - if use python; then
978 - #541932
979 - python_setup "python3*"
980 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
981 - fi
982 -
983 - # I am not sure about the --with-rootfs-path
984 - # /var/lib/lxc is probably more appropriate than
985 - # /usr/lib/lxc.
986 - econf \
987 - --localstatedir=/var \
988 - --bindir=/usr/bin \
989 - --sbindir=/usr/bin \
990 - --docdir=/usr/share/doc/${PF} \
991 - --with-config-path=/var/lib/lxc \
992 - --with-rootfs-path=/var/lib/lxc/rootfs \
993 - --with-distro=gentoo \
994 - --with-runtime-path=/run \
995 - --disable-apparmor \
996 - $(use_enable cgmanager) \
997 - $(use_enable doc) \
998 - $(use_enable examples) \
999 - $(use_enable lua) \
1000 - $(use_enable python) \
1001 - $(use_enable seccomp)
1002 -}
1003 -
1004 -python_compile() {
1005 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1006 -}
1007 -
1008 -src_compile() {
1009 - default
1010 -
1011 - if use python; then
1012 - pushd "${S}/src/python-${PN}" > /dev/null
1013 - distutils-r1_src_compile
1014 - popd > /dev/null
1015 - fi
1016 -}
1017 -
1018 -src_install() {
1019 - default
1020 -
1021 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1022 - bashcomp_alias ${PN}-start \
1023 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1024 -
1025 - if use python; then
1026 - pushd "${S}/src/python-lxc" > /dev/null
1027 - # Unset DOCS. This has been handled by the default target
1028 - unset DOCS
1029 - distutils-r1_src_install
1030 - popd > /dev/null
1031 - fi
1032 -
1033 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1034 -
1035 - find "${D}" -name '*.la' -delete
1036 -
1037 - # Gentoo-specific additions!
1038 - # Use initd.3 per #517144
1039 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
1040 -
1041 - # lxc-devsetup script
1042 - exeinto /usr/libexec/${PN}
1043 - doexe config/init/systemd/${PN}-devsetup
1044 - # Remember to compare our systemd unit file with the upstream one
1045 - # config/init/systemd/lxc.service.in
1046 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
1047 -}
1048 -
1049 -pkg_postinst() {
1050 - elog ""
1051 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1052 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1053 - elog "please add the following to your /etc/lxc/default.conf"
1054 - elog "lxc.lxcpath = /etc/lxc"
1055 - elog ""
1056 - elog "There is an init script provided with the package now; no documentation"
1057 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1058 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1059 - elog "to start the container defined into /etc/lxc/configname.conf ."
1060 - elog "For further information about LXC development see"
1061 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1062 - elog ""
1063 -}
1064
1065 diff --git a/app-emulation/lxc/lxc-1.1.2.ebuild b/app-emulation/lxc/lxc-1.1.2.ebuild
1066 deleted file mode 100644
1067 index 542aca0..00000000
1068 --- a/app-emulation/lxc/lxc-1.1.2.ebuild
1069 +++ /dev/null
1070 @@ -1,198 +0,0 @@
1071 -# Copyright 1999-2015 Gentoo Foundation
1072 -# Distributed under the terms of the GNU General Public License v2
1073 -# $Id$
1074 -
1075 -EAPI="5"
1076 -
1077 -MY_P="${P/_/-}"
1078 -PYTHON_COMPAT=( python{3_3,3_4} )
1079 -DISTUTILS_OPTIONAL=1
1080 -
1081 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
1082 -
1083 -DESCRIPTION="LinuX Containers userspace utilities"
1084 -HOMEPAGE="https://linuxcontainers.org/"
1085 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1086 -
1087 -KEYWORDS="~amd64 ~arm ~arm64"
1088 -
1089 -LICENSE="LGPL-3"
1090 -SLOT="0"
1091 -IUSE="cgmanager doc examples lua python seccomp"
1092 -
1093 -RDEPEND="net-libs/gnutls
1094 - sys-libs/libcap
1095 - cgmanager? ( app-admin/cgmanager )
1096 - lua? ( >=dev-lang/lua-5.1:= )
1097 - python? ( ${PYTHON_DEPS} )
1098 - seccomp? ( sys-libs/libseccomp )"
1099 -
1100 -DEPEND="${RDEPEND}
1101 - doc? ( app-text/docbook-sgml-utils )
1102 - >=sys-kernel/linux-headers-3.2"
1103 -
1104 -RDEPEND="${RDEPEND}
1105 - sys-process/criu
1106 - sys-apps/util-linux
1107 - app-misc/pax-utils
1108 - virtual/awk"
1109 -
1110 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1111 - ~CPUSETS ~CGROUP_CPUACCT
1112 - ~CGROUP_SCHED
1113 -
1114 - ~NAMESPACES
1115 - ~IPC_NS ~USER_NS ~PID_NS
1116 -
1117 - ~NETLINK_DIAG ~PACKET_DIAG
1118 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1119 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1120 -
1121 - ~DEVPTS_MULTIPLE_INSTANCES
1122 - ~CGROUP_FREEZER
1123 - ~UTS_NS ~NET_NS
1124 - ~VETH ~MACVLAN
1125 -
1126 - ~POSIX_MQUEUE
1127 - ~!NETPRIO_CGROUP
1128 -
1129 - ~!GRKERNSEC_CHROOT_MOUNT
1130 - ~!GRKERNSEC_CHROOT_DOUBLE
1131 - ~!GRKERNSEC_CHROOT_PIVOT
1132 - ~!GRKERNSEC_CHROOT_CHMOD
1133 - ~!GRKERNSEC_CHROOT_CAPS
1134 - ~!GRKERNSEC_PROC
1135 - ~!GRKERNSEC_SYSFS_RESTRICT
1136 -"
1137 -
1138 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1139 -
1140 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1141 -
1142 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1143 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1144 -
1145 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1146 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1147 -
1148 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1149 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1150 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1151 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1152 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1153 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1154 -
1155 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1156 -
1157 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1158 -
1159 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1160 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1161 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1162 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1163 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1164 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1165 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1166 -
1167 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1168 -
1169 -S="${WORKDIR}/${PN}-${MY_P}"
1170 -
1171 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1172 -
1173 -src_prepare() {
1174 -
1175 - epatch "${FILESDIR}"/${PN}-1.0.6-bash-completion.patch
1176 - eautoreconf
1177 -}
1178 -
1179 -src_configure() {
1180 - append-flags -fno-strict-aliasing
1181 -
1182 - if use python; then
1183 - #541932
1184 - python_setup "python3*"
1185 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
1186 - fi
1187 -
1188 - # I am not sure about the --with-rootfs-path
1189 - # /var/lib/lxc is probably more appropriate than
1190 - # /usr/lib/lxc.
1191 - econf \
1192 - --localstatedir=/var \
1193 - --bindir=/usr/bin \
1194 - --sbindir=/usr/bin \
1195 - --docdir=/usr/share/doc/${PF} \
1196 - --with-config-path=/var/lib/lxc \
1197 - --with-rootfs-path=/var/lib/lxc/rootfs \
1198 - --with-distro=gentoo \
1199 - --with-runtime-path=/run \
1200 - --disable-apparmor \
1201 - $(use_enable cgmanager) \
1202 - $(use_enable doc) \
1203 - $(use_enable examples) \
1204 - $(use_enable lua) \
1205 - $(use_enable python) \
1206 - $(use_enable seccomp)
1207 -}
1208 -
1209 -python_compile() {
1210 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1211 -}
1212 -
1213 -src_compile() {
1214 - default
1215 -
1216 - if use python; then
1217 - pushd "${S}/src/python-${PN}" > /dev/null
1218 - distutils-r1_src_compile
1219 - popd > /dev/null
1220 - fi
1221 -}
1222 -
1223 -src_install() {
1224 - default
1225 -
1226 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1227 - bashcomp_alias ${PN}-start \
1228 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1229 -
1230 - if use python; then
1231 - pushd "${S}/src/python-lxc" > /dev/null
1232 - # Unset DOCS. This has been handled by the default target
1233 - unset DOCS
1234 - distutils-r1_src_install
1235 - popd > /dev/null
1236 - fi
1237 -
1238 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1239 -
1240 - find "${D}" -name '*.la' -delete
1241 -
1242 - # Gentoo-specific additions!
1243 - # Use initd.3 per #517144
1244 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
1245 -
1246 - # lxc-devsetup script
1247 - exeinto /usr/libexec/${PN}
1248 - doexe config/init/systemd/${PN}-devsetup
1249 - # Remember to compare our systemd unit file with the upstream one
1250 - # config/init/systemd/lxc.service.in
1251 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
1252 -}
1253 -
1254 -pkg_postinst() {
1255 - elog ""
1256 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1257 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1258 - elog "please add the following to your /etc/lxc/default.conf"
1259 - elog "lxc.lxcpath = /etc/lxc"
1260 - elog ""
1261 - elog "There is an init script provided with the package now; no documentation"
1262 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1263 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1264 - elog "to start the container defined into /etc/lxc/configname.conf ."
1265 - elog "For further information about LXC development see"
1266 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1267 - elog ""
1268 -}
1269
1270 diff --git a/app-emulation/lxc/lxc-1.1.3.ebuild b/app-emulation/lxc/lxc-1.1.3.ebuild
1271 deleted file mode 100644
1272 index b41c685..00000000
1273 --- a/app-emulation/lxc/lxc-1.1.3.ebuild
1274 +++ /dev/null
1275 @@ -1,198 +0,0 @@
1276 -# Copyright 1999-2015 Gentoo Foundation
1277 -# Distributed under the terms of the GNU General Public License v2
1278 -# $Id$
1279 -
1280 -EAPI="5"
1281 -
1282 -MY_P="${P/_/-}"
1283 -PYTHON_COMPAT=( python{3_3,3_4} )
1284 -DISTUTILS_OPTIONAL=1
1285 -
1286 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
1287 -
1288 -DESCRIPTION="LinuX Containers userspace utilities"
1289 -HOMEPAGE="https://linuxcontainers.org/"
1290 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1291 -
1292 -KEYWORDS="~amd64 ~arm ~arm64"
1293 -
1294 -LICENSE="LGPL-3"
1295 -SLOT="0"
1296 -IUSE="cgmanager doc examples lua python seccomp"
1297 -
1298 -RDEPEND="net-libs/gnutls
1299 - sys-libs/libcap
1300 - cgmanager? ( app-admin/cgmanager )
1301 - lua? ( >=dev-lang/lua-5.1:= )
1302 - python? ( ${PYTHON_DEPS} )
1303 - seccomp? ( sys-libs/libseccomp )"
1304 -
1305 -DEPEND="${RDEPEND}
1306 - doc? ( app-text/docbook-sgml-utils )
1307 - >=sys-kernel/linux-headers-3.2"
1308 -
1309 -RDEPEND="${RDEPEND}
1310 - sys-process/criu
1311 - sys-apps/util-linux
1312 - app-misc/pax-utils
1313 - virtual/awk"
1314 -
1315 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1316 - ~CPUSETS ~CGROUP_CPUACCT
1317 - ~CGROUP_SCHED
1318 -
1319 - ~NAMESPACES
1320 - ~IPC_NS ~USER_NS ~PID_NS
1321 -
1322 - ~NETLINK_DIAG ~PACKET_DIAG
1323 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1324 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1325 -
1326 - ~DEVPTS_MULTIPLE_INSTANCES
1327 - ~CGROUP_FREEZER
1328 - ~UTS_NS ~NET_NS
1329 - ~VETH ~MACVLAN
1330 -
1331 - ~POSIX_MQUEUE
1332 - ~!NETPRIO_CGROUP
1333 -
1334 - ~!GRKERNSEC_CHROOT_MOUNT
1335 - ~!GRKERNSEC_CHROOT_DOUBLE
1336 - ~!GRKERNSEC_CHROOT_PIVOT
1337 - ~!GRKERNSEC_CHROOT_CHMOD
1338 - ~!GRKERNSEC_CHROOT_CAPS
1339 - ~!GRKERNSEC_PROC
1340 - ~!GRKERNSEC_SYSFS_RESTRICT
1341 -"
1342 -
1343 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1344 -
1345 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1346 -
1347 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1348 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1349 -
1350 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1351 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1352 -
1353 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1354 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1355 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1356 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1357 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1358 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1359 -
1360 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1361 -
1362 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1363 -
1364 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1365 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1366 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1367 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1368 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1369 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1370 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1371 -
1372 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1373 -
1374 -S="${WORKDIR}/${PN}-${MY_P}"
1375 -
1376 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1377 -
1378 -src_prepare() {
1379 -
1380 - epatch "${FILESDIR}"/${PN}-1.1.3-bash-completion.patch
1381 - eautoreconf
1382 -}
1383 -
1384 -src_configure() {
1385 - append-flags -fno-strict-aliasing
1386 -
1387 - if use python; then
1388 - #541932
1389 - python_setup "python3*"
1390 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
1391 - fi
1392 -
1393 - # I am not sure about the --with-rootfs-path
1394 - # /var/lib/lxc is probably more appropriate than
1395 - # /usr/lib/lxc.
1396 - econf \
1397 - --localstatedir=/var \
1398 - --bindir=/usr/bin \
1399 - --sbindir=/usr/bin \
1400 - --docdir=/usr/share/doc/${PF} \
1401 - --with-config-path=/var/lib/lxc \
1402 - --with-rootfs-path=/var/lib/lxc/rootfs \
1403 - --with-distro=gentoo \
1404 - --with-runtime-path=/run \
1405 - --disable-apparmor \
1406 - $(use_enable cgmanager) \
1407 - $(use_enable doc) \
1408 - $(use_enable examples) \
1409 - $(use_enable lua) \
1410 - $(use_enable python) \
1411 - $(use_enable seccomp)
1412 -}
1413 -
1414 -python_compile() {
1415 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1416 -}
1417 -
1418 -src_compile() {
1419 - default
1420 -
1421 - if use python; then
1422 - pushd "${S}/src/python-${PN}" > /dev/null
1423 - distutils-r1_src_compile
1424 - popd > /dev/null
1425 - fi
1426 -}
1427 -
1428 -src_install() {
1429 - default
1430 -
1431 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1432 - bashcomp_alias ${PN}-start \
1433 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1434 -
1435 - if use python; then
1436 - pushd "${S}/src/python-lxc" > /dev/null
1437 - # Unset DOCS. This has been handled by the default target
1438 - unset DOCS
1439 - distutils-r1_src_install
1440 - popd > /dev/null
1441 - fi
1442 -
1443 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1444 -
1445 - find "${D}" -name '*.la' -delete
1446 -
1447 - # Gentoo-specific additions!
1448 - # Use initd.3 per #517144
1449 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
1450 -
1451 - # lxc-devsetup script
1452 - exeinto /usr/libexec/${PN}
1453 - doexe config/init/systemd/${PN}-devsetup
1454 - # Remember to compare our systemd unit file with the upstream one
1455 - # config/init/systemd/lxc.service.in
1456 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
1457 -}
1458 -
1459 -pkg_postinst() {
1460 - elog ""
1461 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1462 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1463 - elog "please add the following to your /etc/lxc/default.conf"
1464 - elog "lxc.lxcpath = /etc/lxc"
1465 - elog ""
1466 - elog "There is an init script provided with the package now; no documentation"
1467 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1468 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1469 - elog "to start the container defined into /etc/lxc/configname.conf ."
1470 - elog "For further information about LXC development see"
1471 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1472 - elog ""
1473 -}
1474
1475 diff --git a/app-emulation/lxc/lxc-1.1.4.ebuild b/app-emulation/lxc/lxc-1.1.4.ebuild
1476 deleted file mode 100644
1477 index 12c1751..00000000
1478 --- a/app-emulation/lxc/lxc-1.1.4.ebuild
1479 +++ /dev/null
1480 @@ -1,198 +0,0 @@
1481 -# Copyright 1999-2015 Gentoo Foundation
1482 -# Distributed under the terms of the GNU General Public License v2
1483 -# $Id$
1484 -
1485 -EAPI="5"
1486 -
1487 -MY_P="${P/_/-}"
1488 -PYTHON_COMPAT=( python{3_3,3_4,3_5} )
1489 -DISTUTILS_OPTIONAL=1
1490 -
1491 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
1492 -
1493 -DESCRIPTION="LinuX Containers userspace utilities"
1494 -HOMEPAGE="https://linuxcontainers.org/"
1495 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1496 -
1497 -KEYWORDS="~amd64 ~arm ~arm64"
1498 -
1499 -LICENSE="LGPL-3"
1500 -SLOT="0"
1501 -IUSE="cgmanager doc examples lua python seccomp"
1502 -
1503 -RDEPEND="net-libs/gnutls
1504 - sys-libs/libcap
1505 - cgmanager? ( app-admin/cgmanager )
1506 - lua? ( >=dev-lang/lua-5.1:= )
1507 - python? ( ${PYTHON_DEPS} )
1508 - seccomp? ( sys-libs/libseccomp )"
1509 -
1510 -DEPEND="${RDEPEND}
1511 - doc? ( app-text/docbook-sgml-utils )
1512 - >=sys-kernel/linux-headers-3.2"
1513 -
1514 -RDEPEND="${RDEPEND}
1515 - sys-process/criu
1516 - sys-apps/util-linux
1517 - app-misc/pax-utils
1518 - virtual/awk"
1519 -
1520 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1521 - ~CPUSETS ~CGROUP_CPUACCT
1522 - ~CGROUP_SCHED
1523 -
1524 - ~NAMESPACES
1525 - ~IPC_NS ~USER_NS ~PID_NS
1526 -
1527 - ~NETLINK_DIAG ~PACKET_DIAG
1528 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1529 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1530 -
1531 - ~DEVPTS_MULTIPLE_INSTANCES
1532 - ~CGROUP_FREEZER
1533 - ~UTS_NS ~NET_NS
1534 - ~VETH ~MACVLAN
1535 -
1536 - ~POSIX_MQUEUE
1537 - ~!NETPRIO_CGROUP
1538 -
1539 - ~!GRKERNSEC_CHROOT_MOUNT
1540 - ~!GRKERNSEC_CHROOT_DOUBLE
1541 - ~!GRKERNSEC_CHROOT_PIVOT
1542 - ~!GRKERNSEC_CHROOT_CHMOD
1543 - ~!GRKERNSEC_CHROOT_CAPS
1544 - ~!GRKERNSEC_PROC
1545 - ~!GRKERNSEC_SYSFS_RESTRICT
1546 -"
1547 -
1548 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1549 -
1550 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1551 -
1552 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1553 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1554 -
1555 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1556 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1557 -
1558 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1559 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1560 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1561 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1562 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1563 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1564 -
1565 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1566 -
1567 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1568 -
1569 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1570 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1571 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1572 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1573 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1574 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1575 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1576 -
1577 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1578 -
1579 -S="${WORKDIR}/${PN}-${MY_P}"
1580 -
1581 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1582 -
1583 -src_prepare() {
1584 -
1585 - epatch "${FILESDIR}"/${PN}-1.1.3-bash-completion.patch
1586 - eautoreconf
1587 -}
1588 -
1589 -src_configure() {
1590 - append-flags -fno-strict-aliasing
1591 -
1592 - if use python; then
1593 - #541932
1594 - python_setup "python3*"
1595 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
1596 - fi
1597 -
1598 - # I am not sure about the --with-rootfs-path
1599 - # /var/lib/lxc is probably more appropriate than
1600 - # /usr/lib/lxc.
1601 - econf \
1602 - --localstatedir=/var \
1603 - --bindir=/usr/bin \
1604 - --sbindir=/usr/bin \
1605 - --docdir=/usr/share/doc/${PF} \
1606 - --with-config-path=/var/lib/lxc \
1607 - --with-rootfs-path=/var/lib/lxc/rootfs \
1608 - --with-distro=gentoo \
1609 - --with-runtime-path=/run \
1610 - --disable-apparmor \
1611 - $(use_enable cgmanager) \
1612 - $(use_enable doc) \
1613 - $(use_enable examples) \
1614 - $(use_enable lua) \
1615 - $(use_enable python) \
1616 - $(use_enable seccomp)
1617 -}
1618 -
1619 -python_compile() {
1620 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1621 -}
1622 -
1623 -src_compile() {
1624 - default
1625 -
1626 - if use python; then
1627 - pushd "${S}/src/python-${PN}" > /dev/null
1628 - distutils-r1_src_compile
1629 - popd > /dev/null
1630 - fi
1631 -}
1632 -
1633 -src_install() {
1634 - default
1635 -
1636 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1637 - bashcomp_alias ${PN}-start \
1638 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1639 -
1640 - if use python; then
1641 - pushd "${S}/src/python-lxc" > /dev/null
1642 - # Unset DOCS. This has been handled by the default target
1643 - unset DOCS
1644 - distutils-r1_src_install
1645 - popd > /dev/null
1646 - fi
1647 -
1648 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1649 -
1650 - find "${D}" -name '*.la' -delete
1651 -
1652 - # Gentoo-specific additions!
1653 - # Use initd.3 per #517144
1654 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
1655 -
1656 - # lxc-devsetup script
1657 - exeinto /usr/libexec/${PN}
1658 - doexe config/init/systemd/${PN}-devsetup
1659 - # Remember to compare our systemd unit file with the upstream one
1660 - # config/init/systemd/lxc.service.in
1661 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
1662 -}
1663 -
1664 -pkg_postinst() {
1665 - elog ""
1666 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1667 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1668 - elog "please add the following to your /etc/lxc/default.conf"
1669 - elog "lxc.lxcpath = /etc/lxc"
1670 - elog ""
1671 - elog "There is an init script provided with the package now; no documentation"
1672 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1673 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1674 - elog "to start the container defined into /etc/lxc/configname.conf ."
1675 - elog "For further information about LXC development see"
1676 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1677 - elog ""
1678 -}
1679
1680 diff --git a/app-emulation/lxc/lxc-1.1.5.ebuild b/app-emulation/lxc/lxc-1.1.5.ebuild
1681 deleted file mode 100644
1682 index 12c1751..00000000
1683 --- a/app-emulation/lxc/lxc-1.1.5.ebuild
1684 +++ /dev/null
1685 @@ -1,198 +0,0 @@
1686 -# Copyright 1999-2015 Gentoo Foundation
1687 -# Distributed under the terms of the GNU General Public License v2
1688 -# $Id$
1689 -
1690 -EAPI="5"
1691 -
1692 -MY_P="${P/_/-}"
1693 -PYTHON_COMPAT=( python{3_3,3_4,3_5} )
1694 -DISTUTILS_OPTIONAL=1
1695 -
1696 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
1697 -
1698 -DESCRIPTION="LinuX Containers userspace utilities"
1699 -HOMEPAGE="https://linuxcontainers.org/"
1700 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1701 -
1702 -KEYWORDS="~amd64 ~arm ~arm64"
1703 -
1704 -LICENSE="LGPL-3"
1705 -SLOT="0"
1706 -IUSE="cgmanager doc examples lua python seccomp"
1707 -
1708 -RDEPEND="net-libs/gnutls
1709 - sys-libs/libcap
1710 - cgmanager? ( app-admin/cgmanager )
1711 - lua? ( >=dev-lang/lua-5.1:= )
1712 - python? ( ${PYTHON_DEPS} )
1713 - seccomp? ( sys-libs/libseccomp )"
1714 -
1715 -DEPEND="${RDEPEND}
1716 - doc? ( app-text/docbook-sgml-utils )
1717 - >=sys-kernel/linux-headers-3.2"
1718 -
1719 -RDEPEND="${RDEPEND}
1720 - sys-process/criu
1721 - sys-apps/util-linux
1722 - app-misc/pax-utils
1723 - virtual/awk"
1724 -
1725 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1726 - ~CPUSETS ~CGROUP_CPUACCT
1727 - ~CGROUP_SCHED
1728 -
1729 - ~NAMESPACES
1730 - ~IPC_NS ~USER_NS ~PID_NS
1731 -
1732 - ~NETLINK_DIAG ~PACKET_DIAG
1733 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1734 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1735 -
1736 - ~DEVPTS_MULTIPLE_INSTANCES
1737 - ~CGROUP_FREEZER
1738 - ~UTS_NS ~NET_NS
1739 - ~VETH ~MACVLAN
1740 -
1741 - ~POSIX_MQUEUE
1742 - ~!NETPRIO_CGROUP
1743 -
1744 - ~!GRKERNSEC_CHROOT_MOUNT
1745 - ~!GRKERNSEC_CHROOT_DOUBLE
1746 - ~!GRKERNSEC_CHROOT_PIVOT
1747 - ~!GRKERNSEC_CHROOT_CHMOD
1748 - ~!GRKERNSEC_CHROOT_CAPS
1749 - ~!GRKERNSEC_PROC
1750 - ~!GRKERNSEC_SYSFS_RESTRICT
1751 -"
1752 -
1753 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1754 -
1755 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1756 -
1757 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1758 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1759 -
1760 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1761 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1762 -
1763 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1764 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1765 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1766 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1767 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1768 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1769 -
1770 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1771 -
1772 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1773 -
1774 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1775 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1776 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1777 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1778 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1779 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1780 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1781 -
1782 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1783 -
1784 -S="${WORKDIR}/${PN}-${MY_P}"
1785 -
1786 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1787 -
1788 -src_prepare() {
1789 -
1790 - epatch "${FILESDIR}"/${PN}-1.1.3-bash-completion.patch
1791 - eautoreconf
1792 -}
1793 -
1794 -src_configure() {
1795 - append-flags -fno-strict-aliasing
1796 -
1797 - if use python; then
1798 - #541932
1799 - python_setup "python3*"
1800 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
1801 - fi
1802 -
1803 - # I am not sure about the --with-rootfs-path
1804 - # /var/lib/lxc is probably more appropriate than
1805 - # /usr/lib/lxc.
1806 - econf \
1807 - --localstatedir=/var \
1808 - --bindir=/usr/bin \
1809 - --sbindir=/usr/bin \
1810 - --docdir=/usr/share/doc/${PF} \
1811 - --with-config-path=/var/lib/lxc \
1812 - --with-rootfs-path=/var/lib/lxc/rootfs \
1813 - --with-distro=gentoo \
1814 - --with-runtime-path=/run \
1815 - --disable-apparmor \
1816 - $(use_enable cgmanager) \
1817 - $(use_enable doc) \
1818 - $(use_enable examples) \
1819 - $(use_enable lua) \
1820 - $(use_enable python) \
1821 - $(use_enable seccomp)
1822 -}
1823 -
1824 -python_compile() {
1825 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
1826 -}
1827 -
1828 -src_compile() {
1829 - default
1830 -
1831 - if use python; then
1832 - pushd "${S}/src/python-${PN}" > /dev/null
1833 - distutils-r1_src_compile
1834 - popd > /dev/null
1835 - fi
1836 -}
1837 -
1838 -src_install() {
1839 - default
1840 -
1841 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
1842 - bashcomp_alias ${PN}-start \
1843 - ${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
1844 -
1845 - if use python; then
1846 - pushd "${S}/src/python-lxc" > /dev/null
1847 - # Unset DOCS. This has been handled by the default target
1848 - unset DOCS
1849 - distutils-r1_src_install
1850 - popd > /dev/null
1851 - fi
1852 -
1853 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
1854 -
1855 - find "${D}" -name '*.la' -delete
1856 -
1857 - # Gentoo-specific additions!
1858 - # Use initd.3 per #517144
1859 - newinitd "${FILESDIR}/${PN}.initd.3" ${PN}
1860 -
1861 - # lxc-devsetup script
1862 - exeinto /usr/libexec/${PN}
1863 - doexe config/init/systemd/${PN}-devsetup
1864 - # Remember to compare our systemd unit file with the upstream one
1865 - # config/init/systemd/lxc.service.in
1866 - systemd_newunit "${FILESDIR}"/${PN}_at.service.2 "lxc@.service"
1867 -}
1868 -
1869 -pkg_postinst() {
1870 - elog ""
1871 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
1872 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
1873 - elog "please add the following to your /etc/lxc/default.conf"
1874 - elog "lxc.lxcpath = /etc/lxc"
1875 - elog ""
1876 - elog "There is an init script provided with the package now; no documentation"
1877 - elog "is currently available though, so please check out /etc/init.d/lxc ."
1878 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
1879 - elog "to start the container defined into /etc/lxc/configname.conf ."
1880 - elog "For further information about LXC development see"
1881 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
1882 - elog ""
1883 -}
1884
1885 diff --git a/app-emulation/lxc/lxc-2.0.1.ebuild b/app-emulation/lxc/lxc-2.0.1.ebuild
1886 deleted file mode 100644
1887 index b95536f..00000000
1888 --- a/app-emulation/lxc/lxc-2.0.1.ebuild
1889 +++ /dev/null
1890 @@ -1,200 +0,0 @@
1891 -# Copyright 1999-2016 Gentoo Foundation
1892 -# Distributed under the terms of the GNU General Public License v2
1893 -# $Id$
1894 -
1895 -EAPI="5"
1896 -
1897 -MY_P="${P/_/-}"
1898 -PYTHON_COMPAT=( python{3_3,3_4,3_5} )
1899 -DISTUTILS_OPTIONAL=1
1900 -
1901 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
1902 -
1903 -DESCRIPTION="LinuX Containers userspace utilities"
1904 -HOMEPAGE="https://linuxcontainers.org/"
1905 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
1906 -
1907 -KEYWORDS="~amd64 ~arm ~arm64"
1908 -
1909 -LICENSE="LGPL-3"
1910 -SLOT="0"
1911 -IUSE="cgmanager doc examples lua python seccomp"
1912 -
1913 -RDEPEND="net-libs/gnutls
1914 - sys-libs/libcap
1915 - cgmanager? ( app-admin/cgmanager )
1916 - lua? ( >=dev-lang/lua-5.1:= )
1917 - python? ( ${PYTHON_DEPS} )
1918 - seccomp? ( sys-libs/libseccomp )"
1919 -
1920 -DEPEND="${RDEPEND}
1921 - doc? ( app-text/docbook-sgml-utils )
1922 - >=sys-kernel/linux-headers-3.2"
1923 -
1924 -RDEPEND="${RDEPEND}
1925 - sys-process/criu
1926 - sys-apps/util-linux
1927 - app-misc/pax-utils
1928 - virtual/awk"
1929 -
1930 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
1931 - ~CPUSETS ~CGROUP_CPUACCT
1932 - ~CGROUP_SCHED
1933 -
1934 - ~NAMESPACES
1935 - ~IPC_NS ~USER_NS ~PID_NS
1936 -
1937 - ~NETLINK_DIAG ~PACKET_DIAG
1938 - ~INET_UDP_DIAG ~INET_TCP_DIAG
1939 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
1940 -
1941 - ~DEVPTS_MULTIPLE_INSTANCES
1942 - ~CGROUP_FREEZER
1943 - ~UTS_NS ~NET_NS
1944 - ~VETH ~MACVLAN
1945 -
1946 - ~POSIX_MQUEUE
1947 - ~!NETPRIO_CGROUP
1948 -
1949 - ~!GRKERNSEC_CHROOT_MOUNT
1950 - ~!GRKERNSEC_CHROOT_DOUBLE
1951 - ~!GRKERNSEC_CHROOT_PIVOT
1952 - ~!GRKERNSEC_CHROOT_CHMOD
1953 - ~!GRKERNSEC_CHROOT_CAPS
1954 - ~!GRKERNSEC_PROC
1955 - ~!GRKERNSEC_SYSFS_RESTRICT
1956 -"
1957 -
1958 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
1959 -
1960 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
1961 -
1962 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
1963 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
1964 -
1965 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
1966 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
1967 -
1968 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
1969 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
1970 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
1971 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
1972 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
1973 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
1974 -
1975 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
1976 -
1977 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
1978 -
1979 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
1980 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
1981 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
1982 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
1983 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
1984 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
1985 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
1986 -
1987 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
1988 -
1989 -S="${WORKDIR}/${PN}-${MY_P}"
1990 -
1991 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1992 -
1993 -src_prepare() {
1994 - epatch "${FILESDIR}"/${P}-bash-completion.patch
1995 - #558854
1996 - epatch "${FILESDIR}"/${P}-omit-sysconfig.patch
1997 - eautoreconf
1998 -}
1999 -
2000 -src_configure() {
2001 - append-flags -fno-strict-aliasing
2002 -
2003 - if use python; then
2004 - #541932
2005 - python_setup "python3*"
2006 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
2007 - fi
2008 -
2009 - # I am not sure about the --with-rootfs-path
2010 - # /var/lib/lxc is probably more appropriate than
2011 - # /usr/lib/lxc.
2012 - econf \
2013 - --localstatedir=/var \
2014 - --bindir=/usr/bin \
2015 - --sbindir=/usr/bin \
2016 - --docdir=/usr/share/doc/${PF} \
2017 - --with-config-path=/var/lib/lxc \
2018 - --with-rootfs-path=/var/lib/lxc/rootfs \
2019 - --with-distro=gentoo \
2020 - --with-runtime-path=/run \
2021 - --disable-apparmor \
2022 - $(use_enable cgmanager) \
2023 - $(use_enable doc) \
2024 - $(use_enable examples) \
2025 - $(use_enable lua) \
2026 - $(use_enable python) \
2027 - $(use_enable seccomp)
2028 -}
2029 -
2030 -python_compile() {
2031 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
2032 -}
2033 -
2034 -src_compile() {
2035 - default
2036 -
2037 - if use python; then
2038 - pushd "${S}/src/python-${PN}" > /dev/null
2039 - distutils-r1_src_compile
2040 - popd > /dev/null
2041 - fi
2042 -}
2043 -
2044 -src_install() {
2045 - default
2046 -
2047 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
2048 - # start-ephemeral is no longer a command but removing it here
2049 - # generates QA warnings (still in upstream completion script)
2050 - bashcomp_alias ${PN}-start \
2051 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
2052 -
2053 - if use python; then
2054 - pushd "${S}/src/python-lxc" > /dev/null
2055 - # Unset DOCS. This has been handled by the default target
2056 - unset DOCS
2057 - distutils-r1_src_install
2058 - popd > /dev/null
2059 - fi
2060 -
2061 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
2062 -
2063 - find "${D}" -name '*.la' -delete
2064 -
2065 - # Gentoo-specific additions!
2066 - newinitd "${FILESDIR}/${PN}.initd.4" ${PN}
2067 -
2068 - # lxc-devsetup script
2069 - exeinto /usr/libexec/${PN}
2070 - doexe config/init/common/${PN}-devsetup
2071 - # Remember to compare our systemd unit file with the upstream one
2072 - # config/init/systemd/lxc.service.in
2073 - systemd_newunit "${FILESDIR}"/${PN}_at.service.3 "lxc@.service"
2074 -}
2075 -
2076 -pkg_postinst() {
2077 - elog ""
2078 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
2079 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
2080 - elog "please add the following to your /etc/lxc/default.conf"
2081 - elog "lxc.lxcpath = /etc/lxc"
2082 - elog ""
2083 - elog "There is an init script provided with the package now; no documentation"
2084 - elog "is currently available though, so please check out /etc/init.d/lxc ."
2085 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
2086 - elog "to start the container defined into /etc/lxc/configname.conf ."
2087 - elog "For further information about LXC development see"
2088 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
2089 - elog ""
2090 -}
2091
2092 diff --git a/app-emulation/lxc/lxc-2.0.3.ebuild b/app-emulation/lxc/lxc-2.0.3.ebuild
2093 deleted file mode 100644
2094 index 291b2d4..00000000
2095 --- a/app-emulation/lxc/lxc-2.0.3.ebuild
2096 +++ /dev/null
2097 @@ -1,197 +0,0 @@
2098 -# Copyright 1999-2016 Gentoo Foundation
2099 -# Distributed under the terms of the GNU General Public License v2
2100 -# $Id$
2101 -
2102 -EAPI="5"
2103 -
2104 -MY_P="${P/_/-}"
2105 -PYTHON_COMPAT=( python{3_3,3_4,3_5} )
2106 -DISTUTILS_OPTIONAL=1
2107 -
2108 -inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd
2109 -
2110 -DESCRIPTION="LinuX Containers userspace utilities"
2111 -HOMEPAGE="https://linuxcontainers.org/"
2112 -SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz"
2113 -
2114 -KEYWORDS="~amd64 ~arm ~arm64"
2115 -
2116 -LICENSE="LGPL-3"
2117 -SLOT="0"
2118 -IUSE="cgmanager doc examples lua python seccomp"
2119 -
2120 -RDEPEND="net-libs/gnutls
2121 - sys-libs/libcap
2122 - cgmanager? ( app-admin/cgmanager )
2123 - lua? ( >=dev-lang/lua-5.1:= )
2124 - python? ( ${PYTHON_DEPS} )
2125 - seccomp? ( sys-libs/libseccomp )"
2126 -
2127 -DEPEND="${RDEPEND}
2128 - doc? ( app-text/docbook-sgml-utils )
2129 - >=sys-kernel/linux-headers-3.2"
2130 -
2131 -RDEPEND="${RDEPEND}
2132 - sys-process/criu
2133 - sys-apps/util-linux
2134 - app-misc/pax-utils
2135 - virtual/awk"
2136 -
2137 -CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
2138 - ~CPUSETS ~CGROUP_CPUACCT
2139 - ~CGROUP_SCHED
2140 -
2141 - ~NAMESPACES
2142 - ~IPC_NS ~USER_NS ~PID_NS
2143 -
2144 - ~NETLINK_DIAG ~PACKET_DIAG
2145 - ~INET_UDP_DIAG ~INET_TCP_DIAG
2146 - ~UNIX_DIAG ~CHECKPOINT_RESTORE
2147 -
2148 - ~DEVPTS_MULTIPLE_INSTANCES
2149 - ~CGROUP_FREEZER
2150 - ~UTS_NS ~NET_NS
2151 - ~VETH ~MACVLAN
2152 -
2153 - ~POSIX_MQUEUE
2154 - ~!NETPRIO_CGROUP
2155 -
2156 - ~!GRKERNSEC_CHROOT_MOUNT
2157 - ~!GRKERNSEC_CHROOT_DOUBLE
2158 - ~!GRKERNSEC_CHROOT_PIVOT
2159 - ~!GRKERNSEC_CHROOT_CHMOD
2160 - ~!GRKERNSEC_CHROOT_CAPS
2161 - ~!GRKERNSEC_PROC
2162 - ~!GRKERNSEC_SYSFS_RESTRICT
2163 -"
2164 -
2165 -ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
2166 -
2167 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
2168 -
2169 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
2170 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
2171 -
2172 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
2173 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
2174 -
2175 -ERROR_NETLINK_DIAG="CONFIG_NETLINK_DIAG: needed for lxc-checkpoint"
2176 -ERROR_PACKET_DIAG="CONFIG_PACKET_DIAG: needed for lxc-checkpoint"
2177 -ERROR_INET_UDP_DIAG="CONFIG_INET_UDP_DIAG: needed for lxc-checkpoint"
2178 -ERROR_INET_TCP_DIAG="CONFIG_INET_TCP_DIAG: needed for lxc-checkpoint"
2179 -ERROR_UNIX_DIAG="CONFIG_UNIX_DIAG: needed for lxc-checkpoint"
2180 -ERROR_CHECKPOINT_RESTORE="CONFIG_CHECKPOINT_RESTORE: needed for lxc-checkpoint"
2181 -
2182 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
2183 -
2184 -ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
2185 -
2186 -ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes"
2187 -ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes"
2188 -ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes"
2189 -ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes"
2190 -ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes"
2191 -ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers"
2192 -ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers"
2193 -
2194 -DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt)
2195 -
2196 -S="${WORKDIR}/${PN}-${MY_P}"
2197 -
2198 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
2199 -
2200 -src_prepare() {
2201 - epatch "${FILESDIR}"/${P}-bash-completion.patch
2202 - #558854
2203 - epatch "${FILESDIR}"/${P}-omit-sysconfig.patch
2204 - eautoreconf
2205 -}
2206 -
2207 -src_configure() {
2208 - append-flags -fno-strict-aliasing
2209 -
2210 - if use python; then
2211 - #541932
2212 - python_setup "python3*"
2213 - export PKG_CONFIG_PATH="${T}/${EPYTHON}/pkgconfig:${PKG_CONFIG_PATH}"
2214 - fi
2215 -
2216 - # I am not sure about the --with-rootfs-path
2217 - # /var/lib/lxc is probably more appropriate than
2218 - # /usr/lib/lxc.
2219 - econf \
2220 - --localstatedir=/var \
2221 - --bindir=/usr/bin \
2222 - --sbindir=/usr/bin \
2223 - --docdir=/usr/share/doc/${PF} \
2224 - --with-config-path=/var/lib/lxc \
2225 - --with-rootfs-path=/var/lib/lxc/rootfs \
2226 - --with-distro=gentoo \
2227 - --with-runtime-path=/run \
2228 - --disable-apparmor \
2229 - $(use_enable cgmanager) \
2230 - $(use_enable doc) \
2231 - $(use_enable examples) \
2232 - $(use_enable lua) \
2233 - $(use_enable python) \
2234 - $(use_enable seccomp)
2235 -}
2236 -
2237 -python_compile() {
2238 - distutils-r1_python_compile build_ext -I ../ -L ../${PN}
2239 -}
2240 -
2241 -src_compile() {
2242 - default
2243 -
2244 - if use python; then
2245 - pushd "${S}/src/python-${PN}" > /dev/null
2246 - distutils-r1_src_compile
2247 - popd > /dev/null
2248 - fi
2249 -}
2250 -
2251 -src_install() {
2252 - default
2253 -
2254 - mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die
2255 - # start-ephemeral is no longer a command but removing it here
2256 - # generates QA warnings (still in upstream completion script)
2257 - bashcomp_alias ${PN}-start \
2258 - ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait}
2259 -
2260 - if use python; then
2261 - pushd "${S}/src/python-lxc" > /dev/null
2262 - # Unset DOCS. This has been handled by the default target
2263 - unset DOCS
2264 - distutils-r1_src_install
2265 - popd > /dev/null
2266 - fi
2267 -
2268 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
2269 -
2270 - find "${D}" -name '*.la' -delete
2271 -
2272 - # Gentoo-specific additions!
2273 - newinitd "${FILESDIR}/${PN}.initd.4" ${PN}
2274 -
2275 - # Remember to compare our systemd unit file with the upstream one
2276 - # config/init/systemd/lxc.service.in
2277 - systemd_newunit "${FILESDIR}"/${PN}_at.service.3 "lxc@.service"
2278 -}
2279 -
2280 -pkg_postinst() {
2281 - elog ""
2282 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
2283 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
2284 - elog "please add the following to your /etc/lxc/default.conf"
2285 - elog "lxc.lxcpath = /etc/lxc"
2286 - elog ""
2287 - elog "There is an init script provided with the package now; no documentation"
2288 - elog "is currently available though, so please check out /etc/init.d/lxc ."
2289 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
2290 - elog "to start the container defined into /etc/lxc/configname.conf ."
2291 - elog "For further information about LXC development see"
2292 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
2293 - elog ""
2294 -}