summaryrefslogtreecommitdiff
path: root/app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-01-10 12:51:16 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-01-10 12:51:36 +0200
commit6eea76af9f86d894b0aade455682f8b38fce5214 (patch)
treeec0e132309010946d96d16cfa11741956e7016dc /app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild
parent722ead6e024105daff6a166e4b3b8462641091d4 (diff)
downloadgentoo-6eea76af9f86d894b0aade455682f8b38fce5214.tar.gz
gentoo-6eea76af9f86d894b0aade455682f8b38fce5214.tar.bz2
gentoo-6eea76af9f86d894b0aade455682f8b38fce5214.zip
app-containers/docker-credential-helpers: add 0.8.2
Closes: https://bugs.gentoo.org/844574 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild')
-rw-r--r--app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild b/app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild
new file mode 100644
index 000000000000..d49feeba1dbc
--- /dev/null
+++ b/app-containers/docker-credential-helpers/docker-credential-helpers-0.8.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Suite of programs to use native stores to keep Docker credentials safe"
+HOMEPAGE="https://github.com/docker/docker-credential-helpers"
+SRC_URI="https://github.com/docker/docker-credential-helpers/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+IUSE="keyring pass"
+REQUIRED_USE="|| ( keyring pass )"
+RESTRICT="test"
+
+DEPEND="keyring? ( app-crypt/libsecret )"
+RDEPEND="${DEPEND}
+ pass? ( app-admin/pass )
+"
+
+src_compile() {
+ local mymakeflags=(
+ VERSION="${PV}"
+ REVISION="v${PV}"
+ )
+ use keyring && mymakeflags+=( secretservice )
+ use pass && mymakeflags+=( pass )
+ emake -j1 "${mymakeflags[@]}"
+}
+
+src_install() {
+ dobin bin/build/*
+ dodoc MAINTAINERS README.md
+}
+
+pkg_postinst() {
+ if use keyring; then
+ elog "For 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"
+}