1 |
commit: d9156b4a95e28ded66a9425a7d940e444060c2f5 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 19:40:23 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 22:24:23 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9156b4a |
7 |
|
8 |
app-emulation/docker: live ebuild updates based on upstream |
9 |
|
10 |
- use symlinks for docker-runc and docker-containerd instead of patching |
11 |
- add kernel checks for CONFIG_IP_VS, CONFIG_XFRM_ALGO and CONFIG_XFRM_USER |
12 |
|
13 |
Package-Manager: portage-2.2.28 |
14 |
|
15 |
app-emulation/docker/docker-9999.ebuild | 14 ++++++-------- |
16 |
1 file changed, 6 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/docker/docker-9999.ebuild b/app-emulation/docker/docker-9999.ebuild |
19 |
index 0667345..408fee5 100644 |
20 |
--- a/app-emulation/docker/docker-9999.ebuild |
21 |
+++ b/app-emulation/docker/docker-9999.ebuild |
22 |
@@ -72,6 +72,7 @@ CONFIG_CHECK=" |
23 |
~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG |
24 |
~KEYS ~MACVLAN ~VETH ~BRIDGE ~BRIDGE_NETFILTER |
25 |
~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE |
26 |
+ ~IP_VS |
27 |
~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK |
28 |
~NF_NAT ~NF_NAT_NEEDED |
29 |
|
30 |
@@ -84,6 +85,7 @@ CONFIG_CHECK=" |
31 |
~CGROUP_HUGETLB |
32 |
~NET_CLS_CGROUP |
33 |
~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED |
34 |
+ ~XFRM_ALGO ~XFRM_USER |
35 |
" |
36 |
|
37 |
ERROR_KEYS="CONFIG_KEYS: is mandatory" |
38 |
@@ -95,6 +97,8 @@ ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gather |
39 |
ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering" |
40 |
ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering" |
41 |
ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering" |
42 |
+ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks" |
43 |
+ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks" |
44 |
|
45 |
pkg_setup() { |
46 |
if kernel_is lt 3 10; then |
47 |
@@ -166,14 +170,6 @@ pkg_setup() { |
48 |
enewgroup docker |
49 |
} |
50 |
|
51 |
-src_prepare() { |
52 |
- cd "src/${EGO_PN}" || die |
53 |
- sed -i 's/docker-containerd/containerd/g; s/docker-runc/runc/g' libcontainerd/remote_linux.go |
54 |
- # allow user patches (use sparingly - upstream won't support them) |
55 |
- cd - |
56 |
- eapply_user |
57 |
-} |
58 |
- |
59 |
src_compile() { |
60 |
cd "src/${EGO_PN}" || die |
61 |
export GOPATH="${WORKDIR}/${P}:${PWD}/vendor" |
62 |
@@ -228,6 +224,8 @@ src_install() { |
63 |
VERSION="$(cat VERSION)" |
64 |
newbin "bundles/$VERSION/dynbinary-client/docker-$VERSION" docker |
65 |
newbin "bundles/$VERSION/dynbinary-daemon/dockerd-$VERSION" dockerd |
66 |
+ dosym containerd /usr/bin/docker-containerd |
67 |
+ dosym runc /usr/bin/docker-runc |
68 |
|
69 |
newinitd contrib/init/openrc/docker.initd docker |
70 |
newconfd contrib/init/openrc/docker.confd docker |