You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

264 lines
11 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module optfeature
EGO_SUM=(
"bitbucket.org/creachadair/stringset v0.0.10"
"bitbucket.org/creachadair/stringset v0.0.10/go.mod"
"filippo.io/age v1.0.0"
"filippo.io/age v1.0.0/go.mod"
"filippo.io/edwards25519 v1.0.0"
"filippo.io/edwards25519 v1.0.0/go.mod"
"github.com/BurntSushi/toml v0.4.1/go.mod"
"github.com/ProtonMail/go-crypto v0.0.0-20220730123233-d6ffb7692adf"
"github.com/ProtonMail/go-crypto v0.0.0-20220730123233-d6ffb7692adf/go.mod"
"github.com/atotto/clipboard v0.1.4"
"github.com/atotto/clipboard v0.1.4/go.mod"
"github.com/blang/semver/v4 v4.0.0"
"github.com/blang/semver/v4 v4.0.0/go.mod"
"github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc"
"github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod"
"github.com/bwesterb/go-ristretto v1.2.0/go.mod"
"github.com/bwesterb/go-ristretto v1.2.1/go.mod"
"github.com/caspr-io/yamlpath v0.0.0-20200722075116-502e8d113a9b"
"github.com/caspr-io/yamlpath v0.0.0-20200722075116-502e8d113a9b/go.mod"
"github.com/cenkalti/backoff v2.2.1+incompatible"
"github.com/cenkalti/backoff v2.2.1+incompatible/go.mod"
"github.com/chzyer/logex v1.2.1"
"github.com/chzyer/logex v1.2.1/go.mod"
"github.com/chzyer/readline v1.5.1"
"github.com/chzyer/readline v1.5.1/go.mod"
"github.com/chzyer/test v1.0.0"
"github.com/chzyer/test v1.0.0/go.mod"
"github.com/cloudflare/circl v1.1.0/go.mod"
"github.com/cloudflare/circl v1.2.0"
"github.com/cloudflare/circl v1.2.0/go.mod"
"github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod"
"github.com/cpuguy83/go-md2man/v2 v2.0.2"
"github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod"
"github.com/creack/pty v1.1.9/go.mod"
"github.com/davecgh/go-spew v1.1.0/go.mod"
"github.com/davecgh/go-spew v1.1.1"
"github.com/davecgh/go-spew v1.1.1/go.mod"
"github.com/dustin/go-humanize v1.0.0"
"github.com/dustin/go-humanize v1.0.0/go.mod"
"github.com/fatih/color v1.13.0"
"github.com/fatih/color v1.13.0/go.mod"
"github.com/godbus/dbus v0.0.0-20190623212516-8a1682060722"
"github.com/godbus/dbus v0.0.0-20190623212516-8a1682060722/go.mod"
"github.com/godbus/dbus/v5 v5.0.4/go.mod"
"github.com/gokyle/twofactor v1.0.1"
"github.com/gokyle/twofactor v1.0.1/go.mod"
"github.com/golang/mock v1.6.0"
"github.com/golang/protobuf v1.3.1/go.mod"
"github.com/golang/protobuf v1.3.2/go.mod"
"github.com/golang/protobuf v1.5.0/go.mod"
"github.com/golang/protobuf v1.5.2"
"github.com/golang/protobuf v1.5.2/go.mod"
"github.com/google/go-cmp v0.3.0/go.mod"
"github.com/google/go-cmp v0.5.2/go.mod"
"github.com/google/go-cmp v0.5.5/go.mod"
"github.com/google/go-cmp v0.5.8"
"github.com/google/go-cmp v0.5.8/go.mod"
"github.com/google/go-github v17.0.0+incompatible"
"github.com/google/go-github v17.0.0+incompatible/go.mod"
"github.com/google/go-github/v33 v33.0.0"
"github.com/google/go-github/v33 v33.0.0/go.mod"
"github.com/google/go-querystring v1.0.0/go.mod"
"github.com/google/go-querystring v1.1.0"
"github.com/google/go-querystring v1.1.0/go.mod"
"github.com/hashicorp/errwrap v1.0.0/go.mod"
"github.com/hashicorp/errwrap v1.1.0"
"github.com/hashicorp/errwrap v1.1.0/go.mod"
"github.com/hashicorp/go-multierror v1.1.1"
"github.com/hashicorp/go-multierror v1.1.1/go.mod"
"github.com/hashicorp/golang-lru v0.5.4"
"github.com/hashicorp/golang-lru v0.5.4/go.mod"
"github.com/jsimonetti/pwscheme v0.0.0-20220125093853-4d9895f5db73"
"github.com/jsimonetti/pwscheme v0.0.0-20220125093853-4d9895f5db73/go.mod"
"github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51"
"github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod"
"github.com/kr/pretty v0.1.0/go.mod"
"github.com/kr/pretty v0.2.1/go.mod"
"github.com/kr/pretty v0.3.0"
"github.com/kr/pretty v0.3.0/go.mod"
"github.com/kr/pty v1.1.1/go.mod"
"github.com/kr/text v0.1.0/go.mod"
"github.com/kr/text v0.2.0"
"github.com/kr/text v0.2.0/go.mod"
"github.com/martinhoefling/goxkcdpwgen v0.1.1"
"github.com/martinhoefling/goxkcdpwgen v0.1.1/go.mod"
"github.com/mattn/go-colorable v0.1.4/go.mod"
"github.com/mattn/go-colorable v0.1.9/go.mod"
"github.com/mattn/go-colorable v0.1.12"
"github.com/mattn/go-colorable v0.1.12/go.mod"
"github.com/mattn/go-isatty v0.0.8/go.mod"
"github.com/mattn/go-isatty v0.0.10/go.mod"
"github.com/mattn/go-isatty v0.0.12/go.mod"
"github.com/mattn/go-isatty v0.0.14"
"github.com/mattn/go-isatty v0.0.14/go.mod"
"github.com/mattn/go-runewidth v0.0.7/go.mod"
"github.com/mattn/go-tty v0.0.4"
"github.com/mattn/go-tty v0.0.4/go.mod"
"github.com/mitchellh/go-homedir v1.1.0"
"github.com/mitchellh/go-homedir v1.1.0/go.mod"
"github.com/mitchellh/go-ps v1.0.0"
"github.com/mitchellh/go-ps v1.0.0/go.mod"
"github.com/muesli/crunchy v0.4.0"
"github.com/muesli/crunchy v0.4.0/go.mod"
"github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354"
"github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod"
"github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod"
"github.com/pkg/errors v0.8.1/go.mod"
"github.com/pkg/errors v0.9.1"
"github.com/pkg/errors v0.9.1/go.mod"
"github.com/pmezard/go-difflib v1.0.0"
"github.com/pmezard/go-difflib v1.0.0/go.mod"
"github.com/pquerna/otp v1.3.0"
"github.com/pquerna/otp v1.3.0/go.mod"
"github.com/rogpeppe/go-internal v1.6.1/go.mod"
"github.com/rogpeppe/go-internal v1.8.1-0.20210923151022-86f73c517451"
"github.com/rogpeppe/go-internal v1.8.1-0.20210923151022-86f73c517451/go.mod"
"github.com/rs/xid v1.3.0/go.mod"
"github.com/rs/zerolog v1.27.0"
"github.com/rs/zerolog v1.27.0/go.mod"
"github.com/russross/blackfriday/v2 v2.1.0"
"github.com/russross/blackfriday/v2 v2.1.0/go.mod"
"github.com/schollz/closestmatch v0.0.0-20190308193919-1fbe626be92e"
"github.com/schollz/closestmatch v0.0.0-20190308193919-1fbe626be92e/go.mod"
"github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e"
"github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e/go.mod"
"github.com/spf13/pflag v1.0.3/go.mod"
"github.com/stretchr/objx v0.1.0/go.mod"
"github.com/stretchr/objx v0.4.0/go.mod"
"github.com/stretchr/testify v1.1.4/go.mod"
"github.com/stretchr/testify v1.3.0/go.mod"
"github.com/stretchr/testify v1.7.0/go.mod"
"github.com/stretchr/testify v1.7.1/go.mod"
"github.com/stretchr/testify v1.8.0"
"github.com/stretchr/testify v1.8.0/go.mod"
"github.com/twpayne/go-pinentry v0.2.0"
"github.com/twpayne/go-pinentry v0.2.0/go.mod"
"github.com/urfave/cli/v2 v2.11.1"
"github.com/urfave/cli/v2 v2.11.1/go.mod"
"github.com/xrash/smetrics v0.0.0-20170218160415-a3153f7040e9/go.mod"
"github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673"
"github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod"
"go.uber.org/atomic v1.7.0/go.mod"
"go.uber.org/atomic v1.9.0"
"go.uber.org/atomic v1.9.0/go.mod"
"go.uber.org/multierr v1.8.0"
"go.uber.org/multierr v1.8.0/go.mod"
"golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
"golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod"
"golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd/go.mod"
"golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa"
"golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod"
"golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e"
"golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod"
"golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
"golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod"
"golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod"
"golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod"
"golang.org/x/net v0.0.0-20220728211354-c7608f3a8462"
"golang.org/x/net v0.0.0-20220728211354-c7608f3a8462/go.mod"
"golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod"
"golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c"
"golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c/go.mod"
"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
"golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod"
"golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod"
"golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod"
"golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
"golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
"golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
"golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod"
"golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod"
"golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod"
"golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod"
"golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod"
"golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod"
"golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod"
"golang.org/x/sys v0.0.0-20220731174439-a90be440212d"
"golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod"
"golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod"
"golang.org/x/term v0.0.0-20220722155259-a9ba230a4035"
"golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod"
"golang.org/x/text v0.3.0/go.mod"
"golang.org/x/text v0.3.2/go.mod"
"golang.org/x/text v0.3.3/go.mod"
"golang.org/x/text v0.3.6/go.mod"
"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
"golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod"
"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
"google.golang.org/appengine v1.1.0/go.mod"
"google.golang.org/appengine v1.6.7"
"google.golang.org/appengine v1.6.7/go.mod"
"google.golang.org/protobuf v1.26.0-rc.1/go.mod"
"google.golang.org/protobuf v1.26.0/go.mod"
"google.golang.org/protobuf v1.28.1"
"google.golang.org/protobuf v1.28.1/go.mod"
"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
"gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod"
"gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c"
"gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod"
"gopkg.in/errgo.v2 v2.1.0/go.mod"
"gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71/go.mod"
"gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod"
"gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod"
"gopkg.in/yaml.v3 v3.0.1"
"gopkg.in/yaml.v3 v3.0.1/go.mod"
"gotest.tools/v3 v3.0.2"
"gotest.tools/v3 v3.0.2/go.mod"
"rsc.io/qr v0.2.0"
"rsc.io/qr v0.2.0/go.mod"
)
go-module_set_globals
DESCRIPTION="a simple but powerful password manager for the terminal"
HOMEPAGE="https://www.gopass.pw/"
# These have the same raw content, just different paths in them upstream
# The COMMIT file is still missing!
RAW_SRC_URI="https://github.com/gopasspw/gopass/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RELEASE_SRC_URI="https://github.com/gopasspw/gopass/releases/download/v${PV}/${P}.tar.gz"
COMMIT="4fdac8b"
SRC_URI="${EGO_SUM_SRC_URI}"
SRC_URI+=" ${RAW_SRC_URI}"
LICENSE="MIT Apache-2.0 BSD MPL-2.0 BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
RESTRICT="strip test"
QA_PRESTRIPPED="usr/bin/gopass"
DEPEND=">=dev-lang/go-1.18"
RDEPEND="
dev-vcs/git
>=app-crypt/gnupg-2
"
src_prepare() {
default
# If this file does not exist, the makefile will call Git, and then fail.
test -e "${S}/COMMIT" || echo "$COMMIT" >"${S}/COMMIT"
}
src_install() {
emake install DESTDIR="${ED}/usr"
einstalldocs
}
pkg_postinst() {
optfeature "browser integration" app-admin/gopass-jsonapi
optfeature "git credentials helper" app-admin/git-credential-gopass
optfeature "haveibeenpwnd.com integration" app-admin/gopass-hibp
optfeature "summon secrets helper" app-admin/gopass-summon-provider
}