Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/
Date: Thu, 04 Jul 2019 15:34:14
Message-Id: 1562254314.be754f832d9cffb47f7aa2c28d6885b0695a04d7.mrueg@gentoo
1 commit: be754f832d9cffb47f7aa2c28d6885b0695a04d7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 4 15:31:54 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 4 15:31:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be754f83
7
8 app-emulation/docker: Remove old
9
10 Package-Manager: Portage-2.3.68, Repoman-2.3.16
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-emulation/docker/Manifest | 4 -
14 app-emulation/docker/docker-18.09.5.ebuild | 299 --------------------
15 app-emulation/docker/docker-18.09.6.ebuild | 299 --------------------
16 .../docker/docker-18.09.6_p20190604.ebuild | 300 ---------------------
17 app-emulation/docker/docker-18.09.7_rc1.ebuild | 300 ---------------------
18 app-emulation/docker/metadata.xml | 3 -
19 6 files changed, 1205 deletions(-)
20
21 diff --git a/app-emulation/docker/Manifest b/app-emulation/docker/Manifest
22 index 5927e3556f6..4c8ff062be8 100644
23 --- a/app-emulation/docker/Manifest
24 +++ b/app-emulation/docker/Manifest
25 @@ -1,5 +1 @@
26 -DIST docker-18.09.5.tar.gz 15256899 BLAKE2B c55ef822b3e655b0bec9585de6ee346e73d48d388225141097768db9f5ddaeca2d1937274a7131e3e301686e2214a9ed2051dd72c07893bcfccb00424d02df73 SHA512 a6012d202761d6449e347b03759d92f5f45309e72562fd4a619b2a21c62b3f50b1256d2e4820317aa6b412f1eecda66dbd960d322293699433417a5f7ee73486
27 -DIST docker-18.09.6.tar.gz 15257416 BLAKE2B e0f93f09c403f043d3b2f390d50da83565b0520d18b695a8166aa240817cc713eb9eff314d4c7eeba242c25e35c0b6a9ea3a7f1d661d6aca4a40f7e77856a05d SHA512 f05fc78f5891fa0308878690576e245eebb1e72f306f5b629b0e82dc96a04812202a2393ee6fd352bc59a1c5d29d398f0d6cddf545d57b483a051d14d7a0ee28
28 -DIST docker-18.09.6_p20190604.tar.gz 15259344 BLAKE2B f958063ab9fc851fda13117210dade6b7fb211426c9565c62f2786a2b5878194ea052f866da1b2e489bd75d622cdf77bafccc538377cc5c261f86f50163cb151 SHA512 da518f07cfd9f90ad46796f5047156ef517fa75ff27daa16ab16b868b7f1c9822cb61ce2ee558b1632c4acfdd8d74a608f5b6cb5cb5ca932aca5bf42d497d6a9
29 DIST docker-18.09.7.tar.gz 15264213 BLAKE2B 5aa4be6d63271fd0b9a8ea480ed55a1dc312d479d7d387a35573963393b33da96086741dbb817aff765cceb81e309fd76122b3622dd91640a492a9f46c9dbd64 SHA512 7d06ab01673b5931a8dde1d2fcebf442d1a107c98c95cd8fe3b886c123b48470950601782fe0c83e7537a1e856069e79a096b9f4523fea7984fd3e773b243b66
30 -DIST docker-18.09.7_rc1.tar.gz 15264071 BLAKE2B d124cff1e32cedda35d8d0fac074a2227d078673639e99a1313e42b73b2c84b0c97af5470d3d4c8f2684e93898ab9d081fe536cd4e428ef8a8a5639761bd380b SHA512 377a07c7a1515a8f08c412d2117e10d9c9100a4a55dc5df69e8a8b822362b0b41812b3d4ee8fc8a1e7bc7258c15ee3da6aa42c7bc71fd86def1f6cda9f1566cd
31
32 diff --git a/app-emulation/docker/docker-18.09.5.ebuild b/app-emulation/docker/docker-18.09.5.ebuild
33 deleted file mode 100644
34 index 450eaa2a1f0..00000000000
35 --- a/app-emulation/docker/docker-18.09.5.ebuild
36 +++ /dev/null
37 @@ -1,299 +0,0 @@
38 -# Copyright 1999-2019 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -
43 -EGO_PN="github.com/docker/docker-ce"
44 -
45 -if [[ ${PV} = *9999* ]]; then
46 - # Docker cannot be fetched via "go get", thanks to autogenerated code
47 - EGIT_REPO_URI="https://${EGO_PN}.git"
48 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
49 - inherit git-r3
50 -else
51 - DOCKER_GITCOMMIT="e8ff056"
52 - SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 - KEYWORDS="amd64 ~arm ~arm64"
54 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
55 - inherit golang-vcs-snapshot
56 -fi
57 -inherit bash-completion-r1 golang-base linux-info systemd udev user
58 -
59 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
60 -HOMEPAGE="https://dockerproject.org"
61 -LICENSE="Apache-2.0"
62 -SLOT="0"
63 -IUSE="apparmor aufs btrfs +container-init device-mapper hardened +overlay pkcs11 seccomp"
64 -
65 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
66 -CDEPEND="
67 - >=dev-db/sqlite-3.7.9:3
68 - device-mapper? (
69 - >=sys-fs/lvm2-2.02.89[thin]
70 - )
71 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
72 - apparmor? ( sys-libs/libapparmor )
73 -"
74 -
75 -DEPEND="
76 - ${CDEPEND}
77 -
78 - dev-go/go-md2man
79 -
80 - btrfs? (
81 - >=sys-fs/btrfs-progs-3.16.1
82 - )
83 -"
84 -
85 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
86 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
87 -RDEPEND="
88 - ${CDEPEND}
89 - >=net-firewall/iptables-1.4
90 - sys-process/procps
91 - >=dev-vcs/git-1.7
92 - >=app-arch/xz-utils-4.9
93 - dev-libs/libltdl
94 - ~app-emulation/containerd-1.2.5
95 - ~app-emulation/runc-1.0.0_rc6_p20190216[apparmor?,seccomp?]
96 - ~app-emulation/docker-proxy-0.8.0_p20190405
97 - container-init? ( >=sys-process/tini-0.18.0[static] )
98 -"
99 -
100 -RESTRICT="installsources strip"
101 -
102 -S="${WORKDIR}/${P}/src/${EGO_PN}"
103 -
104 -# see "contrib/check-config.sh" from upstream's sources
105 -CONFIG_CHECK="
106 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
107 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
108 - ~KEYS
109 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
110 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
111 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
112 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
113 - ~POSIX_MQUEUE
114 -
115 - ~USER_NS
116 - ~SECCOMP
117 - ~CGROUP_PIDS
118 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
119 -
120 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
121 - ~CGROUP_PERF
122 - ~CGROUP_HUGETLB
123 - ~NET_CLS_CGROUP
124 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
125 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
126 -
127 - ~VXLAN
128 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
129 - ~IPVLAN
130 - ~MACVLAN ~DUMMY
131 -"
132 -
133 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
134 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
135 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
136 -
137 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
138 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
139 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
140 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
141 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
142 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
143 -
144 -pkg_setup() {
145 - if kernel_is lt 3 10; then
146 - ewarn ""
147 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
148 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
149 - fi
150 -
151 - if kernel_is le 3 18; then
152 - CONFIG_CHECK+="
153 - ~RESOURCE_COUNTERS
154 - "
155 - fi
156 -
157 - if kernel_is le 3 13; then
158 - CONFIG_CHECK+="
159 - ~NETPRIO_CGROUP
160 - "
161 - else
162 - CONFIG_CHECK+="
163 - ~CGROUP_NET_PRIO
164 - "
165 - fi
166 -
167 - if kernel_is lt 4 5; then
168 - CONFIG_CHECK+="
169 - ~MEMCG_KMEM
170 - "
171 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
172 - fi
173 -
174 - if kernel_is lt 4 7; then
175 - CONFIG_CHECK+="
176 - ~DEVPTS_MULTIPLE_INSTANCES
177 - "
178 - fi
179 -
180 - if use aufs; then
181 - CONFIG_CHECK+="
182 - ~AUFS_FS
183 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
184 - "
185 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
186 - fi
187 -
188 - if use btrfs; then
189 - CONFIG_CHECK+="
190 - ~BTRFS_FS
191 - ~BTRFS_FS_POSIX_ACL
192 - "
193 - fi
194 -
195 - if use device-mapper; then
196 - CONFIG_CHECK+="
197 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
198 - "
199 - fi
200 -
201 - if use overlay; then
202 - CONFIG_CHECK+="
203 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
204 - "
205 - fi
206 -
207 - linux-info_pkg_setup
208 -
209 - # create docker group for the code checking for it in /etc/group
210 - enewgroup docker
211 -}
212 -
213 -src_compile() {
214 - export GOPATH="${WORKDIR}/${P}"
215 -
216 - # setup CFLAGS and LDFLAGS for separate build target
217 - # see https://github.com/tianon/docker-overlay/pull/10
218 - export CGO_CFLAGS="-I${ROOT}/usr/include"
219 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
220 -
221 - # if we're building from a tarball, we need the GITCOMMIT value
222 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
223 -
224 - # fake golang layout
225 - ln -s docker-ce/components/engine ../docker || die
226 - ln -s docker-ce/components/cli ../cli || die
227 -
228 - # let's set up some optional features :)
229 - export DOCKER_BUILDTAGS=''
230 - for gd in aufs btrfs device-mapper overlay; do
231 - if ! use $gd; then
232 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
233 - fi
234 - done
235 -
236 - for tag in apparmor pkcs11 seccomp; do
237 - if use $tag; then
238 - DOCKER_BUILDTAGS+=" $tag"
239 - fi
240 - done
241 -
242 - pushd components/engine || die
243 -
244 - if use hardened; then
245 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
246 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
247 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
248 - -i hack/make/dynbinary-daemon || die
249 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
250 - fi
251 -
252 - # build daemon
253 - VERSION="$(cat ../../VERSION)" \
254 - ./hack/make.sh dynbinary || die 'dynbinary failed'
255 -
256 - popd || die # components/engine
257 -
258 - pushd components/cli || die
259 -
260 - # build cli
261 - emake \
262 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
263 - VERSION="$(cat ../../VERSION)" \
264 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
265 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
266 - dynbinary || die
267 -
268 - # build man pages
269 - go build -o gen-manpages github.com/docker/cli/man || die
270 - ./gen-manpages --root . --target ./man/man1 || die
271 - ./man/md2man-all.sh -q || die
272 - rm gen-manpages || die
273 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
274 -
275 - popd || die # components/cli
276 -}
277 -
278 -src_install() {
279 - dosym containerd /usr/bin/docker-containerd
280 - dosym containerd-shim /usr/bin/docker-containerd-shim
281 - dosym runc /usr/bin/docker-runc
282 - use container-init && dosym tini /usr/bin/docker-init
283 -
284 - pushd components/engine || die
285 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
286 -
287 - newinitd contrib/init/openrc/docker.initd docker
288 - newconfd contrib/init/openrc/docker.confd docker
289 -
290 - systemd_dounit contrib/init/systemd/docker.{service,socket}
291 -
292 - udev_dorules contrib/udev/*.rules
293 -
294 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
295 - dodoc -r docs/*
296 -
297 - insinto /usr/share/vim/vimfiles
298 - doins -r contrib/syntax/vim/ftdetect
299 - doins -r contrib/syntax/vim/syntax
300 -
301 - # note: intentionally not using "doins" so that we preserve +x bits
302 - dodir /usr/share/${PN}/contrib
303 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
304 - popd || die # components/engine
305 -
306 - pushd components/cli || die
307 -
308 - newbin build/docker-* docker
309 -
310 - doman man/man*/*
311 -
312 - dobashcomp contrib/completion/bash/*
313 - insinto /usr/share/fish/vendor_completions.d/
314 - doins contrib/completion/fish/docker.fish
315 - insinto /usr/share/zsh/site-functions
316 - doins contrib/completion/zsh/_*
317 - popd || die # components/cli
318 -}
319 -
320 -pkg_postinst() {
321 - udev_reload
322 -
323 - elog
324 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
325 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
326 - elog " rc-update add docker default"
327 - elog "Similarly for systemd:"
328 - elog " systemctl enable docker.service"
329 - elog
330 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
331 - elog " usermod -aG docker youruser"
332 - elog
333 -
334 - elog " Devicemapper storage driver has been deprecated"
335 - elog " It will be removed in a future release"
336 -}
337
338 diff --git a/app-emulation/docker/docker-18.09.6.ebuild b/app-emulation/docker/docker-18.09.6.ebuild
339 deleted file mode 100644
340 index 70a115c0501..00000000000
341 --- a/app-emulation/docker/docker-18.09.6.ebuild
342 +++ /dev/null
343 @@ -1,299 +0,0 @@
344 -# Copyright 1999-2019 Gentoo Authors
345 -# Distributed under the terms of the GNU General Public License v2
346 -
347 -EAPI=6
348 -
349 -EGO_PN="github.com/docker/docker-ce"
350 -
351 -if [[ ${PV} = *9999* ]]; then
352 - # Docker cannot be fetched via "go get", thanks to autogenerated code
353 - EGIT_REPO_URI="https://${EGO_PN}.git"
354 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
355 - inherit git-r3
356 -else
357 - DOCKER_GITCOMMIT="481bc77"
358 - SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
359 - KEYWORDS="amd64 ~arm ~arm64"
360 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
361 - inherit golang-vcs-snapshot
362 -fi
363 -inherit bash-completion-r1 golang-base linux-info systemd udev user
364 -
365 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
366 -HOMEPAGE="https://dockerproject.org"
367 -LICENSE="Apache-2.0"
368 -SLOT="0"
369 -IUSE="apparmor aufs btrfs +container-init device-mapper hardened +overlay pkcs11 seccomp"
370 -
371 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
372 -CDEPEND="
373 - >=dev-db/sqlite-3.7.9:3
374 - device-mapper? (
375 - >=sys-fs/lvm2-2.02.89[thin]
376 - )
377 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
378 - apparmor? ( sys-libs/libapparmor )
379 -"
380 -
381 -DEPEND="
382 - ${CDEPEND}
383 -
384 - dev-go/go-md2man
385 -
386 - btrfs? (
387 - >=sys-fs/btrfs-progs-3.16.1
388 - )
389 -"
390 -
391 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
392 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
393 -RDEPEND="
394 - ${CDEPEND}
395 - >=net-firewall/iptables-1.4
396 - sys-process/procps
397 - >=dev-vcs/git-1.7
398 - >=app-arch/xz-utils-4.9
399 - dev-libs/libltdl
400 - ~app-emulation/containerd-1.2.5
401 - ~app-emulation/runc-1.0.0_rc6_p20190216[apparmor?,seccomp?]
402 - ~app-emulation/docker-proxy-0.8.0_p20190417
403 - container-init? ( >=sys-process/tini-0.18.0[static] )
404 -"
405 -
406 -RESTRICT="installsources strip"
407 -
408 -S="${WORKDIR}/${P}/src/${EGO_PN}"
409 -
410 -# see "contrib/check-config.sh" from upstream's sources
411 -CONFIG_CHECK="
412 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
413 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
414 - ~KEYS
415 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
416 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
417 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
418 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
419 - ~POSIX_MQUEUE
420 -
421 - ~USER_NS
422 - ~SECCOMP
423 - ~CGROUP_PIDS
424 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
425 -
426 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
427 - ~CGROUP_PERF
428 - ~CGROUP_HUGETLB
429 - ~NET_CLS_CGROUP
430 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
431 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
432 -
433 - ~VXLAN
434 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
435 - ~IPVLAN
436 - ~MACVLAN ~DUMMY
437 -"
438 -
439 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
440 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
441 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
442 -
443 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
444 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
445 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
446 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
447 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
448 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
449 -
450 -pkg_setup() {
451 - if kernel_is lt 3 10; then
452 - ewarn ""
453 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
454 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
455 - fi
456 -
457 - if kernel_is le 3 18; then
458 - CONFIG_CHECK+="
459 - ~RESOURCE_COUNTERS
460 - "
461 - fi
462 -
463 - if kernel_is le 3 13; then
464 - CONFIG_CHECK+="
465 - ~NETPRIO_CGROUP
466 - "
467 - else
468 - CONFIG_CHECK+="
469 - ~CGROUP_NET_PRIO
470 - "
471 - fi
472 -
473 - if kernel_is lt 4 5; then
474 - CONFIG_CHECK+="
475 - ~MEMCG_KMEM
476 - "
477 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
478 - fi
479 -
480 - if kernel_is lt 4 7; then
481 - CONFIG_CHECK+="
482 - ~DEVPTS_MULTIPLE_INSTANCES
483 - "
484 - fi
485 -
486 - if use aufs; then
487 - CONFIG_CHECK+="
488 - ~AUFS_FS
489 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
490 - "
491 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
492 - fi
493 -
494 - if use btrfs; then
495 - CONFIG_CHECK+="
496 - ~BTRFS_FS
497 - ~BTRFS_FS_POSIX_ACL
498 - "
499 - fi
500 -
501 - if use device-mapper; then
502 - CONFIG_CHECK+="
503 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
504 - "
505 - fi
506 -
507 - if use overlay; then
508 - CONFIG_CHECK+="
509 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
510 - "
511 - fi
512 -
513 - linux-info_pkg_setup
514 -
515 - # create docker group for the code checking for it in /etc/group
516 - enewgroup docker
517 -}
518 -
519 -src_compile() {
520 - export GOPATH="${WORKDIR}/${P}"
521 -
522 - # setup CFLAGS and LDFLAGS for separate build target
523 - # see https://github.com/tianon/docker-overlay/pull/10
524 - export CGO_CFLAGS="-I${ROOT}/usr/include"
525 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
526 -
527 - # if we're building from a tarball, we need the GITCOMMIT value
528 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
529 -
530 - # fake golang layout
531 - ln -s docker-ce/components/engine ../docker || die
532 - ln -s docker-ce/components/cli ../cli || die
533 -
534 - # let's set up some optional features :)
535 - export DOCKER_BUILDTAGS=''
536 - for gd in aufs btrfs device-mapper overlay; do
537 - if ! use $gd; then
538 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
539 - fi
540 - done
541 -
542 - for tag in apparmor pkcs11 seccomp; do
543 - if use $tag; then
544 - DOCKER_BUILDTAGS+=" $tag"
545 - fi
546 - done
547 -
548 - pushd components/engine || die
549 -
550 - if use hardened; then
551 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
552 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
553 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
554 - -i hack/make/dynbinary-daemon || die
555 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
556 - fi
557 -
558 - # build daemon
559 - VERSION="$(cat ../../VERSION)" \
560 - ./hack/make.sh dynbinary || die 'dynbinary failed'
561 -
562 - popd || die # components/engine
563 -
564 - pushd components/cli || die
565 -
566 - # build cli
567 - emake \
568 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
569 - VERSION="$(cat ../../VERSION)" \
570 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
571 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
572 - dynbinary || die
573 -
574 - # build man pages
575 - go build -o gen-manpages github.com/docker/cli/man || die
576 - ./gen-manpages --root . --target ./man/man1 || die
577 - ./man/md2man-all.sh -q || die
578 - rm gen-manpages || die
579 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
580 -
581 - popd || die # components/cli
582 -}
583 -
584 -src_install() {
585 - dosym containerd /usr/bin/docker-containerd
586 - dosym containerd-shim /usr/bin/docker-containerd-shim
587 - dosym runc /usr/bin/docker-runc
588 - use container-init && dosym tini /usr/bin/docker-init
589 -
590 - pushd components/engine || die
591 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
592 -
593 - newinitd contrib/init/openrc/docker.initd docker
594 - newconfd contrib/init/openrc/docker.confd docker
595 -
596 - systemd_dounit contrib/init/systemd/docker.{service,socket}
597 -
598 - udev_dorules contrib/udev/*.rules
599 -
600 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
601 - dodoc -r docs/*
602 -
603 - insinto /usr/share/vim/vimfiles
604 - doins -r contrib/syntax/vim/ftdetect
605 - doins -r contrib/syntax/vim/syntax
606 -
607 - # note: intentionally not using "doins" so that we preserve +x bits
608 - dodir /usr/share/${PN}/contrib
609 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
610 - popd || die # components/engine
611 -
612 - pushd components/cli || die
613 -
614 - newbin build/docker-* docker
615 -
616 - doman man/man*/*
617 -
618 - dobashcomp contrib/completion/bash/*
619 - insinto /usr/share/fish/vendor_completions.d/
620 - doins contrib/completion/fish/docker.fish
621 - insinto /usr/share/zsh/site-functions
622 - doins contrib/completion/zsh/_*
623 - popd || die # components/cli
624 -}
625 -
626 -pkg_postinst() {
627 - udev_reload
628 -
629 - elog
630 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
631 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
632 - elog " rc-update add docker default"
633 - elog "Similarly for systemd:"
634 - elog " systemctl enable docker.service"
635 - elog
636 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
637 - elog " usermod -aG docker youruser"
638 - elog
639 -
640 - elog " Devicemapper storage driver has been deprecated"
641 - elog " It will be removed in a future release"
642 -}
643
644 diff --git a/app-emulation/docker/docker-18.09.6_p20190604.ebuild b/app-emulation/docker/docker-18.09.6_p20190604.ebuild
645 deleted file mode 100644
646 index 0e1c5d64756..00000000000
647 --- a/app-emulation/docker/docker-18.09.6_p20190604.ebuild
648 +++ /dev/null
649 @@ -1,300 +0,0 @@
650 -# Copyright 1999-2019 Gentoo Authors
651 -# Distributed under the terms of the GNU General Public License v2
652 -
653 -EAPI=6
654 -
655 -EGO_PN="github.com/docker/docker-ce"
656 -
657 -if [[ ${PV} = *9999* ]]; then
658 - # Docker cannot be fetched via "go get", thanks to autogenerated code
659 - EGIT_REPO_URI="https://${EGO_PN}.git"
660 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
661 - inherit git-r3
662 -else
663 - DOCKER_GITCOMMIT="c38f3f8"
664 - GIT_COMMIT="c38f3f8cb20a779ef83b05ccdc7368db938219cf"
665 - SRC_URI="https://${EGO_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
666 - KEYWORDS="~amd64 ~arm ~arm64"
667 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
668 - inherit golang-vcs-snapshot
669 -fi
670 -inherit bash-completion-r1 golang-base linux-info systemd udev user
671 -
672 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
673 -HOMEPAGE="https://dockerproject.org"
674 -LICENSE="Apache-2.0"
675 -SLOT="0"
676 -IUSE="apparmor aufs btrfs +container-init device-mapper hardened +overlay pkcs11 seccomp"
677 -
678 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
679 -CDEPEND="
680 - >=dev-db/sqlite-3.7.9:3
681 - device-mapper? (
682 - >=sys-fs/lvm2-2.02.89[thin]
683 - )
684 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
685 - apparmor? ( sys-libs/libapparmor )
686 -"
687 -
688 -DEPEND="
689 - ${CDEPEND}
690 -
691 - dev-go/go-md2man
692 -
693 - btrfs? (
694 - >=sys-fs/btrfs-progs-3.16.1
695 - )
696 -"
697 -
698 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
699 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
700 -RDEPEND="
701 - ${CDEPEND}
702 - >=net-firewall/iptables-1.4
703 - sys-process/procps
704 - >=dev-vcs/git-1.7
705 - >=app-arch/xz-utils-4.9
706 - dev-libs/libltdl
707 - ~app-emulation/containerd-1.2.5
708 - ~app-emulation/runc-1.0.0_rc6_p20190216[apparmor?,seccomp?]
709 - ~app-emulation/docker-proxy-0.8.0_p20190513
710 - container-init? ( >=sys-process/tini-0.18.0[static] )
711 -"
712 -
713 -RESTRICT="installsources strip"
714 -
715 -S="${WORKDIR}/${P}/src/${EGO_PN}"
716 -
717 -# see "contrib/check-config.sh" from upstream's sources
718 -CONFIG_CHECK="
719 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
720 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
721 - ~KEYS
722 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
723 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
724 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
725 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
726 - ~POSIX_MQUEUE
727 -
728 - ~USER_NS
729 - ~SECCOMP
730 - ~CGROUP_PIDS
731 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
732 -
733 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
734 - ~CGROUP_PERF
735 - ~CGROUP_HUGETLB
736 - ~NET_CLS_CGROUP
737 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
738 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
739 -
740 - ~VXLAN
741 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
742 - ~IPVLAN
743 - ~MACVLAN ~DUMMY
744 -"
745 -
746 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
747 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
748 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
749 -
750 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
751 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
752 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
753 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
754 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
755 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
756 -
757 -pkg_setup() {
758 - if kernel_is lt 3 10; then
759 - ewarn ""
760 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
761 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
762 - fi
763 -
764 - if kernel_is le 3 18; then
765 - CONFIG_CHECK+="
766 - ~RESOURCE_COUNTERS
767 - "
768 - fi
769 -
770 - if kernel_is le 3 13; then
771 - CONFIG_CHECK+="
772 - ~NETPRIO_CGROUP
773 - "
774 - else
775 - CONFIG_CHECK+="
776 - ~CGROUP_NET_PRIO
777 - "
778 - fi
779 -
780 - if kernel_is lt 4 5; then
781 - CONFIG_CHECK+="
782 - ~MEMCG_KMEM
783 - "
784 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
785 - fi
786 -
787 - if kernel_is lt 4 7; then
788 - CONFIG_CHECK+="
789 - ~DEVPTS_MULTIPLE_INSTANCES
790 - "
791 - fi
792 -
793 - if use aufs; then
794 - CONFIG_CHECK+="
795 - ~AUFS_FS
796 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
797 - "
798 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
799 - fi
800 -
801 - if use btrfs; then
802 - CONFIG_CHECK+="
803 - ~BTRFS_FS
804 - ~BTRFS_FS_POSIX_ACL
805 - "
806 - fi
807 -
808 - if use device-mapper; then
809 - CONFIG_CHECK+="
810 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
811 - "
812 - fi
813 -
814 - if use overlay; then
815 - CONFIG_CHECK+="
816 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
817 - "
818 - fi
819 -
820 - linux-info_pkg_setup
821 -
822 - # create docker group for the code checking for it in /etc/group
823 - enewgroup docker
824 -}
825 -
826 -src_compile() {
827 - export GOPATH="${WORKDIR}/${P}"
828 -
829 - # setup CFLAGS and LDFLAGS for separate build target
830 - # see https://github.com/tianon/docker-overlay/pull/10
831 - export CGO_CFLAGS="-I${ROOT}/usr/include"
832 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
833 -
834 - # if we're building from a tarball, we need the GITCOMMIT value
835 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
836 -
837 - # fake golang layout
838 - ln -s docker-ce/components/engine ../docker || die
839 - ln -s docker-ce/components/cli ../cli || die
840 -
841 - # let's set up some optional features :)
842 - export DOCKER_BUILDTAGS=''
843 - for gd in aufs btrfs device-mapper overlay; do
844 - if ! use $gd; then
845 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
846 - fi
847 - done
848 -
849 - for tag in apparmor pkcs11 seccomp; do
850 - if use $tag; then
851 - DOCKER_BUILDTAGS+=" $tag"
852 - fi
853 - done
854 -
855 - pushd components/engine || die
856 -
857 - if use hardened; then
858 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
859 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
860 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
861 - -i hack/make/dynbinary-daemon || die
862 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
863 - fi
864 -
865 - # build daemon
866 - VERSION="$(cat ../../VERSION)" \
867 - ./hack/make.sh dynbinary || die 'dynbinary failed'
868 -
869 - popd || die # components/engine
870 -
871 - pushd components/cli || die
872 -
873 - # build cli
874 - emake \
875 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
876 - VERSION="$(cat ../../VERSION)" \
877 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
878 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
879 - dynbinary || die
880 -
881 - # build man pages
882 - go build -o gen-manpages github.com/docker/cli/man || die
883 - ./gen-manpages --root . --target ./man/man1 || die
884 - ./man/md2man-all.sh -q || die
885 - rm gen-manpages || die
886 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
887 -
888 - popd || die # components/cli
889 -}
890 -
891 -src_install() {
892 - dosym containerd /usr/bin/docker-containerd
893 - dosym containerd-shim /usr/bin/docker-containerd-shim
894 - dosym runc /usr/bin/docker-runc
895 - use container-init && dosym tini /usr/bin/docker-init
896 -
897 - pushd components/engine || die
898 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
899 -
900 - newinitd contrib/init/openrc/docker.initd docker
901 - newconfd contrib/init/openrc/docker.confd docker
902 -
903 - systemd_dounit contrib/init/systemd/docker.{service,socket}
904 -
905 - udev_dorules contrib/udev/*.rules
906 -
907 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
908 - dodoc -r docs/*
909 -
910 - insinto /usr/share/vim/vimfiles
911 - doins -r contrib/syntax/vim/ftdetect
912 - doins -r contrib/syntax/vim/syntax
913 -
914 - # note: intentionally not using "doins" so that we preserve +x bits
915 - dodir /usr/share/${PN}/contrib
916 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
917 - popd || die # components/engine
918 -
919 - pushd components/cli || die
920 -
921 - newbin build/docker-* docker
922 -
923 - doman man/man*/*
924 -
925 - dobashcomp contrib/completion/bash/*
926 - insinto /usr/share/fish/vendor_completions.d/
927 - doins contrib/completion/fish/docker.fish
928 - insinto /usr/share/zsh/site-functions
929 - doins contrib/completion/zsh/_*
930 - popd || die # components/cli
931 -}
932 -
933 -pkg_postinst() {
934 - udev_reload
935 -
936 - elog
937 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
938 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
939 - elog " rc-update add docker default"
940 - elog "Similarly for systemd:"
941 - elog " systemctl enable docker.service"
942 - elog
943 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
944 - elog " usermod -aG docker youruser"
945 - elog
946 -
947 - elog " Devicemapper storage driver has been deprecated"
948 - elog " It will be removed in a future release"
949 -}
950
951 diff --git a/app-emulation/docker/docker-18.09.7_rc1.ebuild b/app-emulation/docker/docker-18.09.7_rc1.ebuild
952 deleted file mode 100644
953 index 445bb43dc5a..00000000000
954 --- a/app-emulation/docker/docker-18.09.7_rc1.ebuild
955 +++ /dev/null
956 @@ -1,300 +0,0 @@
957 -# Copyright 1999-2019 Gentoo Authors
958 -# Distributed under the terms of the GNU General Public License v2
959 -
960 -EAPI=6
961 -
962 -EGO_PN="github.com/docker/docker-ce"
963 -
964 -if [[ ${PV} = *9999* ]]; then
965 - # Docker cannot be fetched via "go get", thanks to autogenerated code
966 - EGIT_REPO_URI="https://${EGO_PN}.git"
967 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
968 - inherit git-r3
969 -else
970 - DOCKER_GITCOMMIT="e97b22c"
971 - MY_PV=${PV/_/-}
972 - SRC_URI="https://${EGO_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
973 - KEYWORDS="~amd64 ~arm ~arm64"
974 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
975 - inherit golang-vcs-snapshot
976 -fi
977 -inherit bash-completion-r1 golang-base linux-info systemd udev user
978 -
979 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
980 -HOMEPAGE="https://dockerproject.org"
981 -LICENSE="Apache-2.0"
982 -SLOT="0"
983 -IUSE="apparmor aufs btrfs +container-init device-mapper hardened +overlay pkcs11 seccomp"
984 -
985 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
986 -CDEPEND="
987 - >=dev-db/sqlite-3.7.9:3
988 - device-mapper? (
989 - >=sys-fs/lvm2-2.02.89[thin]
990 - )
991 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
992 - apparmor? ( sys-libs/libapparmor )
993 -"
994 -
995 -DEPEND="
996 - ${CDEPEND}
997 -
998 - dev-go/go-md2man
999 -
1000 - btrfs? (
1001 - >=sys-fs/btrfs-progs-3.16.1
1002 - )
1003 -"
1004 -
1005 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
1006 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
1007 -RDEPEND="
1008 - ${CDEPEND}
1009 - >=net-firewall/iptables-1.4
1010 - sys-process/procps
1011 - >=dev-vcs/git-1.7
1012 - >=app-arch/xz-utils-4.9
1013 - dev-libs/libltdl
1014 - ~app-emulation/containerd-1.2.6
1015 - ~app-emulation/runc-1.0.0_rc8[apparmor?,seccomp?]
1016 - ~app-emulation/docker-proxy-0.8.0_p20190513
1017 - container-init? ( >=sys-process/tini-0.18.0[static] )
1018 -"
1019 -
1020 -RESTRICT="installsources strip"
1021 -
1022 -S="${WORKDIR}/${P}/src/${EGO_PN}"
1023 -
1024 -# see "contrib/check-config.sh" from upstream's sources
1025 -CONFIG_CHECK="
1026 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
1027 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
1028 - ~KEYS
1029 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
1030 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
1031 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
1032 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
1033 - ~POSIX_MQUEUE
1034 -
1035 - ~USER_NS
1036 - ~SECCOMP
1037 - ~CGROUP_PIDS
1038 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
1039 -
1040 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
1041 - ~CGROUP_PERF
1042 - ~CGROUP_HUGETLB
1043 - ~NET_CLS_CGROUP
1044 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
1045 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
1046 -
1047 - ~VXLAN
1048 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
1049 - ~IPVLAN
1050 - ~MACVLAN ~DUMMY
1051 -"
1052 -
1053 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
1054 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
1055 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
1056 -
1057 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
1058 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
1059 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
1060 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
1061 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
1062 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
1063 -
1064 -pkg_setup() {
1065 - if kernel_is lt 3 10; then
1066 - ewarn ""
1067 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
1068 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
1069 - fi
1070 -
1071 - if kernel_is le 3 18; then
1072 - CONFIG_CHECK+="
1073 - ~RESOURCE_COUNTERS
1074 - "
1075 - fi
1076 -
1077 - if kernel_is le 3 13; then
1078 - CONFIG_CHECK+="
1079 - ~NETPRIO_CGROUP
1080 - "
1081 - else
1082 - CONFIG_CHECK+="
1083 - ~CGROUP_NET_PRIO
1084 - "
1085 - fi
1086 -
1087 - if kernel_is lt 4 5; then
1088 - CONFIG_CHECK+="
1089 - ~MEMCG_KMEM
1090 - "
1091 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
1092 - fi
1093 -
1094 - if kernel_is lt 4 7; then
1095 - CONFIG_CHECK+="
1096 - ~DEVPTS_MULTIPLE_INSTANCES
1097 - "
1098 - fi
1099 -
1100 - if use aufs; then
1101 - CONFIG_CHECK+="
1102 - ~AUFS_FS
1103 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
1104 - "
1105 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
1106 - fi
1107 -
1108 - if use btrfs; then
1109 - CONFIG_CHECK+="
1110 - ~BTRFS_FS
1111 - ~BTRFS_FS_POSIX_ACL
1112 - "
1113 - fi
1114 -
1115 - if use device-mapper; then
1116 - CONFIG_CHECK+="
1117 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
1118 - "
1119 - fi
1120 -
1121 - if use overlay; then
1122 - CONFIG_CHECK+="
1123 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
1124 - "
1125 - fi
1126 -
1127 - linux-info_pkg_setup
1128 -
1129 - # create docker group for the code checking for it in /etc/group
1130 - enewgroup docker
1131 -}
1132 -
1133 -src_compile() {
1134 - export GOPATH="${WORKDIR}/${P}"
1135 -
1136 - # setup CFLAGS and LDFLAGS for separate build target
1137 - # see https://github.com/tianon/docker-overlay/pull/10
1138 - export CGO_CFLAGS="-I${ROOT}/usr/include"
1139 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
1140 -
1141 - # if we're building from a tarball, we need the GITCOMMIT value
1142 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
1143 -
1144 - # fake golang layout
1145 - ln -s docker-ce/components/engine ../docker || die
1146 - ln -s docker-ce/components/cli ../cli || die
1147 -
1148 - # let's set up some optional features :)
1149 - export DOCKER_BUILDTAGS=''
1150 - for gd in aufs btrfs device-mapper overlay; do
1151 - if ! use $gd; then
1152 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
1153 - fi
1154 - done
1155 -
1156 - for tag in apparmor pkcs11 seccomp; do
1157 - if use $tag; then
1158 - DOCKER_BUILDTAGS+=" $tag"
1159 - fi
1160 - done
1161 -
1162 - pushd components/engine || die
1163 -
1164 - if use hardened; then
1165 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
1166 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
1167 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
1168 - -i hack/make/dynbinary-daemon || die
1169 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
1170 - fi
1171 -
1172 - # build daemon
1173 - VERSION="$(cat ../../VERSION)" \
1174 - ./hack/make.sh dynbinary || die 'dynbinary failed'
1175 -
1176 - popd || die # components/engine
1177 -
1178 - pushd components/cli || die
1179 -
1180 - # build cli
1181 - emake \
1182 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
1183 - VERSION="$(cat ../../VERSION)" \
1184 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
1185 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
1186 - dynbinary || die
1187 -
1188 - # build man pages
1189 - go build -o gen-manpages github.com/docker/cli/man || die
1190 - ./gen-manpages --root . --target ./man/man1 || die
1191 - ./man/md2man-all.sh -q || die
1192 - rm gen-manpages || die
1193 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
1194 -
1195 - popd || die # components/cli
1196 -}
1197 -
1198 -src_install() {
1199 - dosym containerd /usr/bin/docker-containerd
1200 - dosym containerd-shim /usr/bin/docker-containerd-shim
1201 - dosym runc /usr/bin/docker-runc
1202 - use container-init && dosym tini /usr/bin/docker-init
1203 -
1204 - pushd components/engine || die
1205 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
1206 -
1207 - newinitd contrib/init/openrc/docker.initd docker
1208 - newconfd contrib/init/openrc/docker.confd docker
1209 -
1210 - systemd_dounit contrib/init/systemd/docker.{service,socket}
1211 -
1212 - udev_dorules contrib/udev/*.rules
1213 -
1214 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
1215 - dodoc -r docs/*
1216 -
1217 - insinto /usr/share/vim/vimfiles
1218 - doins -r contrib/syntax/vim/ftdetect
1219 - doins -r contrib/syntax/vim/syntax
1220 -
1221 - # note: intentionally not using "doins" so that we preserve +x bits
1222 - dodir /usr/share/${PN}/contrib
1223 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
1224 - popd || die # components/engine
1225 -
1226 - pushd components/cli || die
1227 -
1228 - newbin build/docker-* docker
1229 -
1230 - doman man/man*/*
1231 -
1232 - dobashcomp contrib/completion/bash/*
1233 - insinto /usr/share/fish/vendor_completions.d/
1234 - doins contrib/completion/fish/docker.fish
1235 - insinto /usr/share/zsh/site-functions
1236 - doins contrib/completion/zsh/_*
1237 - popd || die # components/cli
1238 -}
1239 -
1240 -pkg_postinst() {
1241 - udev_reload
1242 -
1243 - elog
1244 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
1245 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
1246 - elog " rc-update add docker default"
1247 - elog "Similarly for systemd:"
1248 - elog " systemctl enable docker.service"
1249 - elog
1250 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
1251 - elog " usermod -aG docker youruser"
1252 - elog
1253 -
1254 - elog " Devicemapper storage driver has been deprecated"
1255 - elog " It will be removed in a future release"
1256 -}
1257
1258 diff --git a/app-emulation/docker/metadata.xml b/app-emulation/docker/metadata.xml
1259 index 16f7009d5ea..78d4e39af19 100644
1260 --- a/app-emulation/docker/metadata.xml
1261 +++ b/app-emulation/docker/metadata.xml
1262 @@ -44,9 +44,6 @@
1263 Enables dependencies for the "overlay" graph driver, including
1264 necessary kernel flags.
1265 </flag>
1266 - <flag name="pkcs11">
1267 - Enables pkcs-11 support.
1268 - </flag>
1269 </use>
1270 <upstream>
1271 <remote-id type="github">docker/docker</remote-id>