1 |
commit: 222a933dba1d90a098c8181b3dc6d41430ac76ee |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 1 12:18:15 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 12:19:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=222a933d |
7 |
|
8 |
app-containers/lxc: drop old |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
app-containers/lxc/lxc-5.0.1.ebuild | 159 ------------------------------------ |
13 |
1 file changed, 159 deletions(-) |
14 |
|
15 |
diff --git a/app-containers/lxc/lxc-5.0.1.ebuild b/app-containers/lxc/lxc-5.0.1.ebuild |
16 |
deleted file mode 100644 |
17 |
index c3c490dfe80a..000000000000 |
18 |
--- a/app-containers/lxc/lxc-5.0.1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,159 +0,0 @@ |
21 |
-# Copyright 2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-inherit bash-completion-r1 linux-info meson optfeature systemd verify-sig |
27 |
- |
28 |
-DESCRIPTION="A userspace interface for the Linux kernel containment features" |
29 |
-HOMEPAGE="https://linuxcontainers.org/ https://github.com/lxc/lxc" |
30 |
-SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz |
31 |
- verify-sig? ( https://linuxcontainers.org/downloads/lxc/${P}.tar.gz.asc )" |
32 |
- |
33 |
-LICENSE="GPL-2 LGPL-2.1 LGPL-3" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" |
36 |
-IUSE="apparmor +caps examples io-uring man pam seccomp selinux ssl systemd test +tools" |
37 |
- |
38 |
-RDEPEND="acct-group/lxc |
39 |
- acct-user/lxc |
40 |
- apparmor? ( sys-libs/libapparmor ) |
41 |
- caps? ( sys-libs/libcap[static-libs] ) |
42 |
- io-uring? ( >=sys-libs/liburing-2:= ) |
43 |
- pam? ( sys-libs/pam ) |
44 |
- seccomp? ( sys-libs/libseccomp ) |
45 |
- selinux? ( sys-libs/libselinux ) |
46 |
- ssl? ( dev-libs/openssl:0= ) |
47 |
- systemd? ( sys-apps/systemd:= ) |
48 |
- tools? ( sys-libs/libcap[static-libs] )" |
49 |
-DEPEND="${RDEPEND} |
50 |
- sys-kernel/linux-headers" |
51 |
-BDEPEND="virtual/pkgconfig |
52 |
- man? ( app-text/docbook2X ) |
53 |
- verify-sig? ( sec-keys/openpgp-keys-linuxcontainers )" |
54 |
- |
55 |
-RESTRICT="!test? ( test )" |
56 |
- |
57 |
-CONFIG_CHECK="~!NETPRIO_CGROUP |
58 |
- ~CGROUPS |
59 |
- ~CGROUP_CPUACCT |
60 |
- ~CGROUP_DEVICE |
61 |
- ~CGROUP_FREEZER |
62 |
- |
63 |
- ~CGROUP_SCHED |
64 |
- ~CPUSETS |
65 |
- ~IPC_NS |
66 |
- ~MACVLAN |
67 |
- |
68 |
- ~MEMCG |
69 |
- ~NAMESPACES |
70 |
- ~NET_NS |
71 |
- ~PID_NS |
72 |
- |
73 |
- ~POSIX_MQUEUE |
74 |
- ~USER_NS |
75 |
- ~UTS_NS |
76 |
- ~VETH" |
77 |
- |
78 |
-ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
79 |
-ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
80 |
-ERROR_MEMCG="CONFIG_MEMCG: needed for memory resource control in containers" |
81 |
-ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
82 |
-ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command" |
83 |
-ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
84 |
-ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
85 |
- |
86 |
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc |
87 |
- |
88 |
-DOCS=( AUTHORS CONTRIBUTING MAINTAINERS README.md doc/FAQ.txt ) |
89 |
- |
90 |
-pkg_setup() { |
91 |
- linux-info_pkg_setup |
92 |
-} |
93 |
- |
94 |
-src_configure() { |
95 |
- local emesonargs=( |
96 |
- -Dcoverity-build=false |
97 |
- -Doss-fuzz=false |
98 |
- |
99 |
- -Dcommands=true |
100 |
- -Dmemfd-rexec=true |
101 |
- -Dthread-safety=true |
102 |
- |
103 |
- $(meson_use apparmor) |
104 |
- $(meson_use caps capabilities) |
105 |
- $(meson_use examples) |
106 |
- $(meson_use io-uring io-uring-event-loop) |
107 |
- $(meson_use man) |
108 |
- $(meson_use pam pam-cgroup) |
109 |
- $(meson_use seccomp) |
110 |
- $(meson_use selinux) |
111 |
- $(meson_use ssl openssl) |
112 |
- $(meson_use test tests) |
113 |
- $(meson_use tools) |
114 |
- |
115 |
- -Ddata-path=/var/lib/lxc |
116 |
- -Ddoc-path=/usr/share/doc/${PF} |
117 |
- -Dlog-path=/var/log/lxc |
118 |
- -Drootfs-mount-path=/var/lib/lxc/rootfs |
119 |
- -Druntime-path=/run |
120 |
- ) |
121 |
- |
122 |
- if use systemd; then |
123 |
- local emesonargs+=( -Dinit-script="systemd" ) |
124 |
- local emesonargs+=( -Dsd-bus=enabled ) |
125 |
- else |
126 |
- local emesonargs+=( -Dinit-script="sysvinit" ) |
127 |
- local emesonargs+=( -Dsd-bus=disabled ) |
128 |
- fi |
129 |
- |
130 |
- use tools && local emesonargs+=( -Dcapabilities=true ) |
131 |
- |
132 |
- meson_src_configure |
133 |
-} |
134 |
- |
135 |
-src_install() { |
136 |
- meson_src_install |
137 |
- |
138 |
- # The main bash-completion file will collide with lxd, need to relocate and update symlinks. |
139 |
- mkdir -p "${ED}"/$(get_bashcompdir) || die "Failed to create bashcompdir." |
140 |
- |
141 |
- if use tools; then |
142 |
- bashcomp_alias lxc-start lxc-{attach,autostart,cgroup,checkpoint,config,console,copy,create,destroy,device,execute,freeze,info,ls,monitor,snapshot,stop,top,unfreeze,unshare,usernsexec,wait} |
143 |
- else |
144 |
- bashcomp_alias lxc-start lxc-usernsexec |
145 |
- fi |
146 |
- |
147 |
- keepdir /var/lib/cache/lxc /var/lib/lib/lxc |
148 |
- |
149 |
- find "${ED}" -name '*.la' -delete -o -name '*.a' -delete || die |
150 |
- |
151 |
- # Replace upstream sysvinit/systemd files. |
152 |
- if use systemd; then |
153 |
- rm -r "${D}$(systemd_get_systemunitdir)" || die "Failed to remove systemd lib dir" |
154 |
- else |
155 |
- rm "${ED}"/etc/init.d/lxc-{containers,net} || die "Failed to remove sysvinit scripts" |
156 |
- fi |
157 |
- |
158 |
- newinitd "${FILESDIR}/${PN}.initd.8" ${PN} |
159 |
- systemd_newunit "${FILESDIR}"/lxc-monitord.service.5.0.0 lxc-monitord.service |
160 |
- systemd_newunit "${FILESDIR}"/lxc-net.service.5.0.0 lxc-net.service |
161 |
- systemd_newunit "${FILESDIR}"/lxc.service-5.0.0 lxc.service |
162 |
- systemd_newunit "${FILESDIR}"/lxc_at.service.5.0.0 "lxc@.service" |
163 |
- |
164 |
- if ! use apparmor; then |
165 |
- sed -i '/lxc-apparmor-load/d' "${D}$(systemd_get_systemunitdir)/lxc.service" || die "Failed to remove apparmor references from lxc.service systemd unit." |
166 |
- fi |
167 |
-} |
168 |
- |
169 |
-pkg_postinst() { |
170 |
- elog "Please refer to " |
171 |
- elog "https://wiki.gentoo.org/wiki/LXC for introduction and usage guide." |
172 |
- elog |
173 |
- elog "Run 'lxc-checkconfig' to see optional kernel features." |
174 |
- elog |
175 |
- |
176 |
- optfeature "automatic template scripts" app-containers/lxc-templates |
177 |
- optfeature "Debian-based distribution container image support" dev-util/debootstrap |
178 |
- optfeature "snapshot & restore functionality" sys-process/criu |
179 |
-} |