mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-containers/docker-credential-helpers: add 0.9.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST docker-credential-helpers-0.8.2.tar.gz 283816 BLAKE2B 334ca059b619e5e3528864a99b07eea61b98083989aa8e8b619c83d781caad97fbf5f3ed60879adacf27d81e0b991a38567e1fa2bc27b9a772d86b51437a6e03 SHA512 ca04b7fe78871389c9f968b730c18e2aca2d2a818ce87c1f138efb7dafbfdea7b83c2c16504131d04c295428debee2187036e603dba711369b5de1a3993c2e8c
|
||||
DIST docker-credential-helpers-0.9.0.tar.gz 294861 BLAKE2B b58d7b4a37a53192825ff3ddae1bbbde0f7f6b32d4ffe34c3f6d97e64ebdd59f979efc8f9122db4e5d4085521f0c2574d4e5b2b8912beaa41ed9a25a5a1bc6f8 SHA512 7daddef856555866c727a9655b34265224afdc9128880d10ba53f915f51f486958bf32cf4838cbeada9b870b128377259cc5b79d0f42fdfee00a438194e2afab
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user