1 |
flameeyes 11/09/28 21:47:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lxc-0.7.5-r2.ebuild |
5 |
Removed: lxc-0.7.5-r1.ebuild |
6 |
Log: |
7 |
Fix init script to find the correct PID for the container's init and use a 30-seconds timeout to see if it has stopped correctly. Thanks to Stef Simoens for both (bug #384265). |
8 |
|
9 |
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.28 app-emulation/lxc/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.28&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.28&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?r1=1.27&r2=1.28 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v |
21 |
retrieving revision 1.27 |
22 |
retrieving revision 1.28 |
23 |
diff -u -r1.27 -r1.28 |
24 |
--- ChangeLog 14 Sep 2011 19:39:40 -0000 1.27 |
25 |
+++ ChangeLog 28 Sep 2011 21:47:46 -0000 1.28 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for app-emulation/lxc |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.27 2011/09/14 19:39:40 flameeyes Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.28 2011/09/28 21:47:46 flameeyes Exp $ |
31 |
+ |
32 |
+*lxc-0.7.5-r2 (28 Sep 2011) |
33 |
+ |
34 |
+ 28 Sep 2011; Diego E. Pettenò <flameeyes@g.o> -lxc-0.7.5-r1.ebuild, |
35 |
+ +lxc-0.7.5-r2.ebuild, files/lxc.initd: |
36 |
+ Fix init script to find the correct PID for the container's init and use a |
37 |
+ 30-seconds timeout to see if it has stopped correctly. Thanks to Stef Simoens |
38 |
+ for both (bug #384265). |
39 |
|
40 |
*lxc-0.7.5-r1 (14 Sep 2011) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 app-emulation/lxc/lxc-0.7.5-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.5-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.5-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: lxc-0.7.5-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-0.7.5-r2.ebuild,v 1.1 2011/09/28 21:47:46 flameeyes Exp $ |
55 |
|
56 |
EAPI="4" |
57 |
|
58 |
MY_P="${P/_/-}" |
59 |
|
60 |
inherit eutils linux-info versionator flag-o-matic |
61 |
|
62 |
DESCRIPTION="LinuX Containers userspace utilities" |
63 |
HOMEPAGE="http://lxc.sourceforge.net/" |
64 |
SRC_URI="http://lxc.sourceforge.net/download/lxc/${MY_P}.tar.gz" |
65 |
S="${WORKDIR}/${MY_P}" |
66 |
|
67 |
KEYWORDS="~amd64 ~ppc64 ~x86" |
68 |
|
69 |
LICENSE="LGPL-3" |
70 |
SLOT="0" |
71 |
IUSE="examples vanilla" |
72 |
|
73 |
RDEPEND="sys-libs/libcap" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
app-text/docbook-sgml-utils |
77 |
>=sys-kernel/linux-headers-2.6.29" |
78 |
|
79 |
# For init script, so protect with vanilla, they are not strictly |
80 |
# needed. |
81 |
RDEPEND="${RDEPEND} |
82 |
vanilla? ( |
83 |
sys-apps/util-linux |
84 |
app-misc/pax-utils |
85 |
)" |
86 |
|
87 |
CONFIG_CHECK="~CGROUPS |
88 |
~CPUSETS ~CGROUP_CPUACCT |
89 |
~RESOURCE_COUNTERS ~CGROUP_MEM_RES_CTLR |
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 |
ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container" |
101 |
|
102 |
ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers" |
103 |
|
104 |
ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info" |
105 |
ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network" |
106 |
|
107 |
ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking" |
108 |
ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking" |
109 |
|
110 |
DOCS=(AUTHORS CONTRIBUTING MAINTAINERS NEWS TODO README doc/FAQ.txt) |
111 |
|
112 |
src_configure() { |
113 |
append-flags -fno-strict-aliasing |
114 |
|
115 |
econf \ |
116 |
--localstatedir=/var \ |
117 |
--bindir=/usr/sbin \ |
118 |
--docdir=/usr/share/doc/${PF} \ |
119 |
--with-config-path=/etc/lxc \ |
120 |
--with-rootfs-path=/usr/lib/lxc/rootfs \ |
121 |
--with-linuxdir="${KERNEL_DIR}" \ |
122 |
--enable-doc \ |
123 |
$(use_enable examples) |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
default |
128 |
|
129 |
rm -r "${D}"/usr/sbin/lxc-{setcap,ls} \ |
130 |
"${D}"/usr/share/man/man1/lxc-ls.1 \ |
131 |
|| die "unable to remove extraenous content" |
132 |
|
133 |
keepdir /etc/lxc /usr/lib/lxc/rootfs |
134 |
|
135 |
find "${D}" -name '*.la' -delete |
136 |
|
137 |
use vanilla && return 0 |
138 |
|
139 |
# Gentoo-specific additions! |
140 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
141 |
keepdir /var/log/lxc |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
if ! use vanilla; then |
146 |
elog "There is an init script provided with the package now; no documentation" |
147 |
elog "is currently available though, so please check out /etc/init.d/lxc ." |
148 |
elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
149 |
elog "to start the container defined into /etc/lxc/configname.conf ." |
150 |
elog "For further information about LXC development see" |
151 |
elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
152 |
elog "" |
153 |
fi |
154 |
ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2" |
155 |
ewarn "and previous versions. This means you'll have to use syntax like the following" |
156 |
ewarn "" |
157 |
ewarn " lxc.rootfs = /container" |
158 |
ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0" |
159 |
ewarn "" |
160 |
ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you" |
161 |
ewarn "will need sys-apps/yum or dev-util/debootstrap." |
162 |
} |