1 |
commit: a0bccf8edd136667f1144f14bcc9580998300604 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 31 18:55:14 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 31 18:55:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0bccf8e |
7 |
|
8 |
app-emulation/lxc: remove old |
9 |
|
10 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-emulation/lxc/Manifest | 1 - |
14 |
app-emulation/lxc/lxc-3.0.2.ebuild | 160 ------------------------------------- |
15 |
2 files changed, 161 deletions(-) |
16 |
|
17 |
diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest |
18 |
index dc17a9b8b4a..94f3dfd504e 100644 |
19 |
--- a/app-emulation/lxc/Manifest |
20 |
+++ b/app-emulation/lxc/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
DIST lxc-2.1.1.tar.gz 1378640 BLAKE2B 5fca516540a886729434579ff99acf3baa06977fa0e0b6f24dbf15094626335fc073597d308276e3dd20e27ceabf1477cc8e99d1fd24cf50b9aed2720b887b69 SHA512 2989d57acddfe091adcf8031721c3c9a2f8eff5476bd6155366b76ea7511e0f6120e669276e056e3963863e0f0acf3b095d44c36fa6652e67c197671f28cbdd4 |
23 |
-DIST lxc-3.0.2.tar.gz 1236975 BLAKE2B 68047f6374b9081fb308586726797ed94fa66b5e94eb3fc12ad1a0aedc15ac1ee518ca5a341db79a715015e34ad38659200ad6aaf21f74639ebb55e7e1360645 SHA512 d7f5e3f91e5c8800e3e092ab209158a4d3e3c2816623249aeaaf2e0950428484ac5d1432d71298787721e1419cd962c0798ba14979e62161299fa15a299efde8 |
24 |
DIST lxc-3.0.3.tar.gz 1263371 BLAKE2B 77d0f593119654f570ae748d305e86c27117fd4e9ec7bdab1110f5356afb4a00d81c105ae9757d9da5827f6883a4a5d8ddc43b5b6e56a2927ed990e757f7c7b6 SHA512 cdc411364153d7ed494bab604260f5cbdfd5bd7734a59af970b3198c7b3cb340b6736856a2189d5989e169945a817ac8b531bc3ab62217a4285dd63a851f9c8a |
25 |
DIST lxc-3.1.0.tar.gz 1277877 BLAKE2B e114855659c8199378d14bc23f667ce1927bb32c55d336fa9c222a60198da51e7ded6aeb6d1c89cbeb1e9edc101e424a847be1e4a2330d2a0bceda52d0df5e30 SHA512 706cee9bc8ac57300574b59d728437e41baa4eb16c68f8548142e53b4e13679ef6698df30a4fbf8617e4f07338f898464e9f818e80d32648fe9717370dcbbb20 |
26 |
|
27 |
diff --git a/app-emulation/lxc/lxc-3.0.2.ebuild b/app-emulation/lxc/lxc-3.0.2.ebuild |
28 |
deleted file mode 100644 |
29 |
index 9d075f8a2a6..00000000000 |
30 |
--- a/app-emulation/lxc/lxc-3.0.2.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,160 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-WANT_AUTOMAKE="1.15" |
39 |
- |
40 |
-inherit autotools bash-completion-r1 linux-info flag-o-matic systemd readme.gentoo-r1 pam |
41 |
- |
42 |
-DESCRIPTION="LinuX Containers userspace utilities" |
43 |
-HOMEPAGE="https://linuxcontainers.org/" |
44 |
-SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz" |
45 |
- |
46 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" |
47 |
- |
48 |
-LICENSE="LGPL-3" |
49 |
-SLOT="0" |
50 |
-IUSE="apparmor examples pam python seccomp selinux +templates" |
51 |
- |
52 |
-RDEPEND=" |
53 |
- net-libs/gnutls |
54 |
- sys-libs/libcap |
55 |
- pam? ( virtual/pam ) |
56 |
- seccomp? ( sys-libs/libseccomp ) |
57 |
- selinux? ( sys-libs/libselinux )" |
58 |
- |
59 |
-DEPEND="${RDEPEND} |
60 |
- >=app-text/docbook-sgml-utils-0.6.14-r2 |
61 |
- >=sys-kernel/linux-headers-3.2" |
62 |
- |
63 |
-RDEPEND="${RDEPEND} |
64 |
- sys-apps/util-linux |
65 |
- app-misc/pax-utils |
66 |
- virtual/awk" |
67 |
- |
68 |
-PDEPEND="templates? ( app-emulation/lxc-templates ) |
69 |
- python? ( dev-python/python3-lxc )" |
70 |
- |
71 |
-CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
72 |
- ~CPUSETS ~CGROUP_CPUACCT |
73 |
- ~CGROUP_SCHED |
74 |
- |
75 |
- ~NAMESPACES |
76 |
- ~IPC_NS ~USER_NS ~PID_NS |
77 |
- |
78 |
- ~CGROUP_FREEZER |
79 |
- ~UTS_NS ~NET_NS |
80 |
- ~VETH ~MACVLAN |
81 |
- |
82 |
- ~POSIX_MQUEUE |
83 |
- ~!NETPRIO_CGROUP |
84 |
- |
85 |
- ~!GRKERNSEC_CHROOT_MOUNT |
86 |
- ~!GRKERNSEC_CHROOT_DOUBLE |
87 |
- ~!GRKERNSEC_CHROOT_PIVOT |
88 |
- ~!GRKERNSEC_CHROOT_CHMOD |
89 |
- ~!GRKERNSEC_CHROOT_CAPS |
90 |
- ~!GRKERNSEC_PROC |
91 |
- ~!GRKERNSEC_SYSFS_RESTRICT |
92 |
- ~!GRKERNSEC_CHROOT_FINDTASK |
93 |
-" |
94 |
- |
95 |
-ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
96 |
- |
97 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
98 |
- |
99 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
100 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
101 |
- |
102 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
103 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
104 |
- |
105 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
106 |
- |
107 |
-ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting." |
108 |
- |
109 |
-ERROR_GRKERNSEC_CHROOT_MOUNT="CONFIG_GRKERNSEC_CHROOT_MOUNT: some GRSEC features make LXC unusable see postinst notes" |
110 |
-ERROR_GRKERNSEC_CHROOT_DOUBLE="CONFIG_GRKERNSEC_CHROOT_DOUBLE: some GRSEC features make LXC unusable see postinst notes" |
111 |
-ERROR_GRKERNSEC_CHROOT_PIVOT="CONFIG_GRKERNSEC_CHROOT_PIVOT: some GRSEC features make LXC unusable see postinst notes" |
112 |
-ERROR_GRKERNSEC_CHROOT_CHMOD="CONFIG_GRKERNSEC_CHROOT_CHMOD: some GRSEC features make LXC unusable see postinst notes" |
113 |
-ERROR_GRKERNSEC_CHROOT_CAPS="CONFIG_GRKERNSEC_CHROOT_CAPS: some GRSEC features make LXC unusable see postinst notes" |
114 |
-ERROR_GRKERNSEC_PROC="CONFIG_GRKERNSEC_PROC: this GRSEC feature is incompatible with unprivileged containers" |
115 |
-ERROR_GRKERNSEC_SYSFS_RESTRICT="CONFIG_GRKERNSEC_SYSFS_RESTRICT: this GRSEC feature is incompatible with unprivileged containers" |
116 |
- |
117 |
-DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
118 |
- |
119 |
-pkg_setup() { |
120 |
- kernel_is -lt 4 7 && CONFIG_CHECK="${CONFIG_CHECK} ~DEVPTS_MULTIPLE_INSTANCES" |
121 |
- linux-info_pkg_setup |
122 |
-} |
123 |
- |
124 |
-PATCHES=( |
125 |
- "${FILESDIR}"/${PN}-3.0.0-bash-completion.patch |
126 |
- "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch # bug 558854 |
127 |
-) |
128 |
- |
129 |
-src_configure() { |
130 |
- append-flags -fno-strict-aliasing |
131 |
- |
132 |
- # --enable-doc is for manpages which is why we don't link it to a "doc" |
133 |
- # USE flag. We always want man pages. |
134 |
- local myeconfargs=( |
135 |
- --localstatedir=/var |
136 |
- --bindir=/usr/bin |
137 |
- --sbindir=/usr/bin |
138 |
- --with-config-path=/var/lib/lxc |
139 |
- --with-rootfs-path=/var/lib/lxc/rootfs |
140 |
- --with-distro=gentoo |
141 |
- --with-runtime-path=/run |
142 |
- --disable-apparmor |
143 |
- --disable-werror |
144 |
- --enable-doc |
145 |
- $(use_enable apparmor) |
146 |
- $(use_enable examples) |
147 |
- $(use_enable pam) |
148 |
- $(use_with pam pamdir $(getpam_mod_dir)) |
149 |
- $(use_enable seccomp) |
150 |
- $(use_enable selinux) |
151 |
- ) |
152 |
- econf "${myeconfargs[@]}" |
153 |
-} |
154 |
- |
155 |
-src_install() { |
156 |
- default |
157 |
- |
158 |
- mv "${ED}"/usr/share/bash-completion/completions/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
159 |
- bashcomp_alias ${PN}-start \ |
160 |
- ${PN}-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,stop,unfreeze,wait} |
161 |
- |
162 |
- keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc |
163 |
- rmdir "${D}"/var/cache/lxc "${D}"/var/cache || die "rmdir failed" |
164 |
- |
165 |
- find "${D}" -name '*.la' -delete |
166 |
- |
167 |
- # Gentoo-specific additions! |
168 |
- newinitd "${FILESDIR}/${PN}.initd.7" ${PN} |
169 |
- |
170 |
- # Remember to compare our systemd unit file with the upstream one |
171 |
- # config/init/systemd/lxc.service.in |
172 |
- systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service" |
173 |
- |
174 |
- DOC_CONTENTS=" |
175 |
- For openrc, there is an init script provided with the package. |
176 |
- You _should_ only need to symlink /etc/init.d/lxc to |
177 |
- /etc/init.d/lxc.configname to start the container defined in |
178 |
- /etc/lxc/configname.conf. |
179 |
- |
180 |
- Correspondingly, for systemd a service file lxc@.service is installed. |
181 |
- Enable and start lxc@configname in order to start the container defined |
182 |
- in /etc/lxc/configname.conf. |
183 |
- |
184 |
- If you want checkpoint/restore functionality, please install criu |
185 |
- (sys-process/criu)." |
186 |
- DISABLE_AUTOFORMATTING=true |
187 |
- readme.gentoo_create_doc |
188 |
-} |
189 |
- |
190 |
-pkg_postinst() { |
191 |
- readme.gentoo_print_elog |
192 |
-} |