Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxc/
Date: Tue, 30 Jan 2018 17:01:06
Message-Id: 1517331639.578b9b6fa8d819496ffdb0df4224a7e2e65a28c4.tamiko@gentoo
1 commit: 578b9b6fa8d819496ffdb0df4224a7e2e65a28c4
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 30 16:49:59 2018 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 30 17:00:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=578b9b6f
7
8 app-emulation/lxc: update 2.1.1 ebuild to latest changes in 2.0.9
9
10 - build man pages unconditionally
11 - python support
12 - regenerate metadata
13 - selinux support
14 - use readme eclass
15
16 Package-Manager: Portage-2.3.20, Repoman-2.3.6
17
18 app-emulation/lxc/lxc-2.1.1.ebuild | 65 +++++++++++++++++++++++---------------
19 1 file changed, 39 insertions(+), 26 deletions(-)
20
21 diff --git a/app-emulation/lxc/lxc-2.1.1.ebuild b/app-emulation/lxc/lxc-2.1.1.ebuild
22 index 7ddad1b7527..304701cf005 100644
23 --- a/app-emulation/lxc/lxc-2.1.1.ebuild
24 +++ b/app-emulation/lxc/lxc-2.1.1.ebuild
25 @@ -1,36 +1,36 @@
26 -# Copyright 1999-2017 Gentoo Foundation
27 +# Copyright 1999-2018 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29
30 -EAPI="6"
31 +EAPI=6
32
33 -PYTHON_COMPAT=( python{3_4,3_5} )
34 +PYTHON_COMPAT=( python3_{4,5,6} )
35 DISTUTILS_OPTIONAL=1
36
37 -inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd
38 -
39 +inherit autotools bash-completion-r1 distutils-r1 linux-info versionator flag-o-matic systemd readme.gentoo-r1
40 DESCRIPTION="LinuX Containers userspace utilities"
41 HOMEPAGE="https://linuxcontainers.org/"
42 SRC_URI="https://linuxcontainers.org/downloads/lxc/${P}.tar.gz"
43
44 -KEYWORDS="~amd64 ~arm ~arm64"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
46
47 LICENSE="LGPL-3"
48 SLOT="0"
49 -IUSE="cgmanager doc examples lua python seccomp"
50 +IUSE="cgmanager examples lua python seccomp selinux"
51
52 -RDEPEND="net-libs/gnutls
53 +RDEPEND="
54 + net-libs/gnutls
55 sys-libs/libcap
56 cgmanager? ( app-admin/cgmanager )
57 lua? ( >=dev-lang/lua-5.1:= )
58 python? ( ${PYTHON_DEPS} )
59 - seccomp? ( sys-libs/libseccomp )"
60 + seccomp? ( sys-libs/libseccomp )
61 + selinux? ( sys-libs/libselinux )"
62
63 DEPEND="${RDEPEND}
64 - doc? ( app-text/docbook-sgml-utils )
65 + app-text/docbook-sgml-utils
66 >=sys-kernel/linux-headers-3.2"
67
68 RDEPEND="${RDEPEND}
69 - sys-process/criu
70 sys-apps/util-linux
71 app-misc/pax-utils
72 virtual/awk"
73 @@ -123,6 +123,9 @@ src_configure() {
74 # /var/lib/lxc is probably more appropriate than
75 # /usr/lib/lxc.
76 # Note by holgersson: Why is apparmor disabled?
77 +
78 + # --enable-doc is for manpages which is why we don't link it to a "doc"
79 + # USE flag. We always want man pages.
80 econf \
81 --localstatedir=/var \
82 --bindir=/usr/bin \
83 @@ -133,12 +136,13 @@ src_configure() {
84 --with-runtime-path=/run \
85 --disable-apparmor \
86 --disable-werror \
87 + --enable-doc \
88 $(use_enable cgmanager) \
89 - $(use_enable doc) \
90 $(use_enable examples) \
91 $(use_enable lua) \
92 $(use_enable python) \
93 - $(use_enable seccomp)
94 + $(use_enable seccomp) \
95 + $(use_enable selinux)
96 }
97
98 python_compile() {
99 @@ -182,20 +186,29 @@ src_install() {
100 # Remember to compare our systemd unit file with the upstream one
101 # config/init/systemd/lxc.service.in
102 systemd_newunit "${FILESDIR}"/${PN}_at.service.4 "lxc@.service"
103 +
104 + DOC_CONTENTS="
105 + Starting from version ${PN}-1.1.0-r3, the default lxc path has been
106 + moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc
107 + please add the following to your /etc/lxc/lxc.conf
108 +
109 + lxc.lxcpath = /etc/lxc
110 +
111 + For openrc, there is an init script provided with the package.
112 + You _should_ only need to symlink /etc/init.d/lxc to
113 + /etc/init.d/lxc.configname to start the container defined in
114 + /etc/lxc/configname.conf.
115 +
116 + Correspondingly, for systemd a service file lxc@.service is installed.
117 + Enable and start lxc@configname in order to start the container defined
118 + in /etc/lxc/configname.conf.
119 +
120 + If you want checkpoint/restore functionality, please install criu
121 + (sys-process/criu)."
122 + DISABLE_AUTOFORMATTING=true
123 + readme.gentoo_create_doc
124 }
125
126 pkg_postinst() {
127 - elog ""
128 - elog "Starting from version ${PN}-1.1.0-r3, the default lxc path has been"
129 - elog "moved from /etc/lxc to /var/lib/lxc. If you still want to use /etc/lxc"
130 - elog "please add the following to your /etc/lxc/default.conf"
131 - elog "lxc.lxcpath = /etc/lxc"
132 - elog ""
133 - elog "There is an init script provided with the package now; no documentation"
134 - elog "is currently available though, so please check out /etc/init.d/lxc ."
135 - elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
136 - elog "to start the container defined into /etc/lxc/configname.conf ."
137 - elog "For further information about LXC development see"
138 - elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
139 - elog ""
140 + readme.gentoo_print_elog
141 }