summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-01-17 10:21:08 -0600
committerJohn Helmert III <ajak@gentoo.org>2023-01-17 11:03:38 -0600
commit861854ad2e1385419dbb873711a1ace3d964c43c (patch)
treeea1b9e107e0fa4e57a53d6a72064e022ee5dd229 /app-admin/gopass
parentsys-boot/grub: set GRUB_DISABLE_LINUX_PARTUUID=false by default (diff)
downloadgentoo-861854ad2e1385419dbb873711a1ace3d964c43c.tar.gz
gentoo-861854ad2e1385419dbb873711a1ace3d964c43c.tar.bz2
gentoo-861854ad2e1385419dbb873711a1ace3d964c43c.zip
app-admin/gopass: add 1.15.3, take maintainership
Closes: https://bugs.gentoo.org/844265 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-admin/gopass')
-rw-r--r--app-admin/gopass/Manifest2
-rw-r--r--app-admin/gopass/files/gopass-1.15.3-skip-tests.patch45
-rw-r--r--app-admin/gopass/gopass-1.15.3.ebuild45
-rw-r--r--app-admin/gopass/metadata.xml5
4 files changed, 96 insertions, 1 deletions
diff --git a/app-admin/gopass/Manifest b/app-admin/gopass/Manifest
index 2d26000f4a5b..eaf414350dbf 100644
--- a/app-admin/gopass/Manifest
+++ b/app-admin/gopass/Manifest
@@ -557,6 +557,8 @@ DIST google.golang.org%2Fprotobuf%2F@v%2Fv1.28.1.mod 124 BLAKE2B a5348258c468348
DIST google.golang.org%2Fprotobuf%2F@v%2Fv1.28.1.zip 1574540 BLAKE2B 3d93abc809895c9eb1651263b82290dff5e9a228c7d27b8b00495fa870449bde17478763198d7f77a09fddb7a22507ef0ec053efd6479e272046a5359f36815d SHA512 964ccc7019a964baffecea1fe739925952391e272b8d307a1716b275354383886c82eab887595f655490d907fe2bbdee7923ce9e4d4822a9905f622a94003ca5
DIST gopass-1.12.6.tar.gz 2172823 BLAKE2B 6f07d3b43653dd0e0028fdd9df16fe3438a5c16c7d268bae90430d445f4db7cb5cb2ff01a8be22543891fe6ad5f438191923416b7d4fdf8a7e2ad004ee9c47f4 SHA512 2e237d1135e79e0236091dac38329ce39aad901fa016366f618d92ddc61246f7496d73d8b7fc4e9e5cb723b60c7798736eb2359a3da5ac1a7dce6fa9bb63ae1b
DIST gopass-1.14.4.tar.gz 2246807 BLAKE2B ca9fc3f9b89c6f6fd71ad2a47f1ff20ebb5da986e71e8ba6abdf46ff42e521c47fa7aad72fa1ce8d1a127f3fbff0b5e550ab95fd86fedf275714947f225fa279 SHA512 f9bf3ff4d4cf842aeed8376eea440b646869d89158c4f2101a16359d217702845a2b1c5a807695fa9a5964640554e0995baf014c41cf95b4674f2296eb947a0d
+DIST gopass-1.15.3-deps.tar.xz 36970888 BLAKE2B e338ba7a6a248694d33116a68aefc3abbe3b6b3a9a86896b5a0c5286824bffb94bb2715c8e9c1fc6ad0715897fa39e8fd46c0734adaafe5318dcdbc0eb0ac4b2 SHA512 2a5a011b170cf2635ab33399dec5661bb7ce297508878a82f38a3b6090c4b75086592da59ff07b81873ee67786be345d3092c69730b7e3c4234b048df1898ae4
+DIST gopass-1.15.3.tar.gz 2293686 BLAKE2B f6a5191dbb6642f448103d0b5017d792be2d7ab7d1156ceeebe52dc7bdaf9b027bf417982f0eb7a189ad09a8df06eab1fc2a637c8219a72721d583542ab51372 SHA512 1638c681c4343ff42247d7de5c153e9f992d34fc46b97a5199047c38f2658d968e8bd81029447f7768b39bf432464eb2a24d25215a7cff228e108b3ca4536220
DIST gopkg.in%2Fcheck.v1%2F@v%2Fv0.0.0-20161208181325-20d25e280405.mod 25 BLAKE2B 6470f3d94700c4d8b3176d692bdb91646750f2c6a866ff2ef4183aff1de01f024a8757f97b4626ec0355092e5f25e7ded91cd5be845f627d107c58b1daf400d7 SHA512 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2
DIST gopkg.in%2Fcheck.v1%2F@v%2Fv1.0.0-20180628173108-788fd7840127.mod 25 BLAKE2B 6470f3d94700c4d8b3176d692bdb91646750f2c6a866ff2ef4183aff1de01f024a8757f97b4626ec0355092e5f25e7ded91cd5be845f627d107c58b1daf400d7 SHA512 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2
DIST gopkg.in%2Fcheck.v1%2F@v%2Fv1.0.0-20200227125254-8fa46927fb4f.mod 25 BLAKE2B 6470f3d94700c4d8b3176d692bdb91646750f2c6a866ff2ef4183aff1de01f024a8757f97b4626ec0355092e5f25e7ded91cd5be845f627d107c58b1daf400d7 SHA512 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2
diff --git a/app-admin/gopass/files/gopass-1.15.3-skip-tests.patch b/app-admin/gopass/files/gopass-1.15.3-skip-tests.patch
new file mode 100644
index 000000000000..b62e013eeb96
--- /dev/null
+++ b/app-admin/gopass/files/gopass-1.15.3-skip-tests.patch
@@ -0,0 +1,45 @@
+commit 51d636df06aac4cae32ada625f0f1bb6dda4821d
+Author: John Helmert III <ajak@gentoo.org>
+Date: Tue Jan 17 09:39:32 2023 -0600
+
+ output_test: skip test broken on dates other than 2023-01-07
+
+ Confusingly, doesn't seem reproducible from a local checkout.
+
+ Signed-off-by: John Helmert III <ajak@gentoo.org>
+
+diff --git a/internal/audit/output_test.go b/internal/audit/output_test.go
+index 027aa3a5..34ef5387 100644
+--- a/internal/audit/output_test.go
++++ b/internal/audit/output_test.go
+@@ -10,6 +10,8 @@ import (
+ )
+
+ func TestHTML(t *testing.T) {
++ t.Skip("Broken on dates other than 2023-01-07")
++
+ r := newReport()
+
+ r.AddPassword("foo", "bar")
+
+commit 452fac08c13a7792fdad2eae404f27bd668b2fb1
+Author: John Helmert III <ajak@gentoo.org>
+Date: Tue Jan 17 09:39:13 2023 -0600
+
+ clone_test: skip test which tries to run gpg-agent
+
+ Signed-off-by: John Helmert III <ajak@gentoo.org>
+
+diff --git a/internal/action/clone_test.go b/internal/action/clone_test.go
+index c2757207..a5c4a21b 100644
+--- a/internal/action/clone_test.go
++++ b/internal/action/clone_test.go
+@@ -141,6 +141,8 @@ func TestCloneGetGitConfig(t *testing.T) {
+ }
+
+ func TestCloneCheckDecryptionKeys(t *testing.T) {
++ t.Skip("TODO: Trying to use gpg-agent fails in Portage tests")
++
+ u := gptest.NewUnitTester(t)
+
+ buf := &bytes.Buffer{}
diff --git a/app-admin/gopass/gopass-1.15.3.ebuild b/app-admin/gopass/gopass-1.15.3.ebuild
new file mode 100644
index 000000000000..c54c2b1d89a1
--- /dev/null
+++ b/app-admin/gopass/gopass-1.15.3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module optfeature
+
+DESCRIPTION="a simple but powerful password manager for the terminal"
+HOMEPAGE="https://www.gopass.pw/"
+SRC_URI="https://github.com/gopasspw/gopass/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~ajak/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
+
+LICENSE="MIT Apache-2.0 BSD MPL-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~riscv ~x86"
+
+DEPEND=">=dev-lang/go-1.18"
+RDEPEND="
+ dev-vcs/git
+ >=app-crypt/gnupg-2
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.15.3-skip-tests.patch"
+)
+
+src_test() {
+ # https://github.com/gopasspw/gopass/blob/v1.15.3/.github/workflows/build.yml#L38
+ git config --global user.name nobody || die
+ git config --global user.email foo.bar@example.org || die
+
+ default
+}
+
+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
+}
diff --git a/app-admin/gopass/metadata.xml b/app-admin/gopass/metadata.xml
index 33c302268961..f8265aca21b2 100644
--- a/app-admin/gopass/metadata.xml
+++ b/app-admin/gopass/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>ajak@gentoo.org</email>
+ <name>John Helmert III</name>
+ </maintainer>
<upstream>
<remote-id type="github">gopasspw/gopass</remote-id>
</upstream>