Here is an update to wireguard-go-0.0.20190908.

It contains the proper upstream fix for our local patch. No other
changes between the two releases should be relevant for running
wireguard on OpenBSD (the work focused mostly un wintun/winpipe and
there are some minor fixes for linux).

I am aware that MAINTAINER is not around for a bit. I would like to get
this in sooner rather than later since the revert was a kludge and I
would like to maximize the time we have for testing this before lock.

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/net/wireguard-go/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile    4 Sep 2019 16:50:23 -0000       1.9
+++ Makefile    8 Sep 2019 16:05:41 -0000
@@ -4,7 +4,7 @@ ONLY_FOR_ARCHS = amd64
 
 COMMENT =      implementation of WireGuard in Go
 
-DISTNAME =     wireguard-go-0.0.20190805
+DISTNAME =     wireguard-go-0.0.20190908
 EPOCH =                0
 
 CATEGORIES =   net security
Index: distinfo
===================================================================
RCS file: /var/cvs/ports/net/wireguard-go/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo    4 Sep 2019 16:50:23 -0000       1.5
+++ distinfo    8 Sep 2019 16:09:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (wireguard-go-0.0.20190805.tar.xz) = 
L1bSxOvD5Q1YHpLARuvzyITHA8TVs7SE5F9V5QwANNo=
-SIZE (wireguard-go-0.0.20190805.tar.xz) = 76468
+SHA256 (wireguard-go-0.0.20190908.tar.xz) = 
PEzIAqUhc20B0kv7T+KaXnTaB9aWN+x7ze4HTez2LGo=
+SIZE (wireguard-go-0.0.20190908.tar.xz) = 79212
Index: patches/patch-tun_tun_openbsd_go
===================================================================
RCS file: patches/patch-tun_tun_openbsd_go
diff -N patches/patch-tun_tun_openbsd_go
--- patches/patch-tun_tun_openbsd_go    4 Sep 2019 16:50:23 -0000       1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,26 +0,0 @@
-$OpenBSD: patch-tun_tun_openbsd_go,v 1.1 2019/09/04 16:50:23 jasper Exp $
-
-Revert commit 4d5819183e218e040fa0a73df560b4a4a9a768d7 as it
-breaks some setups.
-
-Index: tun/tun_openbsd.go
---- tun/tun_openbsd.go.orig
-+++ tun/tun_openbsd.go
-@@ -173,13 +173,10 @@ func CreateTUNFromFile(file *os.File, mtu int) (Device
- 
-       go tun.routineRouteListener(tunIfindex)
- 
--      currentMTU, err := tun.MTU()
--      if err != nil || currentMTU != mtu {
--              err = tun.setMTU(mtu)
--              if err != nil {
--                      tun.Close()
--                      return nil, err
--              }
-+      err = tun.setMTU(mtu)
-+      if err != nil {
-+              tun.Close()
-+              return nil, err
-       }
- 
-       return tun, nil

Reply via email to