app-crypt/sops - 3.5.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-crypt/sops-3.5.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-crypt/sops-3.5.0

Or alternatively:

emerge --autounmask-write -a =app-crypt/sops-3.5.0

Package Information

Description:
Simple and flexible tool for managing secrets
Homepage:
https://getsops.io/ https://github.com/getsops/sops
License:
MPL-2.0 Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0

Ebuild Details

Version EAPI Keywords Slot
3.5.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Simple and flexible tool for managing secrets"
HOMEPAGE="https://getsops.io/ https://github.com/getsops/sops"
SRC_URI="https://github.com/getsops/sops/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"

LICENSE="MPL-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="test? ( app-crypt/gnupg )"

src_compile() {
	# go.mod declares go 1.13, so vendor/ isn't used without -mod=vendor
	ego build -mod=vendor -o bin/${PN} ./cmd/sops
}

src_test() {
	local -x GNUPGHOME="${T}/gnupg"
	mkdir -m 700 "${GNUPGHOME}" || die
	gpg --batch --import pgp/sops_functional_tests_key.asc || die

	local -x VAULT_ADDR="http://127.0.0.1:8200"

	nonfatal ego test -mod=vendor -vet=off ./... -skip '^TestRetrievePGPKey$'
	local ret=${?}
	gpgconf --kill all
	[[ ${ret} -eq 0 ]] || die "tests failed"
}

src_install() {
	dobin bin/${PN}
	einstalldocs
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/sops | euse -E <flag> -p app-crypt/sops | euse -D <flag> -p app-crypt/sops

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( app-crypt/gnupg )

Manifest for 3.5.0

Type File Size Source URLs
DIST sops-3.5.0-vendor.tar.xz 1927592 bytes https://github.com/gentoo-golang-dist/sops/releases/download/v3.5.0/sops-3.5.0-vendor.tar.xz
DIST sops-3.5.0.tar.gz 172058 bytes https://github.com/getsops/sops/archive/v3.5.0.tar.gz