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