From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 642B8138334 for ; Fri, 3 May 2019 07:15:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 422E2E0887; Fri, 3 May 2019 07:15:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 189E8E0887 for ; Fri, 3 May 2019 07:15:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D643534332A for ; Fri, 3 May 2019 07:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B3FD5D7 for ; Fri, 3 May 2019 07:15:54 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1556867739.00581305676b1b485a95d24af7d9a656c8c74f65.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-credential-helpers/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/docker-credential-helpers/Manifest app-emulation/docker-credential-helpers/docker-credential-helpers-0.6.0.ebuild app-emulation/docker-credential-helpers/metadata.xml X-VCS-Directories: app-emulation/docker-credential-helpers/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 00581305676b1b485a95d24af7d9a656c8c74f65 X-VCS-Branch: master Date: Fri, 3 May 2019 07:15:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 11183978-2a26-4f0a-95b6-9a7c24932d74 X-Archives-Hash: 972394f33d4e49a9f9356565f6975bff commit: 00581305676b1b485a95d24af7d9a656c8c74f65 Author: Rafael Kitover gmail com> AuthorDate: Thu May 2 22:20:48 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri May 3 07:15:39 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00581305 app-emulation/docker-credential-helpers: new package New ebuild for docker-credential-helpers, which has helper programs for docker to store your password and other sensitive information. This ebuild builds either docker-credential-secretservice, which uses the D-Bus secret service API to talk to either kwallet or gnome-keyring; or docker-credential-pass which relies on the pass utility; or both depending on USE flags. The supported USE flags are: - 'gnome-keyring': build secretservice helper - 'pass': build pass helper A message is printed via elog() upon successful merge about how to use the helper with docker. Signed-off-by: Rafael Kitover gmail.com> Closes: https://github.com/gentoo/gentoo/pull/9805 Signed-off-by: Michał Górny gentoo.org> app-emulation/docker-credential-helpers/Manifest | 1 + .../docker-credential-helpers-0.6.0.ebuild | 58 ++++++++++++++++++++++ .../docker-credential-helpers/metadata.xml | 27 ++++++++++ 3 files changed, 86 insertions(+) diff --git a/app-emulation/docker-credential-helpers/Manifest b/app-emulation/docker-credential-helpers/Manifest new file mode 100644 index 00000000000..487217d743a --- /dev/null +++ b/app-emulation/docker-credential-helpers/Manifest @@ -0,0 +1 @@ +DIST docker-credential-helpers-0.6.0.tar.gz 27441 BLAKE2B 6517f069782d5a496d3f140d86e5b1f32f197e9209ed61f75bfb9ba29cf0e1fa509bdbbbce2defc14ad0abe316632683cfad25e7ac9a6a1d70c3289e0ad489f5 SHA512 359e8ec700f423ce0687f13ce02946007f90456abe86659a87c59419ebde5e79adb4d28ee5e6a9762a44cfd65648c247629a5273326abf18a8880bee637e74d8 diff --git a/app-emulation/docker-credential-helpers/docker-credential-helpers-0.6.0.ebuild b/app-emulation/docker-credential-helpers/docker-credential-helpers-0.6.0.ebuild new file mode 100644 index 00000000000..d1223733ba0 --- /dev/null +++ b/app-emulation/docker-credential-helpers/docker-credential-helpers-0.6.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 2001-2018 Gentoo Foundation +# 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" + 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-emulation/docker-credential-helpers/metadata.xml b/app-emulation/docker-credential-helpers/metadata.xml new file mode 100644 index 00000000000..1e58ef54d4d --- /dev/null +++ b/app-emulation/docker-credential-helpers/metadata.xml @@ -0,0 +1,27 @@ + + + + + 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. + + + rkitover@gmail.com + Rafael Kitover + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + Build secretservice helper which works with gnome-keyring or kwallet + using D-Bus. + + + Build pass helper for the pass utility. + + +