summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-12-19 23:31:56 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-12-20 00:51:35 -0800
commit72e3f7102a611395d6748745e119717784c4ff6c (patch)
tree5b04243e7fe34b919316e2bdb4d80ea85288e873 /app-containers/docker-credential-helpers
parentMove {app-emulation -> app-containers}/docker-compose (diff)
downloadgentoo-72e3f7102a611395d6748745e119717784c4ff6c.tar.gz
gentoo-72e3f7102a611395d6748745e119717784c4ff6c.tar.bz2
gentoo-72e3f7102a611395d6748745e119717784c4ff6c.zip
Move {app-emulation -> app-containers}/docker-credential-helpers
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-containers/docker-credential-helpers')
-rw-r--r--app-containers/docker-credential-helpers/Manifest1
-rw-r--r--app-containers/docker-credential-helpers/docker-credential-helpers-0.6.3.ebuild58
-rw-r--r--app-containers/docker-credential-helpers/metadata.xml27
3 files changed, 86 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..73b7729ba3f7
--- /dev/null
+++ b/app-containers/docker-credential-helpers/Manifest
@@ -0,0 +1 @@
+DIST docker-credential-helpers-0.6.3.tar.gz 28971 BLAKE2B b50e4de0f3b126e0118f24f845a94be5e932975ab54ad6e0a52129a56109ecafb021f14986569295242cb0af4ea109d8786b8a5ca8481cc48daad14671841432 SHA512 2d15be8df134bff08eef9461348f07cd57c70c15a0ab044de2e69296c400b8c0e16198c90fd064d5ce83037d0bad57520e7524b0832b7a00e69397203dc90d10
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>