1 |
gregkh 14/03/26 12:21:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: docker-0.9.1.ebuild |
5 |
Log: |
6 |
0.9.1 bump |
7 |
|
8 |
(Portage version: 2.2.9-r1/cvs/Linux x86_64, signed Manifest commit with key ) |
9 |
|
10 |
Revision Changes Path |
11 |
1.18 app-emulation/docker/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.18&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.18&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?r1=1.17&r2=1.18 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v |
20 |
retrieving revision 1.17 |
21 |
retrieving revision 1.18 |
22 |
diff -u -r1.17 -r1.18 |
23 |
--- ChangeLog 11 Mar 2014 17:57:50 -0000 1.17 |
24 |
+++ ChangeLog 26 Mar 2014 12:21:28 -0000 1.18 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-emulation/docker |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.17 2014/03/11 17:57:50 gregkh Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.18 2014/03/26 12:21:28 gregkh Exp $ |
30 |
+ |
31 |
+*docker-0.9.1 (26 Mar 2014) |
32 |
+ |
33 |
+ 26 Mar 2014; Greg Kroah-Hartman <gregkh@g.o> +docker-0.9.1.ebuild: |
34 |
+ 0.9.1 bump |
35 |
|
36 |
*docker-0.9.0 (11 Mar 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-emulation/docker/docker-0.9.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.9.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.9.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: docker-0.9.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/docker-0.9.1.ebuild,v 1.1 2014/03/26 12:21:28 gregkh Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
DESCRIPTION="Docker complements kernel namespacing with a high-level API which operates at the process level." |
55 |
HOMEPAGE="https://www.docker.io/" |
56 |
|
57 |
GITHUB_URI="github.com/dotcloud/docker" |
58 |
|
59 |
if [[ ${PV} == *9999 ]]; then |
60 |
SRC_URI="" |
61 |
EGIT_REPO_URI="git://${GITHUB_URI}.git" |
62 |
inherit git-2 |
63 |
KEYWORDS="" |
64 |
else |
65 |
SRC_URI="https://${GITHUB_URI}/archive/v${PV}.zip -> ${P}.zip" |
66 |
DOCKER_GITCOMMIT="3600720" |
67 |
KEYWORDS="~amd64" |
68 |
[ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!" |
69 |
fi |
70 |
|
71 |
inherit bash-completion-r1 linux-info systemd udev user |
72 |
|
73 |
LICENSE="Apache-2.0" |
74 |
SLOT="0" |
75 |
IUSE="aufs btrfs +device-mapper doc lxc vim-syntax zsh-completion" |
76 |
|
77 |
# TODO work with upstream to allow us to build without lvm2 installed if we have -device-mapper |
78 |
CDEPEND=" |
79 |
>=dev-db/sqlite-3.7.9:3 |
80 |
sys-fs/lvm2[thin] |
81 |
" |
82 |
DEPEND=" |
83 |
${CDEPEND} |
84 |
>=dev-lang/go-1.2 |
85 |
>=sys-fs/btrfs-progs-0.20 |
86 |
dev-vcs/git |
87 |
dev-vcs/mercurial |
88 |
doc? ( |
89 |
dev-python/sphinx |
90 |
dev-python/sphinxcontrib-httpdomain |
91 |
) |
92 |
" |
93 |
RDEPEND=" |
94 |
${CDEPEND} |
95 |
!app-emulation/docker-bin |
96 |
>=net-firewall/iptables-1.4 |
97 |
lxc? ( |
98 |
>=app-emulation/lxc-0.8 |
99 |
) |
100 |
>=dev-vcs/git-1.7 |
101 |
>=app-arch/xz-utils-4.9 |
102 |
aufs? ( |
103 |
|| ( |
104 |
sys-fs/aufs3 |
105 |
sys-kernel/aufs-sources |
106 |
) |
107 |
) |
108 |
" |
109 |
|
110 |
RESTRICT="strip" |
111 |
|
112 |
pkg_setup() { |
113 |
# many of these were borrowed from the app-emulation/lxc ebuild |
114 |
CONFIG_CHECK+=" |
115 |
~CGROUPS |
116 |
~CGROUP_CPUACCT |
117 |
~CGROUP_DEVICE |
118 |
~CGROUP_SCHED |
119 |
~CPUSETS |
120 |
~MEMCG_SWAP |
121 |
~RESOURCE_COUNTERS |
122 |
|
123 |
~IPC_NS |
124 |
~NAMESPACES |
125 |
~PID_NS |
126 |
|
127 |
~DEVPTS_MULTIPLE_INSTANCES |
128 |
~MACVLAN |
129 |
~NET_NS |
130 |
~UTS_NS |
131 |
~VETH |
132 |
|
133 |
~!NETPRIO_CGROUP |
134 |
~POSIX_MQUEUE |
135 |
|
136 |
~BRIDGE |
137 |
~IP_NF_TARGET_MASQUERADE |
138 |
~NETFILTER_XT_MATCH_ADDRTYPE |
139 |
~NETFILTER_XT_MATCH_CONNTRACK |
140 |
~NF_NAT |
141 |
~NF_NAT_NEEDED |
142 |
|
143 |
~!GRKERNSEC_CHROOT_CAPS |
144 |
~!GRKERNSEC_CHROOT_CHMOD |
145 |
~!GRKERNSEC_CHROOT_DOUBLE |
146 |
~!GRKERNSEC_CHROOT_MOUNT |
147 |
~!GRKERNSEC_CHROOT_PIVOT |
148 |
" |
149 |
|
150 |
ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers" |
151 |
|
152 |
for c in GRKERNSEC_CHROOT_MOUNT GRKERNSEC_CHROOT_DOUBLE GRKERNSEC_CHROOT_PIVOT GRKERNSEC_CHROOT_CHMOD; do |
153 |
declare "ERROR_$c"="CONFIG_$c: see app-emulation/lxc postinst notes for why some GRSEC features make containers unusuable" |
154 |
done |
155 |
|
156 |
if use aufs; then |
157 |
CONFIG_CHECK+=" |
158 |
~AUFS_FS |
159 |
" |
160 |
ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used" |
161 |
fi |
162 |
|
163 |
if use btrfs; then |
164 |
CONFIG_CHECK+=" |
165 |
~BTRFS_FS |
166 |
" |
167 |
fi |
168 |
|
169 |
if use device-mapper; then |
170 |
CONFIG_CHECK+=" |
171 |
~BLK_DEV_DM |
172 |
~DM_THIN_PROVISIONING |
173 |
~EXT4_FS |
174 |
" |
175 |
fi |
176 |
|
177 |
check_extra_config |
178 |
} |
179 |
|
180 |
src_compile() { |
181 |
# if we treat them right, Docker's build scripts will set up a |
182 |
# reasonable GOPATH for us |
183 |
export AUTO_GOPATH=1 |
184 |
|
185 |
# setup CFLAGS and LDFLAGS for separate build target |
186 |
# see https://github.com/tianon/docker-overlay/pull/10 |
187 |
export CGO_CFLAGS="-I${ROOT}/usr/include" |
188 |
export CGO_LDFLAGS="-L${ROOT}/usr/lib" |
189 |
|
190 |
# if we're building from a zip, we need the GITCOMMIT value |
191 |
[ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT |
192 |
|
193 |
if gcc-specs-pie; then |
194 |
sed -i "s/EXTLDFLAGS_STATIC='/EXTLDFLAGS_STATIC='-fno-PIC /" hack/make.sh || die |
195 |
grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed' |
196 |
fi |
197 |
|
198 |
# time to build! |
199 |
./hack/make.sh dynbinary || die |
200 |
|
201 |
if use doc; then |
202 |
emake -C docs docs man || die |
203 |
fi |
204 |
} |
205 |
|
206 |
src_install() { |
207 |
VERSION=$(cat VERSION) |
208 |
newbin bundles/$VERSION/dynbinary/docker-$VERSION docker |
209 |
exeinto /usr/libexec/docker |
210 |
newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit |
211 |
|
212 |
newinitd contrib/init/openrc/docker.initd docker |
213 |
newconfd contrib/init/openrc/docker.confd docker |
214 |
|
215 |
systemd_dounit contrib/init/systemd/docker.service |
216 |
|
217 |
udev_dorules contrib/udev/*.rules |
218 |
|
219 |
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md |
220 |
if use doc; then |
221 |
dohtml -r docs/_build/html/* |
222 |
doman docs/_build/man/* |
223 |
fi |
224 |
|
225 |
dobashcomp contrib/completion/bash/* |
226 |
|
227 |
if use zsh-completion; then |
228 |
insinto /usr/share/zsh/site-functions |
229 |
doins contrib/completion/zsh/* |
230 |
fi |
231 |
|
232 |
if use vim-syntax; then |
233 |
insinto /usr/share/vim/vimfiles |
234 |
doins -r contrib/syntax/vim/ftdetect |
235 |
doins -r contrib/syntax/vim/syntax |
236 |
fi |
237 |
|
238 |
insinto /usr/share/${P}/contrib |
239 |
doins contrib/README |
240 |
cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/" |
241 |
} |
242 |
|
243 |
pkg_postinst() { |
244 |
udev_reload |
245 |
|
246 |
elog "" |
247 |
elog "To use docker, the docker daemon must be running as root. To automatically" |
248 |
elog "start the docker daemon at boot, add docker to the default runlevel:" |
249 |
elog " rc-update add docker default" |
250 |
elog "Similarly for systemd:" |
251 |
elog " systemctl enable docker.service" |
252 |
elog "" |
253 |
|
254 |
# create docker group if the code checking for it in /etc/group exists |
255 |
enewgroup docker |
256 |
|
257 |
elog "To use docker as a non-root user, add yourself to the docker group." |
258 |
elog "" |
259 |
} |