1 |
jlec 14/10/30 08:50:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lxc-1.0.6-r1.ebuild |
5 |
Log: |
6 |
app-emulation/lxc: Fix installation of bash-completions, #525808; thanks i.Dark_Templar for the initial patch |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.52 app-emulation/lxc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.52&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.52&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?r1=1.51&r2=1.52 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v |
20 |
retrieving revision 1.51 |
21 |
retrieving revision 1.52 |
22 |
diff -u -r1.51 -r1.52 |
23 |
--- ChangeLog 18 Oct 2014 17:03:23 -0000 1.51 |
24 |
+++ ChangeLog 30 Oct 2014 08:50:24 -0000 1.52 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-emulation/lxc |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.51 2014/10/18 17:03:23 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.52 2014/10/30 08:50:24 jlec Exp $ |
30 |
+ |
31 |
+*lxc-1.0.6-r1 (30 Oct 2014) |
32 |
+ |
33 |
+ 30 Oct 2014; Justin Lecher <jlec@g.o> +lxc-1.0.6-r1.ebuild, |
34 |
+ +files/lxc-1.0.6-bash-completion.patch: |
35 |
+ Fix installation of bash-completions, #525808; thanks i.Dark_Templar for the |
36 |
+ initial patch |
37 |
|
38 |
18 Oct 2014; Markos Chandras <hwoarang@g.o> -lxc-0.8.0-r1.ebuild, |
39 |
-lxc-0.8.0-r2.ebuild, -lxc-0.8.0_rc2-r1.ebuild, -lxc-1.0.3.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-emulation/lxc/lxc-1.0.6-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-1.0.6-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-1.0.6-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: lxc-1.0.6-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-1.0.6-r1.ebuild,v 1.1 2014/10/30 08:50:24 jlec Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
MY_P="${P/_/-}" |
57 |
PYTHON_COMPAT=( python{3_2,3_3,3_4} ) |
58 |
DISTUTILS_OPTIONAL=1 |
59 |
|
60 |
inherit autotools bash-completion-r1 distutils-r1 eutils linux-info versionator flag-o-matic systemd |
61 |
|
62 |
DESCRIPTION="LinuX Containers userspace utilities" |
63 |
HOMEPAGE="https://linuxcontainers.org/" |
64 |
SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz" |
65 |
|
66 |
KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
67 |
|
68 |
LICENSE="LGPL-3" |
69 |
SLOT="0" |
70 |
IUSE="doc examples lua python seccomp" |
71 |
|
72 |
RDEPEND="net-libs/gnutls |
73 |
sys-libs/libcap |
74 |
lua? ( >=dev-lang/lua-5.1 ) |
75 |
python? ( ${PYTHON_DEPS} ) |
76 |
seccomp? ( sys-libs/libseccomp )" |
77 |
|
78 |
DEPEND="${RDEPEND} |
79 |
doc? ( app-text/docbook-sgml-utils ) |
80 |
>=sys-kernel/linux-headers-3.2" |
81 |
|
82 |
RDEPEND="${RDEPEND} |
83 |
sys-apps/util-linux |
84 |
app-misc/pax-utils |
85 |
virtual/awk" |
86 |
|
87 |
CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE |
88 |
~CPUSETS ~CGROUP_CPUACCT |
89 |
~RESOURCE_COUNTERS |
90 |
~CGROUP_SCHED |
91 |
|
92 |
~NAMESPACES |
93 |
~IPC_NS ~USER_NS ~PID_NS |
94 |
|
95 |
~DEVPTS_MULTIPLE_INSTANCES |
96 |
~CGROUP_FREEZER |
97 |
~UTS_NS ~NET_NS |
98 |
~VETH ~MACVLAN |
99 |
|
100 |
~POSIX_MQUEUE |
101 |
~!NETPRIO_CGROUP |
102 |
|
103 |
~!GRKERNSEC_CHROOT_MOUNT |
104 |
~!GRKERNSEC_CHROOT_DOUBLE |
105 |
~!GRKERNSEC_CHROOT_PIVOT |
106 |
~!GRKERNSEC_CHROOT_CHMOD |
107 |
~!GRKERNSEC_CHROOT_CAPS |
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 |
|
130 |
DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS README doc/FAQ.txt) |
131 |
|
132 |
S="${WORKDIR}/${PN}-${MY_P}" |
133 |
|
134 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
135 |
|
136 |
src_prepare() { |
137 |
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die |
138 |
if [[ -n ${BACKPORTS} ]]; then |
139 |
epatch "${WORKDIR}"/patches/* |
140 |
fi |
141 |
|
142 |
epatch "${FILESDIR}"/${P}-bash-completion.patch |
143 |
|
144 |
eautoreconf |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
append-flags -fno-strict-aliasing |
149 |
|
150 |
econf \ |
151 |
--localstatedir=/var \ |
152 |
--bindir=/usr/sbin \ |
153 |
--docdir=/usr/share/doc/${PF} \ |
154 |
--with-config-path=/etc/lxc \ |
155 |
--with-rootfs-path=/usr/lib/lxc/rootfs \ |
156 |
$(use_enable doc) \ |
157 |
--disable-apparmor \ |
158 |
$(use_enable examples) \ |
159 |
$(use_enable lua) \ |
160 |
--disable-python |
161 |
} |
162 |
|
163 |
python_compile() { |
164 |
distutils-r1_python_compile build_ext -I ../ -L ../${PN} |
165 |
} |
166 |
|
167 |
src_compile() { |
168 |
default |
169 |
|
170 |
if use python; then |
171 |
pushd "${S}/src/python-${PN}" > /dev/null |
172 |
distutils-r1_src_compile |
173 |
popd > /dev/null |
174 |
fi |
175 |
} |
176 |
|
177 |
src_install() { |
178 |
default |
179 |
|
180 |
mv "${ED}"/$(get_bashcompdir)/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die |
181 |
bashcomp_alias ${PN}-start \ |
182 |
${PN}-{attach,cgroup,clone,console,create,destroy,device,execute,freeze,info,monitor,snapshot,start-ephemeral,stop,unfreeze,wait} |
183 |
|
184 |
if use python; then |
185 |
pushd "${S}/src/python-lxc" > /dev/null |
186 |
# Unset DOCS. This has been handled by the default target |
187 |
unset DOCS |
188 |
distutils-r1_src_install |
189 |
popd > /dev/null |
190 |
fi |
191 |
|
192 |
keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc |
193 |
|
194 |
find "${D}" -name '*.la' -delete |
195 |
|
196 |
# Gentoo-specific additions! |
197 |
# Use initd.3 per #517144 |
198 |
newinitd "${FILESDIR}/${PN}.initd.3" ${PN} |
199 |
|
200 |
# lxc-devsetup script |
201 |
exeinto /usr/libexec/${PN} |
202 |
doexe config/init/systemd/${PN}-devsetup |
203 |
# Use that script with the systemd service (Similar to upstream |
204 |
# Makefile.am |
205 |
cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service |
206 |
sed -i \ |
207 |
"/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \ |
208 |
${PN}_at.service \ |
209 |
|| die "Failed to add ${PN}-devsetup to the systemd service file" |
210 |
systemd_newunit ${PN}_at.service "lxc@.service" |
211 |
} |
212 |
|
213 |
pkg_postinst() { |
214 |
elog "There is an init script provided with the package now; no documentation" |
215 |
elog "is currently available though, so please check out /etc/init.d/lxc ." |
216 |
elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
217 |
elog "to start the container defined into /etc/lxc/configname.conf ." |
218 |
elog "For further information about LXC development see" |
219 |
elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
220 |
elog "" |
221 |
ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2" |
222 |
ewarn "and previous versions. This means you'll have to use syntax like the following" |
223 |
ewarn "" |
224 |
ewarn " lxc.rootfs = /container" |
225 |
ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0" |
226 |
ewarn "" |
227 |
ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you" |
228 |
ewarn "will need sys-apps/yum or dev-util/debootstrap." |
229 |
ewarn "" |
230 |
ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to" |
231 |
ewarn "work, while others will actually make it much more secure. Please refer to" |
232 |
ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further" |
233 |
ewarn "details." |
234 |
} |