diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-03 20:27:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-03 20:27:24 +0000 |
commit | 27e5574c9ed56a2633e25f7fa8f591554266a1b4 (patch) | |
tree | eafae39b8faa55ceb7cc8100d5d03a2dfc9b7842 /app-containers/docker-cli | |
parent | 5aede38e7304fc5c3bd8a2034b25758b15a19fa0 (diff) |
gentoo auto-resync : 03:01:2023 - 20:27:24
Diffstat (limited to 'app-containers/docker-cli')
-rw-r--r-- | app-containers/docker-cli/Manifest | 2 | ||||
-rw-r--r-- | app-containers/docker-cli/docker-cli-20.10.22.ebuild | 67 |
2 files changed, 69 insertions, 0 deletions
diff --git a/app-containers/docker-cli/Manifest b/app-containers/docker-cli/Manifest index b7962aa7c0d2..0cd760319481 100644 --- a/app-containers/docker-cli/Manifest +++ b/app-containers/docker-cli/Manifest @@ -1,3 +1,5 @@ DIST docker-cli-20.10.17.tar.gz 7636087 BLAKE2B 2777ca5c310ffeca75a07f2667703a3f1d24b4d1c1691ffb58df3144b7bfe54bb2b9cb9896a253718b7f47ab4c246064c5944a1ca05328fe7924f9bb79e10ff3 SHA512 9c2cff7e248272e234eac9febdfd7c5c844fc65ee4b08fd4ce0f526e4fed33f2d12682d0991ef28b42977b9de2c84d7ef9c6ddd6f31c4e8c34a3985c1cea3316 +DIST docker-cli-20.10.22.tar.gz 7590020 BLAKE2B ab003a9af2b441a9bad9c27345dea2e82087cfc8a8ac865adeb2e47e91be4bd9b27f499ae95b0ddcddb66d27c3498938682dcd10d5e3bef41fc18ce1f034a476 SHA512 550346904d172725f48c4de0e34fa95123c7022b14980d30cd01df0c9e154ac817f19e24b61538f8cbc23db090de56977c8b885b96f99583e8a5f773691280a6 EBUILD docker-cli-20.10.17.ebuild 1892 BLAKE2B c1b88b4bdc27f9f499dadbe56da3bdd5d7805bddb96eaffeaa256813542b3324bf96dcbd437f4d09b96e72c665e3ba1303b53252c3b11f12db828b5d9870f582 SHA512 652c8b7540ccaef968e74e0423891105741b410c04db9fedd82009e58e0131cce82f929f1956bf1853fc44fb034736a6fa8fe86ccc379cae5b8653001e3fec81 +EBUILD docker-cli-20.10.22.ebuild 1893 BLAKE2B 54298603a5e8bd46680dbbb87707806fdff17e1d59ba6b1a09e1fab50947390055738545638068ce9ac2cca7a9dae120c9e0c1a15e4477b5d5422a0a90e13b51 SHA512 2c21f2e637a28d3da785070c9bebf6adc4be10589b4605c1c4aa6c86d2379fa16069d38d2364e06c310e405c7bebb45b32d15842c1f378d7fb3a091853d49565 MISC metadata.xml 689 BLAKE2B 45f4a07f9d949ad4e0175908af936140573bd257f7b11f9b9cc25cdd52bb821a294036635fd81662bcd348aa21e69b5582ab2dc8efaf94dbbdc9608b131414f4 SHA512 efe37f3ae8bc6b26433b7bacfda203ea3b480f419b343921214f19a4ad4e25b2cca5f0426a27348902f51ef15f558e81599ccdadcab6504f9d22314bb472d80c diff --git a/app-containers/docker-cli/docker-cli-20.10.22.ebuild b/app-containers/docker-cli/docker-cli-20.10.22.ebuild new file mode 100644 index 000000000000..4b82112840c7 --- /dev/null +++ b/app-containers/docker-cli/docker-cli-20.10.22.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GIT_COMMIT=3a2c30b63a +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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 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 + dev-go/go-md2man" + +RESTRICT="installsources strip test" + +S="${WORKDIR}/${P}/src/${EGO_PN}" + +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 + export CGO_CFLAGS="-I${ESYSROOT}/usr/include" + export CGO_LDFLAGS="-L${ESYSROOT}/usr/$(get_libdir)" + emake \ + LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \ + VERSION="${PV}" \ + GITCOMMIT="${GIT_COMMIT}" \ + dynbinary + + # build man pages + # see "cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man) + mkdir -p ./man/man1 || die "mkdir failed" + go build -o "${T}"/gen-manpages ./man || + die 'build gen-manpages failed' + "${T}"/gen-manpages --root "$(pwd)" --target "$(pwd)"/man/man1 || + die 'gen-manpages failed' + ./man/md2man-all.sh -q || + die 'md2man-all.sh failed' +} + +src_install() { + dobin build/docker + doman 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/_* +} |