Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxc/
Date: Fri, 29 Oct 2021 07:14:39
Message-Id: 1635491668.209c7f847e6171230e125471c356512908fcce12.juippis@gentoo
1 commit: 209c7f847e6171230e125471c356512908fcce12
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 29 07:14:02 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 29 07:14:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=209c7f84
7
8 app-emulation/lxc: drop 4.0.11
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 app-emulation/lxc/lxc-4.0.11.ebuild | 183 ------------------------------------
13 1 file changed, 183 deletions(-)
14
15 diff --git a/app-emulation/lxc/lxc-4.0.11.ebuild b/app-emulation/lxc/lxc-4.0.11.ebuild
16 deleted file mode 100644
17 index 0a763d49521..00000000000
18 --- a/app-emulation/lxc/lxc-4.0.11.ebuild
19 +++ /dev/null
20 @@ -1,183 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit autotools bash-completion-r1 linux-info flag-o-matic optfeature pam readme.gentoo-r1 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 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
34 -
35 -LICENSE="GPL-2 LGPL-2.1 LGPL-3"
36 -SLOT="0"
37 -IUSE="apparmor +caps doc io-uring man pam seccomp selinux +ssl +tools verify-sig"
38 -
39 -RDEPEND="acct-group/lxc
40 - acct-user/lxc
41 - app-misc/pax-utils
42 - sys-apps/util-linux
43 - sys-libs/libcap
44 - virtual/awk
45 - caps? ( sys-libs/libcap )
46 - io-uring? ( sys-libs/liburing:= )
47 - pam? ( sys-libs/pam )
48 - seccomp? ( sys-libs/libseccomp )
49 - selinux? ( sys-libs/libselinux )
50 - ssl? (
51 - dev-libs/openssl:0=
52 - )"
53 -DEPEND="${RDEPEND}
54 - >=sys-kernel/linux-headers-4
55 - apparmor? ( sys-apps/apparmor )"
56 -BDEPEND="doc? ( app-doc/doxygen[dot] )
57 - man? ( app-text/docbook-sgml-utils )
58 - verify-sig? ( app-crypt/openpgp-keys-linuxcontainers )"
59 -
60 -CONFIG_CHECK="~!NETPRIO_CGROUP
61 - ~CGROUPS
62 - ~CGROUP_CPUACCT
63 - ~CGROUP_DEVICE
64 - ~CGROUP_FREEZER
65 -
66 - ~CGROUP_SCHED
67 - ~CPUSETS
68 - ~IPC_NS
69 - ~MACVLAN
70 -
71 - ~MEMCG
72 - ~NAMESPACES
73 - ~NET_NS
74 - ~PID_NS
75 -
76 - ~POSIX_MQUEUE
77 - ~USER_NS
78 - ~UTS_NS
79 - ~VETH"
80 -
81 -ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
82 -ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
83 -ERROR_MEMCG="CONFIG_MEMCG: needed for memory resource control in containers"
84 -ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
85 -ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
86 -ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
87 -ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
88 -
89 -DOCS=( AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt )
90 -
91 -pkg_setup() {
92 - linux-info_pkg_setup
93 -}
94 -
95 -PATCHES=(
96 - "${FILESDIR}"/${PN}-2.0.5-omit-sysconfig.patch # bug 558854
97 -)
98 -
99 -VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc
100 -
101 -src_prepare() {
102 - default
103 -
104 - export bashcompdir="/etc/bash_completion.d"
105 - eautoreconf
106 -}
107 -
108 -src_configure() {
109 - append-flags -fno-strict-aliasing
110 -
111 - local myeconfargs=(
112 - --bindir=/usr/bin
113 - --localstatedir=/var
114 - --sbindir=/usr/bin
115 -
116 - --with-config-path=/var/lib/lxc
117 - --with-distro=gentoo
118 - --with-init-script=systemd
119 - --with-rootfs-path=/var/lib/lxc/rootfs
120 - --with-runtime-path=/run
121 - --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
122 -
123 - --disable-coverity-build
124 - --disable-dlog
125 - --disable-fuzzers
126 - --disable-mutex-debugging
127 - --disable-no-undefined
128 - --disable-rpath
129 - --disable-sanitizers
130 - --disable-tests
131 - --disable-werror
132 -
133 - --enable-bash
134 - --enable-commands
135 - --enable-memfd-rexec
136 - --enable-thread-safety
137 -
138 - $(use_enable apparmor)
139 - $(use_enable caps capabilities)
140 - $(use_enable doc api-docs)
141 - $(use_enable doc examples)
142 - $(use_enable io-uring liburing)
143 - $(use_enable man doc)
144 - $(use_enable pam)
145 - $(use_enable seccomp)
146 - $(use_enable selinux)
147 - $(use_enable ssl openssl)
148 - $(use_enable tools)
149 -
150 - $(use_with pam pamdir $(getpam_mod_dir))
151 - )
152 -
153 - econf "${myeconfargs[@]}"
154 -}
155 -
156 -src_install() {
157 - default
158 -
159 - # The main bash-completion file will collide with lxd, need to relocate and update symlinks.
160 - mkdir -p "${ED}"/$(get_bashcompdir) || die "Failed to create bashcompdir."
161 - mv "${ED}"/etc/bash_completion.d/lxc "${ED}"/$(get_bashcompdir)/lxc-start || die "Failed to relocate lxc bash-completion file."
162 - rm -r "${ED}"/etc/bash_completion.d || die "Failed to remove wrong bash_completion.d content."
163 -
164 - if use tools; then
165 - bashcomp_alias lxc-start lxc-{attach,cgroup,copy,console,create,destroy,device,execute,freeze,info,monitor,snapshot,stop,unfreeze,usernsexec,wait}
166 - else
167 - bashcomp_alias lxc-start lxc-usernsexec
168 - fi
169 -
170 - keepdir /etc/lxc /var/lib/lxc/rootfs /var/log/lxc
171 - rmdir "${D}"/var/cache/lxc "${D}"/var/cache || die "rmdir failed"
172 -
173 - find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die
174 -
175 - # Gentoo-specific additions!
176 - newinitd "${FILESDIR}/${PN}.initd.8" ${PN}
177 -
178 - # Remember to compare our systemd unit file with the upstream one
179 - # config/init/systemd/lxc.service.in
180 - systemd_newunit "${FILESDIR}"/${PN}_at.service.4.0.0 "lxc@.service"
181 -
182 - DOC_CONTENTS="
183 - For openrc, there is an init script provided with the package.
184 - You should only need to symlink /etc/init.d/lxc to
185 - /etc/init.d/lxc.configname to start the container defined in
186 - /etc/lxc/configname.conf.
187 -
188 - Correspondingly, for systemd a service file lxc@.service is installed.
189 - Enable and start lxc@configname in order to start the container defined
190 - in /etc/lxc/configname.conf."
191 - DISABLE_AUTOFORMATTING=true
192 - readme.gentoo_create_doc
193 -}
194 -
195 -pkg_postinst() {
196 - readme.gentoo_print_elog
197 -
198 - elog "Please run 'lxc-checkconfig' to see optional kernel features."
199 - elog
200 - optfeature "automatic template scripts" app-emulation/lxc-templates
201 - optfeature "Debian-based distribution container image support" dev-util/debootstrap
202 - optfeature "snapshot & restore functionality" sys-process/criu
203 -}