Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2021 12:10:41 +0000 (UTC)
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568954 - in head/net: . wireguard
Message-ID:  <202103221210.12MCAfEG097072@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: decke
Date: Mon Mar 22 12:10:41 2021
New Revision: 568954
URL: https://svnweb.freebsd.org/changeset/ports/568954

Log:
  WireGuard is an extremely simple yet fast and modern VPN that utilizes
  state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
  more useful than IPSec, while avoiding the massive headache. It intends to
  be considerably more performant than OpenVPN. WireGuard is designed as a
  general purpose VPN for running on embedded interfaces and super computers
  alike, fit for many different circumstances.
  
  This package does not contain anything by itself - it is a "meta-port" that
  depends on other wireguard packages.
  
  WWW: https://www.wireguard.com

Added:
  head/net/wireguard/
  head/net/wireguard/Makefile   (contents, props changed)
  head/net/wireguard/pkg-descr   (contents, props changed)
  head/net/wireguard/pkg-message   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Mar 22 12:07:45 2021	(r568953)
+++ head/net/Makefile	Mon Mar 22 12:10:41 2021	(r568954)
@@ -1527,6 +1527,7 @@
     SUBDIR += webalizer-geodb
     SUBDIR += whois
     SUBDIR += widentd
+    SUBDIR += wireguard
     SUBDIR += wireguard-go
     SUBDIR += wireguard-kmod
     SUBDIR += wireguard-tools

Added: head/net/wireguard/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/wireguard/Makefile	Mon Mar 22 12:10:41 2021	(r568954)
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME=	wireguard
+PORTVERSION=	1
+PORTEPOCH=	1
+CATEGORIES=	net net-vpn
+
+MAINTAINER=	decke@FreeBSD.org
+COMMENT=	Meta-port for Wireguard
+
+RUN_DEPENDS=	wg-quick:net/wireguard-tools
+
+USES=	metaport
+
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} < 1201000
+RUN_DEPENDS+=	wireguard-go:net/wireguard-go
+.else
+RUN_DEPENDS+=	${KMODDIR}/if_wg.ko:net/wireguard-kmod
+.endif
+
+.include <bsd.port.mk>

Added: head/net/wireguard/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/wireguard/pkg-descr	Mon Mar 22 12:10:41 2021	(r568954)
@@ -0,0 +1,11 @@
+WireGuard is an extremely simple yet fast and modern VPN that utilizes
+state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
+more useful than IPSec, while avoiding the massive headache. It intends to
+be considerably more performant than OpenVPN. WireGuard is designed as a
+general purpose VPN for running on embedded interfaces and super computers
+alike, fit for many different circumstances.
+
+This package does not contain anything by itself - it is a "meta-port" that
+depends on other wireguard packages.
+
+WWW: https://www.wireguard.com

Added: head/net/wireguard/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/wireguard/pkg-message	Mon Mar 22 12:10:41 2021	(r568954)
@@ -0,0 +1,19 @@
+[
+{ type: install
+  message: <<EOM
+For FreeBSD < 12.1 only the userland implementation wireguard-go is
+available.
+
+For FreeBSD >= 12.1 we default to use the kernel module if_wg(4). If
+you experience problems with it you can switch back to wireguard-go
+easily by unloading the kernel module. The userland tools wg-quick(8)
+and wg(8) try to use if_wg(4) if available and otherwise fallback to
+wireguard-go. Config files are fully compatible.
+
+To load the kernel module at boot add this to your /etc/rc.conf or
+/etc/rc.conf.d/wireguard file:
+
+kld_list="/boot/modules/if_wg.ko"
+EOM
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103221210.12MCAfEG097072>