Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/lxc: metadata.xml ChangeLog lxc-0.7.2.ebuild
Date: Sun, 01 Aug 2010 04:02:12
Message-Id: 20100801031751.A49CE2CF3A@corvid.gentoo.org
1 flameeyes 10/08/01 03:17:51
2
3 Modified: metadata.xml ChangeLog
4 Added: lxc-0.7.2.ebuild
5 Log:
6 Version bump, add the long-requested init script (protected with a USE=vanilla for those preferring not to have it).
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 app-emulation/lxc/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/metadata.xml?r1=1.3&r2=1.4
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/lxc/metadata.xml,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- metadata.xml 9 Mar 2010 13:43:25 -0000 1.3
23 +++ metadata.xml 1 Aug 2010 03:17:50 -0000 1.4
24 @@ -8,4 +8,14 @@
25 <maintainer>
26 <email>dev-zero@g.o</email>
27 </maintainer>
28 +
29 + <use>
30 + <flag name="vanilla">
31 + Avoid adding Gentoo Linux-specific modifications, which include
32 + the custom init script. This is present as a flag to avoid
33 + forcing dependencies over users that might not want have them
34 + around as they use LXC in contexts where the init script is not
35 + useful.
36 + </flag>
37 + </use>
38 </pkgmetadata>
39
40
41
42 1.14 app-emulation/lxc/ChangeLog
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.14&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?rev=1.14&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/ChangeLog?r1=1.13&r2=1.14
47
48 Index: ChangeLog
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v
51 retrieving revision 1.13
52 retrieving revision 1.14
53 diff -u -r1.13 -r1.14
54 --- ChangeLog 28 Jun 2010 00:00:08 -0000 1.13
55 +++ ChangeLog 1 Aug 2010 03:17:50 -0000 1.14
56 @@ -1,6 +1,13 @@
57 # ChangeLog for app-emulation/lxc
58 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
59 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.13 2010/06/28 00:00:08 flameeyes Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.14 2010/08/01 03:17:50 flameeyes Exp $
61 +
62 +*lxc-0.7.2 (01 Aug 2010)
63 +
64 + 01 Aug 2010; Diego E. Pettenò <flameeyes@g.o> +lxc-0.7.2.ebuild,
65 + +files/lxc.initd, metadata.xml:
66 + Version bump, add the long-requested init script (protected with a
67 + USE=vanilla for those preferring not to have it).
68
69 *lxc-0.7.1 (28 Jun 2010)
70
71
72
73
74 1.1 app-emulation/lxc/lxc-0.7.2.ebuild
75
76 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.2.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/lxc/lxc-0.7.2.ebuild?rev=1.1&content-type=text/plain
78
79 Index: lxc-0.7.2.ebuild
80 ===================================================================
81 # Copyright 1999-2010 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-0.7.2.ebuild,v 1.1 2010/08/01 03:17:50 flameeyes Exp $
84
85 EAPI="2"
86
87 inherit eutils linux-info versionator base
88
89 DESCRIPTION="LinuX Containers userspace utilities"
90 HOMEPAGE="http://lxc.sourceforge.net/"
91 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
92
93 KEYWORDS="~amd64 ~x86"
94
95 LICENSE="LGPL-3"
96 SLOT="0"
97 IUSE="doc examples vanilla"
98
99 RDEPEND="sys-libs/libcap"
100
101 DEPEND="${RDEPEND}
102 doc? ( app-text/docbook-sgml-utils )
103 >=sys-kernel/linux-headers-2.6.29"
104
105 # For init script, so protect with vanilla, they are not strictly
106 # needed.
107 RDEPEND="${RDEPEND}
108 vanilla? (
109 sys-apps/util-linux
110 app-misc/pax-utils
111 )"
112
113 CONFIG_CHECK="~CGROUPS
114 ~CGROUP_NS ~CPUSETS ~CGROUP_CPUACCT
115 ~RESOURCE_COUNTERS ~CGROUP_MEM_RES_CTLR
116 ~CGROUP_SCHED
117
118 ~NAMESPACES
119 ~IPC_NS ~USER_NS ~PID_NS
120
121 ~DEVPTS_MULTIPLE_INSTANCES
122 ~CGROUP_FREEZER
123 ~UTS_NS ~NET_NS
124 ~VETH ~MACVLAN"
125
126 ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
127
128 ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
129
130 ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
131 ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
132
133 ERROR_VETH="CONFIG_VETH: needed for internal (inter-container) networking"
134 ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
135
136 src_configure() {
137 econf \
138 --localstatedir=/var \
139 --bindir=/usr/sbin \
140 --docdir=/usr/share/doc/${PF} \
141 --with-config-path=/etc/lxc \
142 $(use_enable doc) \
143 $(use_enable examples) \
144 || die "configure failed"
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "install failed"
149
150 dodoc AUTHORS CONTRIBUTING MAINTAINERS \
151 NEWS TODO README doc/FAQ.txt || die "dodoc failed"
152
153 # If the documentation is going to be rebuilt, the Makefiles will
154 # install the man pages themselves; if we're not going to, we
155 # still need to install them, as they are provided with the
156 # tarball in recent versions.
157 if ! use doc; then
158 doman doc/*.{1,5,7} || die
159 fi
160
161 rm -r "${D}"/usr/sbin/lxc-{setcap,ls} \
162 "${D}"/usr/share/man/man1/lxc-ls.1 \
163 || die "unable to remove extraenous content"
164
165 keepdir /etc/lxc
166
167 find "${D}" -name '*.la' -delete
168
169 use vanilla && return 0
170
171 # Gentoo-specific additions!
172 newinitd "${FILESDIR}/${PN}.initd" ${PN}
173 }
174
175 pkg_postinst() {
176 if ! use vanilla; then
177 elog "There is an init script provided with the package now; no documentation"
178 elog "is currently available though, so please check out /etc/init.d/lxc ."
179 elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
180 elog "to start the container defined into /etc/lxc/configname.conf ."
181 elog "For further information about LXC development see"
182 elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
183 elog ""
184 fi
185 ewarn "To use the lxc-debian and lxc-fedora commands, you need respectively"
186 ewarn "dev-util/debootstrap and sys-apps/yum."
187 }