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, 26 Apr 2018 22:19:36
Message-Id: 1524781152.fa7e759da83b18daacac1fc05c3593534a5b815a.mrueg@gentoo
1 commit: fa7e759da83b18daacac1fc05c3593534a5b815a
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 26 22:19:12 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 26 22:19:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa7e759d
7
8 app-emulation/docker: Remove old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 app-emulation/docker/Manifest | 1 -
13 app-emulation/docker/docker-18.03.0-r1.ebuild | 303 --------------------------
14 2 files changed, 304 deletions(-)
15
16 diff --git a/app-emulation/docker/Manifest b/app-emulation/docker/Manifest
17 index 86817abd8a6..af510895b0a 100644
18 --- a/app-emulation/docker/Manifest
19 +++ b/app-emulation/docker/Manifest
20 @@ -1,4 +1,3 @@
21 DIST docker-17.12.1.tar.gz 11046888 BLAKE2B f50236826d8b064023e76a6c23a52c307eada73338d25fcc4fd3448a855f91b0f1d3080408bc9e58102467a9605c54c20080773b46851135566b85ce00f7dfb8 SHA512 ca9c28a489c6c65de27cb64e68c783336e2ddca7e7b2d241e9557a43e62e33146afb644aa67fe92afce658522c02fbe0378b3c1318a32628c1a1a046c67a4fb7
22 -DIST docker-18.03.0.tar.gz 12751925 BLAKE2B ea28cb4904673c8bbc71add57c880db8593ba68afd40f60029f0b509bde4a61cd1c59ac8f12fd9d3a99571ffaf597745187bab47b897170c54bf9b05d67c0983 SHA512 6385d720a58275d3e415c89f6953b64fdf96c2297ea7a86baf8f044530bb55fef40479e8a018055b85fce73f30dfb36a9904ff13bc12acc6ec4b565431145dbe
23 DIST docker-18.03.1.tar.gz 12758590 BLAKE2B 98213af07b945fda536e321ef5cc9e272848aab97dcadb7a6b1433b9310fa78015794b5ee4f255448251366a7811e97248b9cc90b0225c528249188768f344ab SHA512 48c4916421cd500ada1bfc2207123a29870939a15a1c7c4a0c082f61c1e3e063381e2345ee9df645dbaca49e002dbfaba70cf6fe233b39a4e1f44fb015807e10
24 DIST docker-18.04.0.tar.gz 12797074 BLAKE2B b0e646da91f355279a451048da057e5f5a0b74cac7a827a7ba17ddb38dfce2729dd0282f315b214fe513a1d6f2d37f62e3935f7f41fb2fdd1f265b2de5b95516 SHA512 83a8327c714296b769ef258c291d239195459b833c5be635ee29ecbe53597d74f064d398e4b66870e2e30be17c91ea34820fd563b0d089e862b43a4cada4963a
25
26 diff --git a/app-emulation/docker/docker-18.03.0-r1.ebuild b/app-emulation/docker/docker-18.03.0-r1.ebuild
27 deleted file mode 100644
28 index 62b861abdf8..00000000000
29 --- a/app-emulation/docker/docker-18.03.0-r1.ebuild
30 +++ /dev/null
31 @@ -1,303 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -EGO_PN="github.com/docker/docker-ce"
38 -
39 -if [[ ${PV} = *9999* ]]; then
40 - # Docker cannot be fetched via "go get", thanks to autogenerated code
41 - EGIT_REPO_URI="https://${EGO_PN}.git"
42 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
43 - inherit git-r3
44 -else
45 - inherit versionator
46 - if [ "$(get_version_component_count)" = 4 ]; then
47 - MY_PV="$(replace_version_separator 3 '-ce-')"
48 - else
49 - MY_PV="$PV-ce"
50 - fi
51 - DOCKER_GITCOMMIT="0520e24"
52 - EGIT_COMMIT="v${MY_PV}"
53 - SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
54 - KEYWORDS="~amd64 ~arm"
55 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
56 - inherit golang-vcs-snapshot
57 -fi
58 -inherit bash-completion-r1 golang-base linux-info systemd udev user
59 -
60 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
61 -HOMEPAGE="https://dockerproject.org"
62 -LICENSE="Apache-2.0"
63 -SLOT="0"
64 -IUSE="apparmor aufs btrfs +container-init +device-mapper hardened +overlay pkcs11 seccomp"
65 -
66 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
67 -CDEPEND="
68 - >=dev-db/sqlite-3.7.9:3
69 - device-mapper? (
70 - >=sys-fs/lvm2-2.02.89[thin]
71 - )
72 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
73 - apparmor? ( sys-libs/libapparmor )
74 -"
75 -
76 -DEPEND="
77 - ${CDEPEND}
78 -
79 - dev-go/go-md2man
80 -
81 - btrfs? (
82 - >=sys-fs/btrfs-progs-3.16.1
83 - )
84 -"
85 -
86 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
87 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
88 -RDEPEND="
89 - ${CDEPEND}
90 - >=net-firewall/iptables-1.4
91 - sys-process/procps
92 - >=dev-vcs/git-1.7
93 - >=app-arch/xz-utils-4.9
94 - dev-libs/libltdl
95 - ~app-emulation/containerd-1.0.2
96 - ~app-emulation/runc-1.0.0_rc5[apparmor?,seccomp?]
97 - ~app-emulation/docker-proxy-0.8.0_p20180314
98 - container-init? ( >=sys-process/tini-0.16.1[static] )
99 -"
100 -
101 -RESTRICT="installsources strip"
102 -
103 -S="${WORKDIR}/${P}/src/${EGO_PN}"
104 -
105 -PATCHES=( "${FILESDIR}"/bsc1073877-docker-apparmor-add-signal.patch )
106 -
107 -# see "contrib/check-config.sh" from upstream's sources
108 -CONFIG_CHECK="
109 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
110 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
111 - ~KEYS
112 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
113 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
114 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
115 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
116 - ~POSIX_MQUEUE
117 -
118 - ~USER_NS
119 - ~SECCOMP
120 - ~CGROUP_PIDS
121 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
122 -
123 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
124 - ~CGROUP_PERF
125 - ~CGROUP_HUGETLB
126 - ~NET_CLS_CGROUP
127 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
128 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
129 -
130 - ~VXLAN
131 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
132 - ~IPVLAN
133 - ~MACVLAN ~DUMMY
134 -"
135 -
136 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
137 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
138 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
139 -
140 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
141 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
142 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
143 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
144 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
145 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
146 -
147 -pkg_setup() {
148 - if kernel_is lt 3 10; then
149 - ewarn ""
150 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
151 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
152 - fi
153 -
154 - if kernel_is le 3 18; then
155 - CONFIG_CHECK+="
156 - ~RESOURCE_COUNTERS
157 - "
158 - fi
159 -
160 - if kernel_is le 3 13; then
161 - CONFIG_CHECK+="
162 - ~NETPRIO_CGROUP
163 - "
164 - else
165 - CONFIG_CHECK+="
166 - ~CGROUP_NET_PRIO
167 - "
168 - fi
169 -
170 - if kernel_is lt 4 5; then
171 - CONFIG_CHECK+="
172 - ~MEMCG_KMEM
173 - "
174 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
175 - fi
176 -
177 - if kernel_is lt 4 7; then
178 - CONFIG_CHECK+="
179 - ~DEVPTS_MULTIPLE_INSTANCES
180 - "
181 - fi
182 -
183 - if use aufs; then
184 - CONFIG_CHECK+="
185 - ~AUFS_FS
186 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
187 - "
188 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
189 - fi
190 -
191 - if use btrfs; then
192 - CONFIG_CHECK+="
193 - ~BTRFS_FS
194 - ~BTRFS_FS_POSIX_ACL
195 - "
196 - fi
197 -
198 - if use device-mapper; then
199 - CONFIG_CHECK+="
200 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
201 - "
202 - fi
203 -
204 - if use overlay; then
205 - CONFIG_CHECK+="
206 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
207 - "
208 - fi
209 -
210 - linux-info_pkg_setup
211 -
212 - # create docker group for the code checking for it in /etc/group
213 - enewgroup docker
214 -}
215 -
216 -src_compile() {
217 - export GOPATH="${WORKDIR}/${P}"
218 -
219 - # setup CFLAGS and LDFLAGS for separate build target
220 - # see https://github.com/tianon/docker-overlay/pull/10
221 - export CGO_CFLAGS="-I${ROOT}/usr/include"
222 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
223 -
224 - # if we're building from a tarball, we need the GITCOMMIT value
225 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
226 -
227 - # fake golang layout
228 - ln -s docker-ce/components/engine ../docker || die
229 - ln -s docker-ce/components/cli ../cli || die
230 -
231 - # let's set up some optional features :)
232 - export DOCKER_BUILDTAGS=''
233 - for gd in aufs btrfs device-mapper overlay; do
234 - if ! use $gd; then
235 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
236 - fi
237 - done
238 -
239 - for tag in apparmor pkcs11 seccomp; do
240 - if use $tag; then
241 - DOCKER_BUILDTAGS+=" $tag"
242 - fi
243 - done
244 -
245 - pushd components/engine || die
246 -
247 - if use hardened; then
248 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
249 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
250 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
251 - -i hack/make/dynbinary-daemon || die
252 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
253 - fi
254 -
255 - # build daemon
256 - VERSION="$(cat ../../VERSION)" \
257 - ./hack/make.sh dynbinary || die 'dynbinary failed'
258 -
259 - popd || die # components/engine
260 -
261 - pushd components/cli || die
262 -
263 - # build cli
264 - emake \
265 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
266 - VERSION="$(cat ../../VERSION)" \
267 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
268 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
269 - dynbinary || die
270 -
271 - # build man pages
272 - go build -o gen-manpages github.com/docker/cli/man || die
273 - ./gen-manpages --root . --target ./man/man1 || die
274 - ./man/md2man-all.sh -q || die
275 - rm gen-manpages || die
276 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
277 -
278 - popd || die # components/cli
279 -}
280 -
281 -src_install() {
282 - dosym containerd /usr/bin/docker-containerd
283 - dosym containerd-shim /usr/bin/docker-containerd-shim
284 - dosym runc /usr/bin/docker-runc
285 - use container-init && dosym tini /usr/bin/docker-init
286 -
287 - pushd components/engine || die
288 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
289 -
290 - newinitd contrib/init/openrc/docker.initd docker
291 - newconfd contrib/init/openrc/docker.confd docker
292 -
293 - systemd_dounit contrib/init/systemd/docker.{service,socket}
294 -
295 - udev_dorules contrib/udev/*.rules
296 -
297 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
298 - dodoc -r docs/*
299 -
300 - insinto /usr/share/vim/vimfiles
301 - doins -r contrib/syntax/vim/ftdetect
302 - doins -r contrib/syntax/vim/syntax
303 -
304 - # note: intentionally not using "doins" so that we preserve +x bits
305 - dodir /usr/share/${PN}/contrib
306 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
307 - popd || die # components/engine
308 -
309 - pushd components/cli || die
310 -
311 - newbin build/docker-* docker
312 -
313 - doman man/man*/*
314 -
315 - dobashcomp contrib/completion/bash/*
316 - insinto /usr/share/zsh/site-functions
317 - doins contrib/completion/zsh/_*
318 - popd || die # components/cli
319 -}
320 -
321 -pkg_postinst() {
322 - udev_reload
323 -
324 - elog
325 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
326 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
327 - elog " rc-update add docker default"
328 - elog "Similarly for systemd:"
329 - elog " systemctl enable docker.service"
330 - elog
331 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
332 - elog " usermod -aG docker youruser"
333 - elog
334 -}