Gentoo Archives: gentoo-commits

From: "Greg Kroah-Hartman (gregkh)" <gregkh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/docker: docker-0.6.7.ebuild ChangeLog
Date: Sat, 23 Nov 2013 23:13:40
Message-Id: 20131123231328.AA8732004B@flycatcher.gentoo.org
1 gregkh 13/11/23 23:13:28
2
3 Modified: ChangeLog
4 Added: docker-0.6.7.ebuild
5 Log:
6 0.6.7 version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.5 app-emulation/docker/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 11 Nov 2013 06:19:00 -0000 1.4
24 +++ ChangeLog 23 Nov 2013 23:13:28 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-emulation/docker
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.4 2013/11/11 06:19:00 gregkh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/ChangeLog,v 1.5 2013/11/23 23:13:28 gregkh Exp $
30 +
31 +*docker-0.6.7 (23 Nov 2013)
32 +
33 + 23 Nov 2013; Greg Kroah-Hartman <gregkh@g.o> +docker-0.6.7.ebuild:
34 + 0.6.7 version bump
35
36 *docker-0.6.6 (11 Nov 2013)
37
38
39
40
41 1.1 app-emulation/docker/docker-0.6.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.6.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/docker-0.6.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: docker-0.6.7.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.6.7.ebuild,v 1.1 2013/11/23 23:13:28 gregkh Exp $
51
52 EAPI=5
53
54 DESCRIPTION="Docker complements LXC with a high-level API which operates at the process level."
55 HOMEPAGE="http://www.docker.io/"
56 SRC_URI=""
57
58 EGIT_REPO_URI="git://github.com/dotcloud/docker.git"
59 if [[ ${PV} == *9999 ]]; then
60 KEYWORDS=""
61 else
62 EGIT_COMMIT="v${PV}"
63 KEYWORDS="~amd64"
64 fi
65
66 inherit bash-completion-r1 git-2 linux-info systemd user
67
68 LICENSE="Apache-2.0"
69 SLOT="0"
70 IUSE="doc vim-syntax"
71
72 CDEPEND="
73 >=dev-db/sqlite-3.7.9:3
74 "
75 DEPEND="
76 ${CDEPEND}
77 >=dev-lang/go-1.1.2
78 dev-vcs/git
79 dev-vcs/mercurial
80 doc? (
81 dev-python/sphinx
82 dev-python/sphinxcontrib-httpdomain
83 )
84 "
85 RDEPEND="
86 ${CDEPEND}
87 !app-emulation/lxc-docker-bin
88 >=app-arch/tar-1.26
89 >=sys-apps/iproute2-3.5
90 >=net-firewall/iptables-1.4
91 >=app-emulation/lxc-0.8
92 >=dev-vcs/git-1.7
93 >=app-arch/xz-utils-4.9
94 || (
95 sys-fs/aufs3
96 sys-kernel/aufs-sources
97 )
98 "
99
100 RESTRICT="strip"
101
102 CONFIG_CHECK="
103 ~AUFS_FS
104 ~BRIDGE
105 ~MEMCG_SWAP
106 ~NETFILTER_XT_MATCH_ADDRTYPE
107 ~NF_NAT
108 ~NF_NAT_NEEDED
109 "
110
111 # TODO AUFS will be replaced with device-mapper (requires sys-fs/lvm2[thin]) in 0.7
112 ERROR_AUFS_FS="AUFS_FS is required to be set if and only if aufs-sources are used"
113
114 ERROR_MEMCG_SWAP="MEMCG_SWAP is required if you wish to limit swap usage of containers"
115
116 pkg_setup() {
117 check_extra_config
118 }
119
120 src_unpack() {
121 git-2_src_unpack
122 }
123
124 src_compile() {
125 export GOPATH="${WORKDIR}/gopath"
126 mkdir -p "$GOPATH" || die
127
128 # make sure docker itself is in our shiny new GOPATH
129 mkdir -p "${GOPATH}/src/github.com/dotcloud" || die
130 ln -sf "$(pwd -P)" "${GOPATH}/src/github.com/dotcloud/docker" || die
131
132 # we need our vendored deps, too
133 export GOPATH="$GOPATH:$(pwd -P)/vendor"
134
135 # time to build!
136 ./hack/make.sh dynbinary || die
137
138 if use doc; then
139 emake -C docs docs man || die
140 fi
141 }
142
143 src_install() {
144 VERSION=$(cat VERSION)
145 newbin bundles/$VERSION/dynbinary/docker-$VERSION docker
146 exeinto /usr/libexec/docker
147 newexe bundles/$VERSION/dynbinary/dockerinit-$VERSION dockerinit
148
149 newinitd contrib/init/openrc/docker.initd docker
150 newconfd contrib/init/openrc/docker.confd docker
151
152 systemd_dounit contrib/init/systemd/docker.service
153
154 dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
155 if use doc; then
156 dohtml -r docs/_build/html/*
157 doman docs/_build/man/*
158 fi
159
160 dobashcomp contrib/completion/bash/*
161
162 insinto /usr/share/zsh/site-functions
163 doins contrib/completion/zsh/*
164
165 if use vim-syntax; then
166 insinto /usr/share/vim/vimfiles
167 doins -r contrib/vim-syntax/ftdetect
168 doins -r contrib/vim-syntax/syntax
169 fi
170
171 insinto /usr/share/${P}/contrib
172 doins contrib/README
173 cp -R "${S}/contrib"/* "${D}/usr/share/${P}/contrib/"
174 }
175
176 pkg_postinst() {
177 elog ""
178 elog "To use docker, the docker daemon must be running as root. To automatically"
179 elog "start the docker daemon at boot, add docker to the default runlevel:"
180 elog " rc-update add docker default"
181 elog "Similarly for systemd:"
182 elog " systemctl enable docker.service"
183 elog ""
184
185 # create docker group if the code checking for it in /etc/group exists
186 enewgroup docker
187
188 elog "To use docker as a non-root user, add yourself to the docker group."
189 elog ""
190
191 ewarn ""
192 ewarn "If you want your containers to have access to the public internet or even"
193 ewarn "the existing private network, IP Forwarding must be enabled:"
194 ewarn " sysctl -w net.ipv4.ip_forward=1"
195 ewarn "or more permanently:"
196 ewarn " echo net.ipv4.ip_forward = 1 > /etc/sysctl.d/${PN}.conf"
197 ewarn "Please be mindful of the security implications of enabling IP Forwarding."
198 ewarn ""
199 }