diff options
| author | William Hubbs <williamh@gentoo.org> | 2025-06-05 16:31:22 -0500 |
|---|---|---|
| committer | William Hubbs <williamh@gentoo.org> | 2025-06-05 16:31:22 -0500 |
| commit | 342a36a5f6aa79a103e2c4a239e90e5aa06b7d28 (patch) | |
| tree | 46d29716904cc653c45c922b68229a83521a9b57 /app-containers/docker-cli/docker-cli-28.2.2.ebuild | |
| parent | 299fa52b17f587f8530ebb68ef3df4353c7e25d0 (diff) | |
| download | gentoo-342a36a5f6aa79a103e2c4a239e90e5aa06b7d28.tar.gz gentoo-342a36a5f6aa79a103e2c4a239e90e5aa06b7d28.tar.bz2 gentoo-342a36a5f6aa79a103e2c4a239e90e5aa06b7d28.zip | |
app-containers/docker-cli: add 28.2.2
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-containers/docker-cli/docker-cli-28.2.2.ebuild')
| -rw-r--r-- | app-containers/docker-cli/docker-cli-28.2.2.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/app-containers/docker-cli/docker-cli-28.2.2.ebuild b/app-containers/docker-cli/docker-cli-28.2.2.ebuild new file mode 100644 index 000000000000..c8bba3f996d1 --- /dev/null +++ b/app-containers/docker-cli/docker-cli-28.2.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 go-module +MY_PV=${PV/_/-} + +# update this on every bump +GIT_COMMIT=879ac3f88fe137c2058afe995298832eb2ff1546 + +# To create the man pages tarball, run the following in the git source +# directory: +#git checkout ${PV} +# make manpages +# tar -acf ${P}-man.tar.xz man/man? + +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" +S="${WORKDIR}/cli-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="hardened selinux" + +RDEPEND="selinux? ( sec-policy/selinux-docker )" + +RESTRICT="installsources strip test" + +src_unpack() { + default + cd "${S}" + ln -s vendor.mod go.mod + ln -s vendor.sum go.sum +} + +src_prepare() { + default + sed -i 's@dockerd\?\.exe@@g' contrib/completion/bash/docker || die +} + +src_compile() { + export DISABLE_WARN_OUTSIDE_CONTAINER=1 + # 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/docker + 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." +} |
