Wednesday, December 12, 2018

[update] security/gopass to 1.8.3

Hi,

Here is an update to gopass. I will send the patch upstream shortly.

Changes listed here:
https://github.com/gopasspw/gopass/releases/tag/v1.8.3

OK?

diff --git a/security/gopass/Makefile b/security/gopass/Makefile
index 7360ae665f0..49671847067 100644
--- a/security/gopass/Makefile
+++ b/security/gopass/Makefile
@@ -2,11 +2,8 @@

COMMENT = pass compatible password manager written in go

-GH_ACCOUNT = gopasspw
-GH_PROJECT = gopass
-GH_TAGNAME = f64cc6cb265f576b8937ed70a419ffdfb2c779da
-V = 1.8.2
-DISTNAME = gopass-$Vpl1
+V = 1.8.3
+DISTNAME = gopass-$V

CATEGORIES = security

@@ -18,7 +15,7 @@ PERMIT_PACKAGE_CDROM = Yes
# uses pledge()
WANTLIB += c pthread

-#MASTER_SITES = https://github.com/gopasspw/gopass/releases/download/v${V}/
+MASTER_SITES = https://github.com/gopasspw/gopass/releases/download/v${V}/

MODULES = lang/go
MODGO_TYPE = bin
@@ -32,8 +29,4 @@ ALL_TARGET = github.com/gopasspw/gopass
# Tests require MODGO_ENV, but break in weird ways when it is set.
NO_TEST = Yes

-# XXX go SNAFU means we can't patch source files
-post-configure:
- sed -i 's,Atimespec,Atim,g' ${WRKSRC}/vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go
-
.include <bsd.port.mk>
diff --git a/security/gopass/distinfo b/security/gopass/distinfo
index 0f73dc2e857..0b04d08f778 100644
--- a/security/gopass/distinfo
+++ b/security/gopass/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gopass-1.8.2pl1.tar.gz) = yGW6ovrABClwkWwgd+M0H3X+cpK5viRWpf4VrhjJuZ8=
-SIZE (gopass-1.8.2pl1.tar.gz) = 6223603
+SHA256 (gopass-1.8.3.tar.gz) = GCgeB96WGya5zOfJB+gR1Wew5Zlknw2+cDqxCJhCdag=
+SIZE (gopass-1.8.3.tar.gz) = 6571006
diff --git a/security/gopass/patches/patch-pkg_protect_protect_openbsd_go b/security/gopass/patches/patch-pkg_protect_protect_openbsd_go
new file mode 100644
index 00000000000..588f794ac91
--- /dev/null
+++ b/security/gopass/patches/patch-pkg_protect_protect_openbsd_go
@@ -0,0 +1,12 @@
+$OpenBSD$
+
+Index: pkg/protect/protect_openbsd.go
+--- pkg/protect/protect_openbsd.go.orig
++++ pkg/protect/protect_openbsd.go
+@@ -10,5 +10,5 @@ var ProtectEnabled = true
+ // Pledge on OpenBSD lets us "promise" to only run a subset of
+ // system calls: http://man.openbsd.org/pledge
+ func Pledge(s string) error {
+- return unix.Pledge(s, "")
++ return unix.PledgePromises(s)
+ }


--
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9 ADCE

No comments:

Post a Comment