app-crypt/sops: new package, add 3.8.1
This commit is contained in:
parent
fcd6561283
commit
5fb67bedef
2
app-crypt/sops/Manifest
Normal file
2
app-crypt/sops/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST sops-3.8.1-vendor.tar.xz 3965716 BLAKE2B 0a9170d9e8ca4ca41ebe958ccd1afd501de5ea6142215cda3e10d9bad159bdc2b55ea96ba432ae2a03328c9752ab6d97967fd560c9f82f0910bd10d2462f4475 SHA512 9365f583b89c13389b317a4c6efe56e08e3c362f221a5ed6fd8ec2c051705ca5095b2dbfceadf985a1b511452cd7aec1b74398a6113d5883028a3cf684c8ddf2
|
||||
DIST sops-3.8.1.tar.gz 229477 BLAKE2B d6917798dad07bc3cc6e119414f0781671a385a15e4495d22b53324066df053f7143ae28ba7ee288485b95ec5e2a4b64f53310416565e792b589c2d406a25aae SHA512 92557fdd8f8501cc2b8ac42ada9e7ef7e7b41f1573df2d052ce5d5060de3601eac5f780b7b6dbbb54a0b55a393192c2289a481052a8975b085e6e86b40900cb2
|
49
app-crypt/sops/sops-3.8.1.ebuild
Normal file
49
app-crypt/sops/sops-3.8.1.ebuild
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mozilla/${PN}.git"
|
||||
#KEYWORDS=""
|
||||
RESTRICT="network-sandbox"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/mozilla/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://hikari.butaishoujo.moe/b/67314ee3/${P}-vendor.tar.xz
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
RESTRICT="mirror"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Simple and flexible tool for managing secrets"
|
||||
HOMEPAGE="https://github.com/mozilla/sops"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
DOCS=( {CHANGELOG,README}.rst )
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
}
|
||||
fi
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 \
|
||||
go build -v -ldflags "-s -w" -o "${PN}" ./cmd/sops
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go test -work || die "test failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin ${PN}
|
||||
}
|
Loading…
Reference in a new issue