From: "Manuel Rüger" <mrueg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/
Date: Thu, 19 Jul 2018 15:29:12 +0000 (UTC) [thread overview]
Message-ID: <1532014097.b9ad513e7b855ea6541378435baba846c1bcd809.mrueg@gentoo> (raw)
commit: b9ad513e7b855ea6541378435baba846c1bcd809
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 19 15:28:17 2018 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Jul 19 15:28:17 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9ad513e
app-emulation/docker: Remove old
Package-Manager: Portage-2.3.43, Repoman-2.3.10
app-emulation/docker/Manifest | 2 -
app-emulation/docker/docker-17.12.1-r1.ebuild | 303 -------------------------
app-emulation/docker/docker-18.05.0-r1.ebuild | 305 --------------------------
3 files changed, 610 deletions(-)
diff --git a/app-emulation/docker/Manifest b/app-emulation/docker/Manifest
index 96ee8fda48a..8f38463c482 100644
--- a/app-emulation/docker/Manifest
+++ b/app-emulation/docker/Manifest
@@ -1,4 +1,2 @@
-DIST docker-17.12.1.tar.gz 11046888 BLAKE2B f50236826d8b064023e76a6c23a52c307eada73338d25fcc4fd3448a855f91b0f1d3080408bc9e58102467a9605c54c20080773b46851135566b85ce00f7dfb8 SHA512 ca9c28a489c6c65de27cb64e68c783336e2ddca7e7b2d241e9557a43e62e33146afb644aa67fe92afce658522c02fbe0378b3c1318a32628c1a1a046c67a4fb7
DIST docker-18.03.1.tar.gz 12758590 BLAKE2B 98213af07b945fda536e321ef5cc9e272848aab97dcadb7a6b1433b9310fa78015794b5ee4f255448251366a7811e97248b9cc90b0225c528249188768f344ab SHA512 48c4916421cd500ada1bfc2207123a29870939a15a1c7c4a0c082f61c1e3e063381e2345ee9df645dbaca49e002dbfaba70cf6fe233b39a4e1f44fb015807e10
-DIST docker-18.05.0.tar.gz 12822443 BLAKE2B 16f96ddbbb2b9d06724d659dba71990fd1aae1a568fb2d1bc7f6ae2bf2133524f6e0c1192deb045021342d3a8cc273f67b7228c51c032e75ee75c00a47f76bf8 SHA512 81997f32a45bf9cf7e79c936728999dac84e6c51e7ec04c7dd4f0fc1fbc837aaddd2ce4fa5e4e3eb2ee99599b005f06104b81b0fa858e59692c17398a341bfd1
DIST docker-18.06.0.tar.gz 13656557 BLAKE2B cc5e28d47eca07a42f040d8b47de25a35403e9e0451ca57eddcf1b6721169eb9bc41d4f4b5aad355f4394534e339ccbc83c6fb6d4df750c9738f1aa2466f90ef SHA512 d5bd6a83126c4dba14c775533b6c9bda35af2cd97db13922b3766494ce10dd9316d0167c87a6683dede28ea063f9435a0a009b96e413dad8abc7884a3468d589
diff --git a/app-emulation/docker/docker-17.12.1-r1.ebuild b/app-emulation/docker/docker-17.12.1-r1.ebuild
deleted file mode 100644
index 8f6b75e777c..00000000000
--- a/app-emulation/docker/docker-17.12.1-r1.ebuild
+++ /dev/null
@@ -1,303 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-EGO_PN="github.com/docker/docker-ce"
-
-if [[ ${PV} = *9999* ]]; then
- # Docker cannot be fetched via "go get", thanks to autogenerated code
- EGIT_REPO_URI="https://${EGO_PN}.git"
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
- inherit git-r3
-else
- inherit versionator
- if [ "$(get_version_component_count)" = 4 ]; then
- MY_PV="$(replace_version_separator 3 '-ce-')"
- else
- MY_PV="$PV-ce"
- fi
- DOCKER_GITCOMMIT="7390fc6"
- EGIT_COMMIT="v${MY_PV}"
- SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="amd64 ~arm"
- [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
- inherit golang-vcs-snapshot
-fi
-inherit bash-completion-r1 golang-base linux-info systemd udev user
-
-DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
-HOMEPAGE="https://dockerproject.org"
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="apparmor aufs btrfs +container-init +device-mapper hardened +overlay pkcs11 seccomp"
-
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
-CDEPEND="
- >=dev-db/sqlite-3.7.9:3
- device-mapper? (
- >=sys-fs/lvm2-2.02.89[thin]
- )
- seccomp? ( >=sys-libs/libseccomp-2.2.1 )
- apparmor? ( sys-libs/libapparmor )
-"
-
-DEPEND="
- ${CDEPEND}
-
- dev-go/go-md2man
-
- btrfs? (
- >=sys-fs/btrfs-progs-3.16.1
- )
-"
-
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
-RDEPEND="
- ${CDEPEND}
- >=net-firewall/iptables-1.4
- sys-process/procps
- >=dev-vcs/git-1.7
- >=app-arch/xz-utils-4.9
- dev-libs/libltdl
- ~app-emulation/containerd-1.0.1
- ~app-emulation/docker-runc-1.0.0_rc4_p20180122[apparmor?,seccomp?]
- >=app-emulation/docker-proxy-0.8.0_p20170917
- container-init? ( >=sys-process/tini-0.16.1[static] )
-"
-
-RESTRICT="installsources strip"
-
-S="${WORKDIR}/${P}/src/${EGO_PN}"
-
-PATCHES=( "${FILESDIR}"/bsc1073877-docker-apparmor-add-signal.patch )
-
-# see "contrib/check-config.sh" from upstream's sources
-CONFIG_CHECK="
- ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
- ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
- ~KEYS
- ~VETH ~BRIDGE ~BRIDGE_NETFILTER
- ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
- ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
- ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
- ~POSIX_MQUEUE
-
- ~USER_NS
- ~SECCOMP
- ~CGROUP_PIDS
- ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
-
- ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
- ~CGROUP_PERF
- ~CGROUP_HUGETLB
- ~NET_CLS_CGROUP
- ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
- ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
-
- ~VXLAN
- ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
- ~IPVLAN
- ~MACVLAN ~DUMMY
-"
-
-ERROR_KEYS="CONFIG_KEYS: is mandatory"
-ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
-ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
-
-ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
-ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
-ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
-ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
-ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
-ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
-
-pkg_setup() {
- if kernel_is lt 3 10; then
- ewarn ""
- ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
- ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
- fi
-
- if kernel_is le 3 18; then
- CONFIG_CHECK+="
- ~RESOURCE_COUNTERS
- "
- fi
-
- if kernel_is le 3 13; then
- CONFIG_CHECK+="
- ~NETPRIO_CGROUP
- "
- else
- CONFIG_CHECK+="
- ~CGROUP_NET_PRIO
- "
- fi
-
- if kernel_is lt 4 5; then
- CONFIG_CHECK+="
- ~MEMCG_KMEM
- "
- ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
- fi
-
- if kernel_is lt 4 7; then
- CONFIG_CHECK+="
- ~DEVPTS_MULTIPLE_INSTANCES
- "
- fi
-
- if use aufs; then
- CONFIG_CHECK+="
- ~AUFS_FS
- ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
- "
- ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
- fi
-
- if use btrfs; then
- CONFIG_CHECK+="
- ~BTRFS_FS
- ~BTRFS_FS_POSIX_ACL
- "
- fi
-
- if use device-mapper; then
- CONFIG_CHECK+="
- ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
- "
- fi
-
- if use overlay; then
- CONFIG_CHECK+="
- ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
- "
- fi
-
- linux-info_pkg_setup
-
- # create docker group for the code checking for it in /etc/group
- enewgroup docker
-}
-
-src_compile() {
- export GOPATH="${WORKDIR}/${P}"
-
- # setup CFLAGS and LDFLAGS for separate build target
- # see https://github.com/tianon/docker-overlay/pull/10
- export CGO_CFLAGS="-I${ROOT}/usr/include"
- export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
-
- # if we're building from a tarball, we need the GITCOMMIT value
- [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
-
- # fake golang layout
- ln -s docker-ce/components/engine ../docker || die
- ln -s docker-ce/components/cli ../cli || die
-
- # let's set up some optional features :)
- export DOCKER_BUILDTAGS=''
- for gd in aufs btrfs device-mapper overlay; do
- if ! use $gd; then
- DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
- fi
- done
-
- for tag in apparmor pkcs11 seccomp; do
- if use $tag; then
- DOCKER_BUILDTAGS+=" $tag"
- fi
- done
-
- pushd components/engine || die
-
- if use hardened; then
- sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
- grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
- sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
- -i hack/make/dynbinary-daemon || die
- grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
- fi
-
- # build daemon
- VERSION="$(cat ../../VERSION)" \
- ./hack/make.sh dynbinary || die 'dynbinary failed'
-
- popd || die # components/engine
-
- pushd components/cli || die
-
- # build cli
- emake \
- LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
- VERSION="$(cat ../../VERSION)" \
- GITCOMMIT="${DOCKER_GITCOMMIT}" \
- DISABLE_WARN_OUTSIDE_CONTAINER=1 \
- dynbinary || die
-
- # build man pages
- go build -o gen-manpages github.com/docker/cli/man || die
- ./gen-manpages --root . --target ./man/man1 || die
- ./man/md2man-all.sh -q || die
- rm gen-manpages || die
- # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
-
- popd || die # components/cli
-}
-
-src_install() {
- dosym containerd /usr/bin/docker-containerd
- dosym containerd-shim /usr/bin/docker-containerd-shim
- dosym runc /usr/bin/docker-runc
- use container-init && dosym tini /usr/bin/docker-init
-
- pushd components/engine || die
- newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
-
- newinitd contrib/init/openrc/docker.initd docker
- newconfd contrib/init/openrc/docker.confd docker
-
- systemd_dounit contrib/init/systemd/docker.{service,socket}
-
- udev_dorules contrib/udev/*.rules
-
- dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
- dodoc -r docs/*
-
- insinto /usr/share/vim/vimfiles
- doins -r contrib/syntax/vim/ftdetect
- doins -r contrib/syntax/vim/syntax
-
- # note: intentionally not using "doins" so that we preserve +x bits
- dodir /usr/share/${PN}/contrib
- cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
- popd || die # components/engine
-
- pushd components/cli || die
-
- newbin build/docker-* docker
-
- doman man/man*/*
-
- dobashcomp contrib/completion/bash/*
- insinto /usr/share/zsh/site-functions
- doins contrib/completion/zsh/_*
- popd || die # components/cli
-}
-
-pkg_postinst() {
- udev_reload
-
- elog
- elog "To use Docker, the Docker daemon must be running as root. To automatically"
- elog "start the Docker daemon at boot, add Docker to the default runlevel:"
- elog " rc-update add docker default"
- elog "Similarly for systemd:"
- elog " systemctl enable docker.service"
- elog
- elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
- elog " usermod -aG docker youruser"
- elog
-}
diff --git a/app-emulation/docker/docker-18.05.0-r1.ebuild b/app-emulation/docker/docker-18.05.0-r1.ebuild
deleted file mode 100644
index f92326ef664..00000000000
--- a/app-emulation/docker/docker-18.05.0-r1.ebuild
+++ /dev/null
@@ -1,305 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-EGO_PN="github.com/docker/docker-ce"
-
-if [[ ${PV} = *9999* ]]; then
- # Docker cannot be fetched via "go get", thanks to autogenerated code
- EGIT_REPO_URI="https://${EGO_PN}.git"
- EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
- inherit git-r3
-else
- inherit versionator
- if [ "$(get_version_component_count)" = 4 ]; then
- MY_PV="$(replace_version_separator 3 '-ce-')"
- else
- MY_PV="$PV-ce"
- fi
- DOCKER_GITCOMMIT="f150324"
- EGIT_COMMIT="v${MY_PV}"
- SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~arm ~arm64"
- [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
- inherit golang-vcs-snapshot
-fi
-inherit bash-completion-r1 golang-base linux-info systemd udev user
-
-DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
-HOMEPAGE="https://dockerproject.org"
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE="apparmor aufs btrfs +container-init +device-mapper hardened +overlay pkcs11 seccomp"
-
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
-CDEPEND="
- >=dev-db/sqlite-3.7.9:3
- device-mapper? (
- >=sys-fs/lvm2-2.02.89[thin]
- )
- seccomp? ( >=sys-libs/libseccomp-2.2.1 )
- apparmor? ( sys-libs/libapparmor )
-"
-
-DEPEND="
- ${CDEPEND}
-
- dev-go/go-md2man
-
- btrfs? (
- >=sys-fs/btrfs-progs-3.16.1
- )
-"
-
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
-RDEPEND="
- ${CDEPEND}
- >=net-firewall/iptables-1.4
- sys-process/procps
- >=dev-vcs/git-1.7
- >=app-arch/xz-utils-4.9
- dev-libs/libltdl
- ~app-emulation/containerd-1.0.3_p20180223
- ~app-emulation/runc-1.0.0_rc5[apparmor?,seccomp?]
- ~app-emulation/docker-proxy-0.8.0_p20180411
- container-init? ( >=sys-process/tini-0.16.1[static] )
-"
-
-RESTRICT="installsources strip"
-
-S="${WORKDIR}/${P}/src/${EGO_PN}"
-
-PATCHES=( "${FILESDIR}"/bsc1073877-docker-apparmor-add-signal.patch )
-
-# see "contrib/check-config.sh" from upstream's sources
-CONFIG_CHECK="
- ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
- ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
- ~KEYS
- ~VETH ~BRIDGE ~BRIDGE_NETFILTER
- ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
- ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
- ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
- ~POSIX_MQUEUE
-
- ~USER_NS
- ~SECCOMP
- ~CGROUP_PIDS
- ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
-
- ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
- ~CGROUP_PERF
- ~CGROUP_HUGETLB
- ~NET_CLS_CGROUP
- ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
- ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
-
- ~VXLAN
- ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
- ~IPVLAN
- ~MACVLAN ~DUMMY
-"
-
-ERROR_KEYS="CONFIG_KEYS: is mandatory"
-ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
-ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
-
-ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
-ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
-ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
-ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
-ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
-ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
-
-pkg_setup() {
- if kernel_is lt 3 10; then
- ewarn ""
- ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
- ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
- fi
-
- if kernel_is le 3 18; then
- CONFIG_CHECK+="
- ~RESOURCE_COUNTERS
- "
- fi
-
- if kernel_is le 3 13; then
- CONFIG_CHECK+="
- ~NETPRIO_CGROUP
- "
- else
- CONFIG_CHECK+="
- ~CGROUP_NET_PRIO
- "
- fi
-
- if kernel_is lt 4 5; then
- CONFIG_CHECK+="
- ~MEMCG_KMEM
- "
- ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
- fi
-
- if kernel_is lt 4 7; then
- CONFIG_CHECK+="
- ~DEVPTS_MULTIPLE_INSTANCES
- "
- fi
-
- if use aufs; then
- CONFIG_CHECK+="
- ~AUFS_FS
- ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
- "
- ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
- fi
-
- if use btrfs; then
- CONFIG_CHECK+="
- ~BTRFS_FS
- ~BTRFS_FS_POSIX_ACL
- "
- fi
-
- if use device-mapper; then
- CONFIG_CHECK+="
- ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
- "
- fi
-
- if use overlay; then
- CONFIG_CHECK+="
- ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
- "
- fi
-
- linux-info_pkg_setup
-
- # create docker group for the code checking for it in /etc/group
- enewgroup docker
-}
-
-src_compile() {
- export GOPATH="${WORKDIR}/${P}"
-
- # setup CFLAGS and LDFLAGS for separate build target
- # see https://github.com/tianon/docker-overlay/pull/10
- export CGO_CFLAGS="-I${ROOT}/usr/include"
- export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
-
- # if we're building from a tarball, we need the GITCOMMIT value
- [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
-
- # fake golang layout
- ln -s docker-ce/components/engine ../docker || die
- ln -s docker-ce/components/cli ../cli || die
-
- # let's set up some optional features :)
- export DOCKER_BUILDTAGS=''
- for gd in aufs btrfs device-mapper overlay; do
- if ! use $gd; then
- DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
- fi
- done
-
- for tag in apparmor pkcs11 seccomp; do
- if use $tag; then
- DOCKER_BUILDTAGS+=" $tag"
- fi
- done
-
- pushd components/engine || die
-
- if use hardened; then
- sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
- grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
- sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
- -i hack/make/dynbinary-daemon || die
- grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
- fi
-
- # build daemon
- VERSION="$(cat ../../VERSION)" \
- ./hack/make.sh dynbinary || die 'dynbinary failed'
-
- popd || die # components/engine
-
- pushd components/cli || die
-
- # build cli
- emake \
- LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
- VERSION="$(cat ../../VERSION)" \
- GITCOMMIT="${DOCKER_GITCOMMIT}" \
- DISABLE_WARN_OUTSIDE_CONTAINER=1 \
- dynbinary || die
-
- # build man pages
- go build -o gen-manpages github.com/docker/cli/man || die
- ./gen-manpages --root . --target ./man/man1 || die
- ./man/md2man-all.sh -q || die
- rm gen-manpages || die
- # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
-
- popd || die # components/cli
-}
-
-src_install() {
- dosym containerd /usr/bin/docker-containerd
- dosym containerd-shim /usr/bin/docker-containerd-shim
- dosym runc /usr/bin/docker-runc
- use container-init && dosym tini /usr/bin/docker-init
-
- pushd components/engine || die
- newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
-
- newinitd contrib/init/openrc/docker.initd docker
- newconfd contrib/init/openrc/docker.confd docker
-
- systemd_dounit contrib/init/systemd/docker.{service,socket}
-
- udev_dorules contrib/udev/*.rules
-
- dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
- dodoc -r docs/*
-
- insinto /usr/share/vim/vimfiles
- doins -r contrib/syntax/vim/ftdetect
- doins -r contrib/syntax/vim/syntax
-
- # note: intentionally not using "doins" so that we preserve +x bits
- dodir /usr/share/${PN}/contrib
- cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
- popd || die # components/engine
-
- pushd components/cli || die
-
- newbin build/docker-* docker
-
- doman man/man*/*
-
- dobashcomp contrib/completion/bash/*
- insinto /usr/share/fish/vendor_completions.d/
- doins contrib/completion/fish/docker.fish
- insinto /usr/share/zsh/site-functions
- doins contrib/completion/zsh/_*
- popd || die # components/cli
-}
-
-pkg_postinst() {
- udev_reload
-
- elog
- elog "To use Docker, the Docker daemon must be running as root. To automatically"
- elog "start the Docker daemon at boot, add Docker to the default runlevel:"
- elog " rc-update add docker default"
- elog "Similarly for systemd:"
- elog " systemctl enable docker.service"
- elog
- elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
- elog " usermod -aG docker youruser"
- elog
-}
next reply other threads:[~2018-07-19 15:29 UTC|newest]
Thread overview: 291+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 15:29 Manuel Rüger [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-12-19 7:19 [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/ Georgy Yakovlev
2021-12-19 7:19 Georgy Yakovlev
2021-12-14 8:55 Georgy Yakovlev
2021-12-01 12:39 Georgy Yakovlev
2021-11-03 21:08 Georgy Yakovlev
2021-11-03 21:08 Georgy Yakovlev
2021-10-06 16:49 William Hubbs
2021-10-06 1:19 Georgy Yakovlev
2021-10-06 1:19 Georgy Yakovlev
2021-10-06 1:16 William Hubbs
2021-10-04 23:21 William Hubbs
2021-08-13 2:09 Yixun Lan
2021-08-05 19:51 William Hubbs
2021-06-14 0:31 Georgy Yakovlev
2021-06-13 22:38 Sam James
2021-06-11 16:27 William Hubbs
2021-06-11 1:00 Georgy Yakovlev
2021-06-11 1:00 Georgy Yakovlev
2021-06-10 21:53 William Hubbs
2021-05-16 12:45 Sam James
2021-04-28 16:44 Mikle Kolyada
2021-04-26 21:25 Georgy Yakovlev
2021-04-22 7:48 Georgy Yakovlev
2021-04-19 15:53 William Hubbs
2021-04-05 15:34 Mike Gilbert
2021-03-31 19:41 William Hubbs
2021-03-25 8:02 Michał Górny
2021-03-08 21:26 William Hubbs
2021-03-08 21:19 William Hubbs
2021-03-08 20:47 William Hubbs
2021-03-07 23:17 William Hubbs
2021-03-07 8:18 William Hubbs
2021-03-06 20:13 William Hubbs
2021-03-06 20:13 William Hubbs
2021-02-19 18:04 Piotr Karbowski
2021-02-15 1:16 William Hubbs
2021-02-05 19:36 Georgy Yakovlev
2021-02-05 19:36 Georgy Yakovlev
2021-02-04 19:15 William Hubbs
2021-02-04 15:06 William Hubbs
2021-02-04 15:06 William Hubbs
2021-01-09 20:57 William Hubbs
2021-01-08 19:28 William Hubbs
2021-01-08 19:28 William Hubbs
2021-01-08 18:14 William Hubbs
2021-01-08 17:54 William Hubbs
2021-01-05 15:58 William Hubbs
2021-01-05 0:15 William Hubbs
2021-01-04 23:10 William Hubbs
2020-12-29 7:43 Joonas Niilola
2020-12-02 20:38 Georgy Yakovlev
2020-12-02 20:38 Georgy Yakovlev
2020-12-02 20:38 Georgy Yakovlev
2020-12-02 19:56 Georgy Yakovlev
2020-11-10 21:20 Georgy Yakovlev
2020-11-10 21:20 Georgy Yakovlev
2020-10-27 23:19 Georgy Yakovlev
2020-10-18 0:48 Georgy Yakovlev
2020-10-18 0:48 Georgy Yakovlev
2020-10-18 0:48 Georgy Yakovlev
2020-09-24 0:09 Georgy Yakovlev
2020-09-23 8:36 Georgy Yakovlev
2020-09-23 8:36 Georgy Yakovlev
2020-09-23 8:36 Georgy Yakovlev
2020-09-23 7:43 Georgy Yakovlev
2020-09-23 0:46 Georgy Yakovlev
2020-09-22 23:30 Georgy Yakovlev
2020-09-22 23:18 Georgy Yakovlev
2020-08-31 21:03 Thomas Deutschmann
2020-08-31 18:14 Georgy Yakovlev
2020-08-22 21:17 William Hubbs
2020-08-01 19:17 William Hubbs
2020-07-25 18:30 Georgy Yakovlev
2020-03-15 3:53 Thomas Deutschmann
2020-03-15 3:06 William Hubbs
2020-03-12 0:34 William Hubbs
2020-03-04 22:52 William Hubbs
2020-03-04 22:52 William Hubbs
2020-03-04 13:01 Mikle Kolyada
2020-02-14 0:31 William Hubbs
2020-02-13 21:02 Georgy Yakovlev
2020-02-13 20:47 William Hubbs
2020-01-25 15:33 Mikle Kolyada
2020-01-17 8:52 Georgy Yakovlev
2020-01-16 19:36 Mikle Kolyada
2020-01-16 9:18 Mikle Kolyada
2020-01-16 9:12 Mikle Kolyada
2020-01-15 10:41 Mikle Kolyada
2019-11-21 10:40 Manuel Rüger
2019-11-20 22:20 Manuel Rüger
2019-11-20 16:51 Manuel Rüger
2019-10-21 18:19 Manuel Rüger
2019-10-09 16:57 Manuel Rüger
2019-09-23 14:06 Manuel Rüger
2019-09-23 14:06 Manuel Rüger
2019-09-05 9:08 Manuel Rüger
2019-09-04 13:50 Manuel Rüger
2019-07-29 9:17 Manuel Rüger
2019-07-29 9:17 Manuel Rüger
2019-07-29 9:07 Manuel Rüger
2019-07-29 9:07 Manuel Rüger
2019-07-23 15:17 Manuel Rüger
2019-07-04 15:34 Manuel Rüger
2019-07-04 15:34 Manuel Rüger
2019-06-27 21:57 Manuel Rüger
2019-06-25 15:43 Manuel Rüger
2019-06-06 17:10 Manuel Rüger
2019-06-04 16:57 Manuel Rüger
2019-05-07 16:05 Manuel Rüger
2019-04-23 14:07 Manuel Rüger
2019-04-23 12:43 Manuel Rüger
2019-04-11 10:01 Manuel Rüger
2019-04-11 9:57 Manuel Rüger
2019-03-28 15:02 Manuel Rüger
2019-03-28 15:02 Manuel Rüger
2019-03-28 15:02 Manuel Rüger
2019-03-01 13:42 Manuel Rüger
2019-03-01 13:42 Manuel Rüger
2019-02-11 19:39 Manuel Rüger
2019-02-11 19:39 Manuel Rüger
2019-02-11 19:39 Manuel Rüger
2019-02-11 17:55 Manuel Rüger
2019-02-11 17:49 Manuel Rüger
2019-02-01 16:02 Manuel Rüger
2019-01-10 13:34 Manuel Rüger
2018-12-16 13:10 Manuel Rüger
2018-12-11 10:13 Manuel Rüger
2018-11-09 10:28 Manuel Rüger
2018-11-09 8:48 Manuel Rüger
2018-10-28 17:30 Manuel Rüger
2018-09-06 18:16 Manuel Rüger
2018-07-19 13:29 Manuel Rüger
2018-07-19 13:29 Manuel Rüger
2018-06-21 22:28 Georgy Yakovlev
2018-06-21 22:28 Georgy Yakovlev
2018-06-04 19:25 Mart Raudsepp
2018-05-15 13:14 Manuel Rüger
2018-05-15 13:14 Manuel Rüger
2018-05-15 12:16 Manuel Rüger
2018-04-26 22:19 Manuel Rüger
2018-04-26 21:36 Manuel Rüger
2018-04-11 12:21 Manuel Rüger
2018-04-10 1:13 Manuel Rüger
2018-04-06 22:12 Manuel Rüger
2018-04-06 22:12 Manuel Rüger
2018-04-03 6:22 Manuel Rüger
2018-03-23 15:05 Manuel Rüger
2018-03-21 14:59 Manuel Rüger
2018-03-19 22:52 Manuel Rüger
2018-02-28 12:32 Manuel Rüger
2018-02-27 20:33 Manuel Rüger
2018-02-09 16:58 Manuel Rüger
2018-01-23 15:46 Manuel Rüger
2018-01-19 16:10 Manuel Rüger
2018-01-19 15:55 Manuel Rüger
2018-01-18 14:04 Manuel Rüger
2018-01-18 13:00 Manuel Rüger
2018-01-10 18:37 Manuel Rüger
2018-01-02 16:12 Manuel Rüger
2018-01-02 13:05 Manuel Rüger
2018-01-02 13:05 Manuel Rüger
2018-01-02 13:00 Manuel Rüger
2017-12-18 19:11 Manuel Rüger
2017-12-18 16:37 Manuel Rüger
2017-11-22 15:02 Manuel Rüger
2017-11-03 14:27 Manuel Rüger
2017-11-02 15:57 Craig Andrews
2017-09-27 10:01 Manuel Rüger
2017-09-10 10:58 Manuel Rüger
2017-09-10 10:58 Manuel Rüger
2017-09-08 21:59 Manuel Rüger
2017-09-08 21:59 Manuel Rüger
2017-08-21 11:30 Manuel Rüger
2017-07-16 11:48 Manuel Rüger
2017-07-16 10:46 Manuel Rüger
2017-07-02 23:08 Manuel Rüger
2017-06-29 9:42 Manuel Rüger
2017-06-29 9:37 Manuel Rüger
2017-06-29 9:37 Manuel Rüger
2017-06-28 14:12 Manuel Rüger
2017-06-28 14:02 Manuel Rüger
2017-06-20 12:53 Pacho Ramos
2017-05-09 11:49 Manuel Rüger
2017-05-07 0:34 Manuel Rüger
2017-05-03 11:37 Manuel Rüger
2017-05-03 11:37 Manuel Rüger
2017-04-28 12:15 Manuel Rüger
2017-04-21 19:01 William Hubbs
2017-04-21 17:52 William Hubbs
2017-04-21 15:24 Manuel Rüger
2017-04-20 19:00 William Hubbs
2017-04-19 21:48 William Hubbs
2017-04-18 17:58 William Hubbs
2017-04-06 22:04 Manuel Rüger
2017-04-05 10:21 Michael Weber
2017-03-28 23:28 Manuel Rüger
2017-03-06 16:31 Manuel Rüger
2017-03-06 16:28 Manuel Rüger
2017-03-06 15:12 Manuel Rüger
2017-03-06 13:22 Manuel Rüger
2017-02-24 10:29 Manuel Rüger
2017-02-24 10:29 Manuel Rüger
2017-02-09 14:16 Manuel Rüger
2017-01-23 14:02 William Hubbs
2017-01-19 11:22 Manuel Rüger
2017-01-16 17:36 Manuel Rüger
2017-01-15 20:09 Manuel Rüger
2017-01-13 13:43 Manuel Rüger
2017-01-12 13:14 Manuel Rüger
2017-01-11 12:14 Manuel Rüger
2017-01-11 12:13 Manuel Rüger
2017-01-09 18:37 William Hubbs
2017-01-07 22:06 William Hubbs
2017-01-07 22:01 William Hubbs
2017-01-07 21:43 William Hubbs
2017-01-05 23:23 Manuel Rüger
2017-01-02 15:33 William Hubbs
2016-12-18 1:14 Manuel Rüger
2016-12-18 1:14 Manuel Rüger
2016-12-16 11:54 Manuel Rüger
2016-12-13 16:58 Manuel Rüger
2016-12-06 13:45 Manuel Rüger
2016-12-06 12:28 Manuel Rüger
2016-12-06 12:27 Manuel Rüger
2016-11-24 13:18 Manuel Rüger
2016-11-24 10:45 Manuel Rüger
2016-11-18 16:28 Manuel Rüger
2016-11-18 16:28 Manuel Rüger
2016-11-15 11:15 Manuel Rüger
2016-11-14 18:08 William Hubbs
2016-11-14 18:00 William Hubbs
2016-11-14 17:11 William Hubbs
2016-11-09 16:53 Manuel Rüger
2016-11-01 22:22 William Hubbs
2016-10-31 23:04 William Hubbs
2016-10-31 22:55 William Hubbs
2016-10-31 22:55 William Hubbs
2016-10-31 22:23 William Hubbs
2016-10-13 14:46 William Hubbs
2016-10-13 14:46 William Hubbs
2016-09-28 16:39 William Hubbs
2016-09-28 15:53 William Hubbs
2016-08-24 13:32 William Hubbs
2016-08-24 13:32 William Hubbs
2016-08-17 15:34 William Hubbs
2016-07-30 4:05 William Hubbs
2016-07-30 4:05 William Hubbs
2016-07-29 16:27 William Hubbs
2016-07-29 16:27 William Hubbs
2016-07-28 15:47 William Hubbs
2016-07-28 15:41 William Hubbs
2016-07-28 14:14 William Hubbs
2016-07-27 23:11 William Hubbs
2016-07-27 22:17 William Hubbs
2016-07-27 22:12 William Hubbs
2016-07-27 22:12 William Hubbs
2016-07-27 15:41 William Hubbs
2016-07-14 23:46 William Hubbs
2016-07-14 23:46 William Hubbs
2016-07-13 16:14 William Hubbs
2016-07-09 22:43 William Hubbs
2016-07-05 16:41 William Hubbs
2016-07-05 16:41 William Hubbs
2016-06-28 13:49 William Hubbs
2016-06-28 13:15 William Hubbs
2016-06-28 13:07 William Hubbs
2016-06-27 22:49 William Hubbs
2016-06-27 22:49 William Hubbs
2016-06-27 22:33 William Hubbs
2016-06-27 22:33 William Hubbs
2016-06-24 17:53 William Hubbs
2016-06-24 17:39 William Hubbs
2016-04-27 15:24 Kacper Kowalik
2016-04-27 15:19 Kacper Kowalik
2016-04-27 15:13 Kacper Kowalik
2016-04-27 15:13 Kacper Kowalik
2016-04-27 8:24 Agostino Sarubbo
2016-04-20 17:06 William Hubbs
2016-03-29 10:35 Ian Delaney
2016-03-28 12:21 Kacper Kowalik
2016-03-18 19:11 Michał Górny
2016-02-08 13:50 Kacper Kowalik
2015-11-03 21:19 Kacper Kowalik
2015-09-29 8:34 Justin Lecher
2015-09-29 8:34 Justin Lecher
2015-09-28 14:16 Kacper Kowalik
2015-09-19 15:27 Agostino Sarubbo
2015-08-25 18:15 William Hubbs
2015-08-25 18:15 William Hubbs
2015-08-25 16:42 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532014097.b9ad513e7b855ea6541378435baba846c1bcd809.mrueg@gentoo \
--to=mrueg@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox