-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-containers/docker{,-cli}: add version 27.2.1
Can be dropped once upstreamed. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
- Loading branch information
Showing
5 changed files
with
401 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...ntainer/src/third_party/portage-stable/app-containers/docker-cli/docker-cli-27.2.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
GIT_COMMIT=9e34c9bb39efd8bf96d4ec044de454ef1f24c668 | ||
|
||
EGO_PN="github.com/docker/cli" | ||
MY_PV=${PV/_/-} | ||
inherit bash-completion-r1 golang-vcs-snapshot | ||
|
||
DESCRIPTION="the command line binary for docker" | ||
HOMEPAGE="https://www.docker.com/" | ||
SRC_URI="https://github.com/docker/cli/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" | ||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-man.tar.xz" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" | ||
IUSE="hardened selinux" | ||
|
||
RDEPEND="!<app-containers/docker-20.10.1 | ||
selinux? ( sec-policy/selinux-docker )" | ||
BDEPEND=" | ||
>=dev-lang/go-1.16.6" | ||
|
||
RESTRICT="installsources strip test" | ||
|
||
S="${WORKDIR}/${P}/src/${EGO_PN}" | ||
|
||
src_unpack() { | ||
golang-vcs-snapshot_src_unpack | ||
set -- ${A} | ||
unpack ${2} | ||
} | ||
|
||
src_prepare() { | ||
default | ||
sed -i 's@dockerd\?\.exe@@g' contrib/completion/bash/docker || die | ||
} | ||
|
||
src_compile() { | ||
export DISABLE_WARN_OUTSIDE_CONTAINER=1 | ||
export GOPATH="${WORKDIR}/${P}" | ||
# setup CFLAGS and LDFLAGS for separate build target | ||
# see https://github.com/tianon/docker-overlay/pull/10 | ||
CGO_CFLAGS+=" -I${ESYSROOT}/usr/include" | ||
CGO_LDFLAGS+=" -L${ESYSROOT}/usr/$(get_libdir)" | ||
emake \ | ||
LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \ | ||
VERSION="${PV}" \ | ||
GITCOMMIT="${GIT_COMMIT}" \ | ||
dynbinary | ||
} | ||
|
||
src_install() { | ||
dobin build/docker | ||
doman "${WORKDIR}"/man/man?/* | ||
dobashcomp contrib/completion/bash/* | ||
bashcomp_alias docker dockerd | ||
insinto /usr/share/fish/vendor_completions.d/ | ||
doins contrib/completion/fish/docker.fish | ||
insinto /usr/share/zsh/site-functions | ||
doins contrib/completion/zsh/_* | ||
} | ||
|
||
pkg_postinst() { | ||
has_version "app-containers/docker-buildx" && return | ||
ewarn "the 'docker build' command is deprecated and will be removed in a" | ||
ewarn "future release. If you need this functionality, install" | ||
ewarn "app-containers/docker-buildx." | ||
} |
1 change: 1 addition & 0 deletions
1
sdk_container/src/third_party/portage-stable/app-containers/docker/Manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST docker-26.1.0.tar.gz 16390376 BLAKE2B 6703e9b153c430bc28aed2e7de7bada0203353d61f0a2ce3d49ddbd017eab196a685dd1ab1e719a6b287813eb5fa4f2c612e2cf1ab95789d6e79ebe5dac7ace3 SHA512 47b6b9af9947016884614b6bc25977e1db281da95c9b8b34c753c21c664a737a893f9fa65d92cbb897735aae3893567e106e6bababb5507e069b1e0981e48d50 | ||
DIST docker-27.2.0.tar.gz 16689537 BLAKE2B faf0bae9f7da127d5b65b9989acd82dc726bc3f09ace502df151b9f03a84b6f1ec2a946d905263aaa7d2e7d7a3cd4ad1a09291dcfc6691e73cc9a8738f150d55 SHA512 97abaf56d2249c1514beacf17fc9096848b960846e064f1a9bd800a59762a1f1888b32e83b3e8289e23656496ca0293fea65931210d68faaa8a713aab6e48b65 | ||
DIST docker-27.2.1.tar.gz 16769375 BLAKE2B a2a33d76702f5a208b22cbb12202f4fd69dfce79a6a8ed3c3fe0df161696c922ab764a1796cd265a0cba0737894daf759baf21ecff364f3caea5fd440831dcb9 SHA512 2ca29e53074c1ff7b527f709ae542daa2754cfc35c70ae92bd71b4c7d5d54cd6d373ab078c811900dc694347cb149387681f6cf26634c81651a8e91e31790de7 |
Oops, something went wrong.