aboutsummaryrefslogtreecommitdiff
path: root/net/wireguard
diff options
context:
space:
mode:
authorBernhard Froehlich <decke@FreeBSD.org>2021-03-22 12:10:41 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2021-03-22 12:10:41 +0000
commit80249f8a69aa9cbd43243717d5e85048001424d9 (patch)
tree41f99304f3666b5cd40a59ec4c24a86ba0190eb0 /net/wireguard
parent2ca6a0ed48679dcb73ef7cec08efd14026cd5030 (diff)
downloadports-80249f8a69aa9cbd43243717d5e85048001424d9.tar.gz
ports-80249f8a69aa9cbd43243717d5e85048001424d9.zip
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
Notes
Notes: svn path=/head/; revision=568954
Diffstat (limited to 'net/wireguard')
-rw-r--r--net/wireguard/Makefile23
-rw-r--r--net/wireguard/pkg-descr11
-rw-r--r--net/wireguard/pkg-message19
3 files changed, 53 insertions, 0 deletions
diff --git a/net/wireguard/Makefile b/net/wireguard/Makefile
new file mode 100644
index 000000000000..1547e23985d6
--- /dev/null
+++ b/net/wireguard/Makefile
@@ -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>
diff --git a/net/wireguard/pkg-descr b/net/wireguard/pkg-descr
new file mode 100644
index 000000000000..123b1134644b
--- /dev/null
+++ b/net/wireguard/pkg-descr
@@ -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
diff --git a/net/wireguard/pkg-message b/net/wireguard/pkg-message
new file mode 100644
index 000000000000..089763ed4eca
--- /dev/null
+++ b/net/wireguard/pkg-message
@@ -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
+}
+]