1 |
flameeyes 11/02/26 18:02:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lxc-0.7.4.ebuild |
5 |
Log: |
6 |
Version bump; update warnings (configuration is now back to 0.7.2 syntax); make sure the init script logs warnings, as otherwise you'll never know what's going on. |
7 |
|
8 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.20 app-emulation/lxc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.20&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.20&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?r1=1.19&r2=1.20 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v |
20 |
retrieving revision 1.19 |
21 |
retrieving revision 1.20 |
22 |
diff -u -r1.19 -r1.20 |
23 |
--- ChangeLog 22 Nov 2010 10:48:32 -0000 1.19 |
24 |
+++ ChangeLog 26 Feb 2011 18:02:51 -0000 1.20 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for app-emulation/lxc |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.19 2010/11/22 10:48:32 flameeyes Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.20 2011/02/26 18:02:51 flameeyes Exp $ |
31 |
+ |
32 |
+*lxc-0.7.4 (26 Feb 2011) |
33 |
+ |
34 |
+ 26 Feb 2011; Diego E. Pettenò <flameeyes@g.o> +lxc-0.7.4.ebuild, |
35 |
+ files/lxc.initd: |
36 |
+ Version bump; update warnings (configuration is now back to 0.7.2 syntax); |
37 |
+ make sure the init script logs warnings, as otherwise you'll never know |
38 |
+ what's going on. |
39 |
|
40 |
22 Nov 2010; Diego E. Pettenò <flameeyes@g.o> lxc-0.7.3-r1.ebuild: |
41 |
Add a postinst note about the new location, since upstream provides no |
42 |
|
43 |
|
44 |
|
45 |
1.1 app-emulation/lxc/lxc-0.7.4.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.4.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.4.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: lxc-0.7.4.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.4.ebuild,v 1.1 2011/02/26 18:02:51 flameeyes Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
MY_P="${P/_/-}" |
59 |
|
60 |
inherit eutils linux-info versionator base |
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 ~x86" |
68 |
|
69 |
LICENSE="LGPL-3" |
70 |
SLOT="0" |
71 |
IUSE="doc examples vanilla" |
72 |
|
73 |
RDEPEND="sys-libs/libcap" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
doc? ( 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 |
~CGROUP_NS ~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 |
src_configure() { |
111 |
econf \ |
112 |
--localstatedir=/var \ |
113 |
--bindir=/usr/sbin \ |
114 |
--docdir=/usr/share/doc/${PF} \ |
115 |
--with-config-path=/etc/lxc \ |
116 |
--with-rootfs-path=/usr/lib/lxc/rootfs \ |
117 |
--with-linuxdir="${KERNEL_DIR}" \ |
118 |
$(use_enable doc) \ |
119 |
$(use_enable examples) \ |
120 |
|| die "configure failed" |
121 |
} |
122 |
|
123 |
src_install() { |
124 |
emake DESTDIR="${D}" install || die "install failed" |
125 |
|
126 |
dodoc AUTHORS CONTRIBUTING MAINTAINERS \ |
127 |
NEWS TODO README doc/FAQ.txt || die "dodoc failed" |
128 |
|
129 |
# If the documentation is going to be rebuilt, the Makefiles will |
130 |
# install the man pages themselves; if we're not going to, we |
131 |
# still need to install them, as they are provided with the |
132 |
# tarball in recent versions. |
133 |
if ! use doc; then |
134 |
doman doc/*.{1,5,7} || die |
135 |
fi |
136 |
|
137 |
rm -r "${D}"/usr/sbin/lxc-{setcap,ls} \ |
138 |
"${D}"/usr/share/man/man1/lxc-ls.1 \ |
139 |
|| die "unable to remove extraenous content" |
140 |
|
141 |
keepdir /etc/lxc /usr/lib/lxc/rootfs |
142 |
|
143 |
find "${D}" -name '*.la' -delete |
144 |
|
145 |
use vanilla && return 0 |
146 |
|
147 |
# Gentoo-specific additions! |
148 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
149 |
keepdir /var/log/lxc |
150 |
} |
151 |
|
152 |
pkg_postinst() { |
153 |
if ! use vanilla; then |
154 |
elog "There is an init script provided with the package now; no documentation" |
155 |
elog "is currently available though, so please check out /etc/init.d/lxc ." |
156 |
elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname" |
157 |
elog "to start the container defined into /etc/lxc/configname.conf ." |
158 |
elog "For further information about LXC development see" |
159 |
elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available |
160 |
elog "" |
161 |
fi |
162 |
ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2" |
163 |
ewarn "and previous versions. This means you'll have to use syntax like the following" |
164 |
ewarn "" |
165 |
ewarn " lxc.rootfs = /container" |
166 |
ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0" |
167 |
ewarn "" |
168 |
ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you" |
169 |
ewarn "will need sys-apps/yum or dev-util/debootstrap." |
170 |
} |