1 |
commit: 3ee303c459a5d961d7da2d3bafa48f99d61b60c1 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 22:30:49 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 22:41:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ee303c4 |
7 |
|
8 |
app-emulation/docker: remove 1.12.0_rc1 since it is broken |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-emulation/docker/docker-1.12.0_rc2.ebuild | 270 -------------------------- |
13 |
1 file changed, 270 deletions(-) |
14 |
|
15 |
diff --git a/app-emulation/docker/docker-1.12.0_rc2.ebuild b/app-emulation/docker/docker-1.12.0_rc2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 0667345..0000000 |
18 |
--- a/app-emulation/docker/docker-1.12.0_rc2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,270 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-EGO_PN="github.com/docker/docker" |
28 |
- |
29 |
-if [[ ${PV} = *9999* ]]; then |
30 |
- # Docker cannot be fetched via "go get", thanks to autogenerated code |
31 |
- EGIT_REPO_URI="https://${EGO_PN}.git" |
32 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}" |
33 |
- inherit git-r3 |
34 |
-else |
35 |
- MY_PV="${PV/_/-}" |
36 |
- DOCKER_GITCOMMIT="906eacd" |
37 |
- EGIT_COMMIT="v${MY_PV}" |
38 |
- SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
39 |
- KEYWORDS="~amd64" |
40 |
- [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!" |
41 |
- inherit golang-vcs-snapshot |
42 |
-fi |
43 |
-inherit bash-completion-r1 golang-base linux-info systemd udev user |
44 |
- |
45 |
-DESCRIPTION="The core functions you need to create Docker images and run Docker containers" |
46 |
-HOMEPAGE="https://dockerproject.org" |
47 |
-LICENSE="Apache-2.0" |
48 |
-SLOT="0" |
49 |
-IUSE="apparmor aufs btrfs +device-mapper experimental overlay seccomp" |
50 |
- |
51 |
-# https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#build-dependencies |
52 |
-CDEPEND=" |
53 |
- >=dev-db/sqlite-3.7.9:3 |
54 |
- device-mapper? ( |
55 |
- >=sys-fs/lvm2-2.02.89[thin] |
56 |
- ) |
57 |
- seccomp? ( >=sys-libs/libseccomp-2.2.1 ) |
58 |
- apparmor? ( sys-libs/libapparmor ) |
59 |
-" |
60 |
- |
61 |
-DEPEND=" |
62 |
- ${CDEPEND} |
63 |
- |
64 |
- dev-go/go-md2man |
65 |
- |
66 |
- btrfs? ( |
67 |
- >=sys-fs/btrfs-progs-3.8 |
68 |
- ) |
69 |
-" |
70 |
- |
71 |
-# https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#runtime-dependencies |
72 |
-# https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#optional-dependencies |
73 |
-RDEPEND=" |
74 |
- ${CDEPEND} |
75 |
- |
76 |
- !app-emulation/docker-bin |
77 |
- >=net-firewall/iptables-1.4 |
78 |
- sys-process/procps |
79 |
- >=dev-vcs/git-1.7 |
80 |
- >=app-arch/xz-utils-4.9 |
81 |
- |
82 |
- >app-emulation/containerd-0.2.2 |
83 |
- app-emulation/runc[apparmor?,seccomp?] |
84 |
-" |
85 |
- |
86 |
-RESTRICT="installsources strip" |
87 |
- |
88 |
-# see "contrib/check-config.sh" from upstream's sources |
89 |
-CONFIG_CHECK=" |
90 |
- ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS |
91 |
- ~DEVPTS_MULTIPLE_INSTANCES |
92 |
- ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG |
93 |
- ~KEYS ~MACVLAN ~VETH ~BRIDGE ~BRIDGE_NETFILTER |
94 |
- ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE |
95 |
- ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK |
96 |
- ~NF_NAT ~NF_NAT_NEEDED |
97 |
- |
98 |
- ~POSIX_MQUEUE |
99 |
- |
100 |
- ~MEMCG_KMEM ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED |
101 |
- |
102 |
- ~BLK_CGROUP ~IOSCHED_CFQ |
103 |
- ~CGROUP_PERF |
104 |
- ~CGROUP_HUGETLB |
105 |
- ~NET_CLS_CGROUP |
106 |
- ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED |
107 |
-" |
108 |
- |
109 |
-ERROR_KEYS="CONFIG_KEYS: is mandatory" |
110 |
-ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional" |
111 |
-ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers" |
112 |
-ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering" |
113 |
- |
114 |
-ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering" |
115 |
-ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering" |
116 |
-ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering" |
117 |
-ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering" |
118 |
- |
119 |
-pkg_setup() { |
120 |
- if kernel_is lt 3 10; then |
121 |
- ewarn "" |
122 |
- ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported." |
123 |
- ewarn " - http://docs.docker.com/installation/binaries/#check-kernel-dependencies" |
124 |
- fi |
125 |
- |
126 |
- # for where these kernel versions come from, see: |
127 |
- # https://www.google.com/search?q=945b2b2d259d1a4364a2799e80e8ff32f8c6ee6f+site%3Akernel.org%2Fpub%2Flinux%2Fkernel+file%3AChangeLog* |
128 |
- if ! { |
129 |
- kernel_is ge 3 16 \ |
130 |
- || { kernel_is 3 15 && kernel_is ge 3 15 5; } \ |
131 |
- || { kernel_is 3 14 && kernel_is ge 3 14 12; } \ |
132 |
- || { kernel_is 3 12 && kernel_is ge 3 12 25; } |
133 |
- }; then |
134 |
- ewarn "" |
135 |
- ewarn "There is a serious Docker-related kernel panic that has been fixed in 3.16+" |
136 |
- ewarn " (and was backported to 3.15.5+, 3.14.12+, and 3.12.25+)" |
137 |
- ewarn "" |
138 |
- ewarn "See also https://github.com/docker/docker/issues/2960" |
139 |
- fi |
140 |
- |
141 |
- if kernel_is le 3 18; then |
142 |
- CONFIG_CHECK+=" |
143 |
- ~RESOURCE_COUNTERS |
144 |
- " |
145 |
- fi |
146 |
- |
147 |
- if kernel_is le 3 13; then |
148 |
- CONFIG_CHECK+=" |
149 |
- ~NETPRIO_CGROUP |
150 |
- " |
151 |
- else |
152 |
- CONFIG_CHECK+=" |
153 |
- ~CGROUP_NET_PRIO |
154 |
- " |
155 |
- fi |
156 |
- |
157 |
- if use aufs; then |
158 |
- CONFIG_CHECK+=" |
159 |
- ~AUFS_FS |
160 |
- ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY |
161 |
- " |
162 |
- ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3" |
163 |
- fi |
164 |
- |
165 |
- if use btrfs; then |
166 |
- CONFIG_CHECK+=" |
167 |
- ~BTRFS_FS |
168 |
- " |
169 |
- fi |
170 |
- |
171 |
- if use device-mapper; then |
172 |
- CONFIG_CHECK+=" |
173 |
- ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY |
174 |
- " |
175 |
- fi |
176 |
- |
177 |
- if use overlay; then |
178 |
- CONFIG_CHECK+=" |
179 |
- ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL |
180 |
- " |
181 |
- fi |
182 |
- |
183 |
- linux-info_pkg_setup |
184 |
- |
185 |
- # create docker group for the code checking for it in /etc/group |
186 |
- enewgroup docker |
187 |
-} |
188 |
- |
189 |
-src_prepare() { |
190 |
- cd "src/${EGO_PN}" || die |
191 |
- sed -i 's/docker-containerd/containerd/g; s/docker-runc/runc/g' libcontainerd/remote_linux.go |
192 |
- # allow user patches (use sparingly - upstream won't support them) |
193 |
- cd - |
194 |
- eapply_user |
195 |
-} |
196 |
- |
197 |
-src_compile() { |
198 |
- cd "src/${EGO_PN}" || die |
199 |
- export GOPATH="${WORKDIR}/${P}:${PWD}/vendor" |
200 |
- |
201 |
- # setup CFLAGS and LDFLAGS for separate build target |
202 |
- # see https://github.com/tianon/docker-overlay/pull/10 |
203 |
- export CGO_CFLAGS="-I${ROOT}/usr/include" |
204 |
- export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)" |
205 |
- |
206 |
- # if we're building from a zip, we need the GITCOMMIT value |
207 |
- [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT |
208 |
- |
209 |
- if gcc-specs-pie; then |
210 |
- sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die |
211 |
- grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed' |
212 |
- |
213 |
- sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \ |
214 |
- -i hack/make/dynbinary || die |
215 |
- grep -q -- '-fno-PIC' hack/make/dynbinary || die 'hardened sed failed' |
216 |
- fi |
217 |
- |
218 |
- # let's set up some optional features :) |
219 |
- export DOCKER_BUILDTAGS='' |
220 |
- for gd in aufs btrfs device-mapper overlay; do |
221 |
- if ! use $gd; then |
222 |
- DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}" |
223 |
- fi |
224 |
- done |
225 |
- |
226 |
- for tag in apparmor seccomp; do |
227 |
- if use $tag; then |
228 |
- DOCKER_BUILDTAGS+=" $tag" |
229 |
- fi |
230 |
- done |
231 |
- |
232 |
- # https://github.com/docker/docker/pull/13338 |
233 |
- if use experimental; then |
234 |
- export DOCKER_EXPERIMENTAL=1 |
235 |
- else |
236 |
- unset DOCKER_EXPERIMENTAL |
237 |
- fi |
238 |
- |
239 |
- # time to build! |
240 |
- ./hack/make.sh dynbinary || die 'dynbinary failed' |
241 |
- |
242 |
- # build the man pages too |
243 |
- ./man/md2man-all.sh || die "unable to generate man pages" |
244 |
-} |
245 |
- |
246 |
-src_install() { |
247 |
- cd "src/${EGO_PN}" || die |
248 |
- VERSION="$(cat VERSION)" |
249 |
- newbin "bundles/$VERSION/dynbinary-client/docker-$VERSION" docker |
250 |
- newbin "bundles/$VERSION/dynbinary-daemon/dockerd-$VERSION" dockerd |
251 |
- |
252 |
- newinitd contrib/init/openrc/docker.initd docker |
253 |
- newconfd contrib/init/openrc/docker.confd docker |
254 |
- |
255 |
- systemd_dounit contrib/init/systemd/docker.{service,socket} |
256 |
- |
257 |
- udev_dorules contrib/udev/*.rules |
258 |
- |
259 |
- dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md |
260 |
- dodoc -r docs/* |
261 |
- doman man/man*/* |
262 |
- |
263 |
- dobashcomp contrib/completion/bash/* |
264 |
- |
265 |
- insinto /usr/share/zsh/site-functions |
266 |
- doins contrib/completion/zsh/* |
267 |
- |
268 |
- insinto /usr/share/vim/vimfiles |
269 |
- doins -r contrib/syntax/vim/ftdetect |
270 |
- doins -r contrib/syntax/vim/syntax |
271 |
- |
272 |
- # note: intentionally not using "doins" so that we preserve +x bits |
273 |
- mkdir -p "${D}/usr/share/${PN}/contrib" |
274 |
- cp -R contrib/* "${D}/usr/share/${PN}/contrib" |
275 |
-} |
276 |
- |
277 |
-pkg_postinst() { |
278 |
- udev_reload |
279 |
- |
280 |
- elog |
281 |
- elog "To use Docker, the Docker daemon must be running as root. To automatically" |
282 |
- elog "start the Docker daemon at boot, add Docker to the default runlevel:" |
283 |
- elog " rc-update add docker default" |
284 |
- elog "Similarly for systemd:" |
285 |
- elog " systemctl enable docker.service" |
286 |
- elog |
287 |
- elog "To use Docker as a non-root user, add yourself to the 'docker' group:" |
288 |
- elog " usermod -aG docker youruser" |
289 |
- elog |
290 |
-} |