1 |
gregkh 14/02/05 22:27:43 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: docker-0.8.0.ebuild |
5 |
Log: |
6 |
0.8.0 bump |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key ) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 app-emulation/docker/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/metadata.xml?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/metadata.xml?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/metadata.xml?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/metadata.xml,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- metadata.xml 31 Dec 2013 16:46:51 -0000 1.3 |
24 |
+++ metadata.xml 5 Feb 2014 22:27:43 -0000 1.4 |
25 |
@@ -1,11 +1,6 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>proxy-maintainers</herd> |
30 |
- <maintainer status="active"> |
31 |
- <email>admwiggin@×××××.com</email> |
32 |
- <name>Tianon</name> |
33 |
- </maintainer> |
34 |
<longdescription> |
35 |
Docker is an open-source project to easily create lightweight, |
36 |
portable, self-sufficient containers from any application. The same |
37 |
@@ -13,11 +8,19 @@ |
38 |
scale, in production, on VMs, bare metal, OpenStack clusters, public |
39 |
clouds and more. |
40 |
</longdescription> |
41 |
+ <maintainer status="active"> |
42 |
+ <email>admwiggin@×××××.com</email> |
43 |
+ <name>Tianon</name> |
44 |
+ </maintainer> |
45 |
<use> |
46 |
<flag name="aufs"> |
47 |
Enables dependencies for the "aufs" driver, including necessary |
48 |
kernel flags. |
49 |
</flag> |
50 |
+ <flag name="btrfs"> |
51 |
+ Enables dependencies for the experimental "btrfs" driver, |
52 |
+ including necessary kernel flags. |
53 |
+ </flag> |
54 |
<flag name="device-mapper"> |
55 |
Enables dependencies for the "device-mapper" driver, including |
56 |
necessary kernel flags. |
57 |
|
58 |
|
59 |
|
60 |
1.15 app-emulation/docker/ChangeLog |
61 |
|
62 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.15&view=markup |
63 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.15&content-type=text/plain |
64 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?r1=1.14&r2=1.15 |
65 |
|
66 |
Index: ChangeLog |
67 |
=================================================================== |
68 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v |
69 |
retrieving revision 1.14 |
70 |
retrieving revision 1.15 |
71 |
diff -u -r1.14 -r1.15 |
72 |
--- ChangeLog 16 Jan 2014 21:35:21 -0000 1.14 |
73 |
+++ ChangeLog 5 Feb 2014 22:27:43 -0000 1.15 |
74 |
@@ -1,6 +1,12 @@ |
75 |
# ChangeLog for app-emulation/docker |
76 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
77 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.14 2014/01/16 21:35:21 gregkh Exp $ |
78 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.15 2014/02/05 22:27:43 gregkh Exp $ |
79 |
+ |
80 |
+*docker-0.8.0 (05 Feb 2014) |
81 |
+ |
82 |
+ 05 Feb 2014; Greg Kroah-Hartman <gregkh@g.o> +docker-0.8.0.ebuild, |
83 |
+ metadata.xml: |
84 |
+ 0.8.0 bump |
85 |
|
86 |
*docker-0.7.6 (16 Jan 2014) |
87 |
|
88 |
|
89 |
|
90 |
|
91 |
1.1 app-emulation/docker/docker-0.8.0.ebuild |
92 |
|
93 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.8.0.ebuild?rev=1.1&view=markup |
94 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.8.0.ebuild?rev=1.1&content-type=text/plain |
95 |
|
96 |
Index: docker-0.8.0.ebuild |
97 |
=================================================================== |
98 |
# Copyright 1999-2014 Gentoo Foundation |
99 |
# Distributed under the terms of the GNU General Public License v2 |
100 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.8.0.ebuild,v 1.1 2014/02/05 22:27:43 gregkh Exp $ |
101 |
|
102 |
EAPI=5 |
103 |
|
104 |
DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level." |
105 |
HOMEPAGE="http://www.docker.io/" |
106 |
|
107 |
GITHUB_URI="github.com/dotcloud/docker" |
108 |
|
109 |
if [[ ${PV} == *9999 ]]; then |
110 |
SRC_URI="" |
111 |
EGIT_REPO_URI="git://${GITHUB_URI}.git" |
112 |
inherit git-2 |
113 |
KEYWORDS="" |
114 |
else |
115 |
SRC_URI="https://${GITHUB_URI}/archive/v${PV}.zip -> ${P}.zip" |
116 |
DOCKER_GITCOMMIT="cc3a8c8" |
117 |
KEYWORDS="~amd64" |
118 |
[ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!" |
119 |
fi |
120 |
|
121 |
inherit bash-completion-r1 linux-info systemd udev user |
122 |
|
123 |
LICENSE="Apache-2.0" |
124 |
SLOT="0" |
125 |
IUSE="aufs btrfs +device-mapper doc vim-syntax zsh-completion" |
126 |
|
127 |
# TODO work with upstream to allow us to build without lvm2 installed if we have -device-mapper |
128 |
CDEPEND=" |
129 |
>=dev-db/sqlite-3.7.9:3 |
130 |
sys-fs/lvm2[thin] |
131 |
" |
132 |
DEPEND=" |
133 |
${CDEPEND} |
134 |
>=dev-lang/go-1.2 |
135 |
>=sys-fs/btrfs-progs-0.20 |
136 |
dev-vcs/git |
137 |
dev-vcs/mercurial |
138 |
doc? ( |
139 |
dev-python/sphinx |
140 |
dev-python/sphinxcontrib-httpdomain |
141 |
) |
142 |
" |
143 |
RDEPEND=" |
144 |
${CDEPEND} |
145 |
!app-emulation/docker-bin |
146 |
>=sys-apps/iproute2-3.5 |
147 |
>=net-firewall/iptables-1.4 |
148 |
>=app-emulation/lxc-0.8 |
149 |
>=dev-vcs/git-1.7 |
150 |
>=app-arch/xz-utils-4.9 |
151 |
aufs? ( |
152 |
|| ( |
153 |
sys-fs/aufs3 |
154 |
sys-kernel/aufs-sources |
155 |
) |
156 |
) |
157 |
" |
158 |
|
159 |
RESTRICT="strip" |
160 |
|
161 |
pkg_setup() { |
162 |
CONFIG_CHECK+=" |
163 |
~BRIDGE |
164 |
~IP_NF_TARGET_MASQUERADE |
165 |
~MEMCG_SWAP |
166 |
~NETFILTER_XT_MATCH_ADDRTYPE |
167 |
~NETFILTER_XT_MATCH_CONNTRACK |
168 |
~NF_NAT |
169 |
~NF_NAT_NEEDED |
170 |
" |
171 |
ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers" |
172 |
|
173 |
if use aufs; then |
174 |
CONFIG_CHECK+=" |
175 |
~AUFS_FS |
176 |
" |
177 |
ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used" |
178 |
fi |
179 |
|
180 |
if use btrfs; then |
181 |
CONFIG_CHECK+=" |
182 |
~BTRFS_FS |
183 |
" |
184 |
fi |
185 |
|
186 |
if use device-mapper; then |
187 |
CONFIG_CHECK+=" |
188 |
~BLK_DEV_DM |
189 |
~DM_THIN_PROVISIONING |
190 |
~EXT4_FS |
191 |
" |
192 |
fi |
193 |
|
194 |
check_extra_config |
195 |
} |
196 |
|
197 |
src_compile() { |
198 |
# eventually, perhaps Gentoo will include a "go" eclass to do some of this |
199 |
|
200 |
export GOPATH="${WORKDIR}/gopath" |
201 |
mkdir -p "$GOPATH" || die |
202 |
|
203 |
# make sure docker itself is in our shiny new GOPATH |
204 |
mkdir -p "${GOPATH}/src/$(dirname "$GITHUB_URI")" || die |
205 |
ln -sf "$(pwd -P)" "${GOPATH}/src/${GITHUB_URI}" || die |
206 |
|
207 |
# we need our vendored deps, too |
208 |
export GOPATH="$GOPATH:$(pwd -P)/vendor" |
209 |
|
210 |
# setup CFLAGS and LDFLAGS for separate build target |
211 |
# see https://github.com/tianon/docker-overlay/pull/10 |
212 |
export CGO_CFLAGS="-I${ROOT}/usr/include" |
213 |
export CGO_LDFLAGS="-L${ROOT}/usr/lib" |
214 |
|
215 |
# if we're building from a zip, we need the GITCOMMIT value |
216 |
[ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT |
217 |
|
218 |
if gcc-specs-pie; then |
219 |
sed -i 's/export LDFLAGS_STATIC="/export LDFLAGS_STATIC="-extldflags=-fno-PIC /' hack/make/dynbinary || die |
220 |
grep -q '-extldflags=-fno-PIC' hack/make/dynbinary || die 'sed failed' |
221 |
fi |
222 |
|
223 |
# time to build! |
224 |
./hack/make.sh dynbinary || die |
225 |
|
226 |
if use doc; then |
227 |
emake -C docs docs man || die |
228 |
fi |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
VERSION=$(cat VERSION) |
233 |
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker |
234 |
exeinto /usr/libexec/docker |
235 |
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit |
236 |
|
237 |
newinitd contrib/init/openrc/docker.initd docker |
238 |
newconfd contrib/init/openrc/docker.confd docker |
239 |
|
240 |
systemd_dounit contrib/init/systemd/docker.service |
241 |
|
242 |
udev_dorules contrib/udev/*.rules |
243 |
|
244 |
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md |
245 |
if use doc; then |
246 |
dohtml -r docs/_build/html/* |
247 |
doman docs/_build/man/* |
248 |
fi |
249 |
|
250 |
dobashcomp contrib/completion/bash/* |
251 |
|
252 |
if use zsh-completion; then |
253 |
insinto /usr/share/zsh/site-functions |
254 |
doins contrib/completion/zsh/* |
255 |
fi |
256 |
|
257 |
if use vim-syntax; then |
258 |
insinto /usr/share/vim/vimfiles |
259 |
doins -r contrib/syntax/vim/ftdetect |
260 |
doins -r contrib/syntax/vim/syntax |
261 |
fi |
262 |
|
263 |
insinto /usr/share/${P}/contrib |
264 |
doins contrib/README |
265 |
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/" |
266 |
} |
267 |
|
268 |
pkg_postinst() { |
269 |
udev_reload |
270 |
|
271 |
elog "" |
272 |
elog "To use docker, the docker daemon must be running as root. To automatically" |
273 |
elog "start the docker daemon at boot, add docker to the default runlevel:" |
274 |
elog " rc-update add docker default" |
275 |
elog "Similarly for systemd:" |
276 |
elog " systemctl enable docker.service" |
277 |
elog "" |
278 |
|
279 |
# create docker group if the code checking for it in /etc/group exists |
280 |
enewgroup docker |
281 |
|
282 |
elog "To use docker as a non-root user, add yourself to the docker group." |
283 |
elog "" |
284 |
} |