From 5eb5d1277d75556bf8ddb0bb556f64a3e906321e Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 13 May 2019 15:10:30 +0000 Subject: [PATCH] import wireguard-tools-0.0.20190406 WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. based on the initial port by bentley@ ok sthen@ --- net/wireguard-tools/Makefile | 40 +++++++++++++++++++++++++++++++++++ net/wireguard-tools/distinfo | 2 ++ net/wireguard-tools/pkg/DESCR | 2 ++ net/wireguard-tools/pkg/PLIST | 9 ++++++++ 4 files changed, 53 insertions(+) create mode 100644 net/wireguard-tools/Makefile create mode 100644 net/wireguard-tools/distinfo create mode 100644 net/wireguard-tools/pkg/DESCR create mode 100644 net/wireguard-tools/pkg/PLIST diff --git a/net/wireguard-tools/Makefile b/net/wireguard-tools/Makefile new file mode 100644 index 00000000000..d6fd2a4644d --- /dev/null +++ b/net/wireguard-tools/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2019/05/13 15:10:30 jasper Exp $ + +COMMENT = fast and secure VPN + +V = 0.0.20190406 +DISTNAME = WireGuard-$V +PKGNAME = wireguard-tools-$V + +CATEGORIES = net security + +HOMEPAGE = https://www.wireguard.com/ + +# GPLv2 only +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += c + +MASTER_SITES = https://git.zx2c4.com/WireGuard/snapshot/ + +EXTRACT_SUFX = .tar.xz + +RUN_DEPENDS = shells/bash + +MAKE_FLAGS = WITH_WGQUICK=yes \ + WITH_BASHCOMPLETION=yes \ + V=1 +FAKE_FLAGS = MANDIR=${PREFIX}/man \ + PREFIX=${PREFIX} +USE_GMAKE = Yes + +NO_TEST = Yes + +WRKSRC = ${WRKDIST}/src/tools + +ALL_TARGET = wg + +post-extract: + sed -i 's/install -v /install /g' ${WRKSRC}/Makefile + +.include diff --git a/net/wireguard-tools/distinfo b/net/wireguard-tools/distinfo new file mode 100644 index 00000000000..de5fb7cdb42 --- /dev/null +++ b/net/wireguard-tools/distinfo @@ -0,0 +1,2 @@ +SHA256 (WireGuard-0.0.20190406.tar.xz) = LwbzrfcLledKdzaiLc9unvYjsxGhW31VtUdOV8PQQVs= +SIZE (WireGuard-0.0.20190406.tar.xz) = 324112 diff --git a/net/wireguard-tools/pkg/DESCR b/net/wireguard-tools/pkg/DESCR new file mode 100644 index 00000000000..9869e6020f6 --- /dev/null +++ b/net/wireguard-tools/pkg/DESCR @@ -0,0 +1,2 @@ +WireGuard is an extremely simple yet fast and modern VPN that utilizes +state-of-the-art cryptography. diff --git a/net/wireguard-tools/pkg/PLIST b/net/wireguard-tools/pkg/PLIST new file mode 100644 index 00000000000..371cad96c4b --- /dev/null +++ b/net/wireguard-tools/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2019/05/13 15:10:30 jasper Exp $ +@bin bin/wg +bin/wg-quick +@man man/man8/wg-quick.8 +@man man/man8/wg.8 +share/bash-completion/ +share/bash-completion/completions/ +share/bash-completion/completions/wg +share/bash-completion/completions/wg-quick