diff options
Diffstat (limited to 'app-containers/docker-credential-helpers')
3 files changed, 88 insertions, 0 deletions
diff --git a/app-containers/docker-credential-helpers/Manifest b/app-containers/docker-credential-helpers/Manifest new file mode 100644 index 000000000000..1ff09d6f710c --- /dev/null +++ b/app-containers/docker-credential-helpers/Manifest @@ -0,0 +1,3 @@ +DIST docker-credential-helpers-0.6.3.tar.gz 28971 BLAKE2B b50e4de0f3b126e0118f24f845a94be5e932975ab54ad6e0a52129a56109ecafb021f14986569295242cb0af4ea109d8786b8a5ca8481cc48daad14671841432 SHA512 2d15be8df134bff08eef9461348f07cd57c70c15a0ab044de2e69296c400b8c0e16198c90fd064d5ce83037d0bad57520e7524b0832b7a00e69397203dc90d10 +EBUILD docker-credential-helpers-0.6.3.ebuild 1243 BLAKE2B 4c9e817cf31635dda11e8964b2a1881122fe59dfc5fa8d275e464222c5e6e7d38a91aeeb4defd3a5a2a63cfc31e74a67e1b81e6b1e11cf88e02b03d77abcbb0d SHA512 8504d5f522c9cce5bb2818455c55954e5f7d6e8948becb37969477fafba639ea866cd88176e92e91a8ce567374f4ce77d30e8078e4247fbe6be9d955a7a4e55a +MISC metadata.xml 878 BLAKE2B 221a3cccbf81357b103dbb46e95ef7110edf4ee13131a9ad6ee5554fb5b0f99e1162a3425760ea2fdedd5796b942526d864d966c94cd23fc45780e6b92858e93 SHA512 29f088e5e2bba6f88ce2b0935f4f8388e77324018c12e8408891badc51766656166ca9ff3d220302a4732e35ad0639eb6b16b1ac479ce3780154e207947c277e diff --git a/app-containers/docker-credential-helpers/docker-credential-helpers-0.6.3.ebuild b/app-containers/docker-credential-helpers/docker-credential-helpers-0.6.3.ebuild new file mode 100644 index 000000000000..456a74724b57 --- /dev/null +++ b/app-containers/docker-credential-helpers/docker-credential-helpers-0.6.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A suite of programs to use native stores to keep Docker credentials safe" +HOMEPAGE="https://github.com/docker/docker-credential-helpers" +EGO_PN=github.com/docker/docker-credential-helpers + +LICENSE="MIT" +SLOT="0" + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="amd64 arm64" + EGIT_COMMIT="v${PV}" + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +IUSE="gnome-keyring pass" +REQUIRED_USE="|| ( gnome-keyring pass )" +RESTRICT="test" + +DEPEND="gnome-keyring? ( app-crypt/libsecret )" + +RDEPEND="( + ${DEPEND} + pass? ( app-admin/pass ) +) +" + +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_compile() { + local -x GOPATH="${WORKDIR}/${P}" + use gnome-keyring && emake secretservice + use pass && emake pass +} + +src_install() { + dobin bin/* + dodoc CHANGELOG.md MAINTAINERS README.md +} + +pkg_postinst() { + if use gnome-keyring; then + elog "For gnome-keyring/kwallet add:\n" + elog ' "credStore": "secretservice"'"\n" + fi + if use pass; then + elog "For 'pass' add:\n" + elog ' "credStore": "pass"'"\n" + fi + elog "to your ~/.docker/config.json" +} diff --git a/app-containers/docker-credential-helpers/metadata.xml b/app-containers/docker-credential-helpers/metadata.xml new file mode 100644 index 000000000000..b28e0058c9bf --- /dev/null +++ b/app-containers/docker-credential-helpers/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + A suite of programs to use native stores to keep Docker credentials + safe. Currently provides docker-credential-secretservice to use the + D-Bus secret service APIs, and docker-credential-pass to use the + pass framework. + </longdescription> + <maintainer type="person" proxied="yes"> + <email>rkitover@gmail.com</email> + <name>Rafael Kitover</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="gnome-keyring"> + Build secretservice helper which works with gnome-keyring or kwallet + using D-Bus. + </flag> + <flag name="pass"> + Build pass helper for the pass utility. + </flag> + </use> +</pkgmetadata> |