aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wireguard-tools
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2017-03-02 06:17:27 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-03-02 06:25:45 +0000
commitbb1bb8e818219c3266d70782521d1c16f1eb3f52 (patch)
tree45f932d395e32650a0ae06eb31e396b898487a63 /testing/wireguard-tools
parent9b2a72188ff12317960d75f8df398cba6df693fb (diff)
downloadaports-bb1bb8e818219c3266d70782521d1c16f1eb3f52.tar.bz2
aports-bb1bb8e818219c3266d70782521d1c16f1eb3f52.tar.xz
testing/wireguard-tools: new aport
WireGuard is a novel VPN that runs inside the Linux Kernel and 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. It runs over UDP. https://www.wireguard.io
Diffstat (limited to 'testing/wireguard-tools')
-rw-r--r--testing/wireguard-tools/APKBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/testing/wireguard-tools/APKBUILD b/testing/wireguard-tools/APKBUILD
new file mode 100644
index 0000000000..6cdb23777c
--- /dev/null
+++ b/testing/wireguard-tools/APKBUILD
@@ -0,0 +1,65 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+
+pkgname=wireguard-tools
+pkgver=0.0.20170223
+pkgrel=0
+pkgdesc="Next generation secure network tunnel: userspace tools"
+arch='all'
+url='https://www.wireguard.io'
+license="GPLv2"
+makedepends="libmnl-dev sparse"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch \
+ $pkgname-tests:tests:noarch"
+source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$pkgver.tar.xz"
+builddir="$srcdir"/WireGuard-$pkgver
+
+build() {
+ cd "$builddir"
+ make -C src/tools || return 1
+}
+
+package() {
+ cd "$builddir"
+
+ install_if="linux-${_flavor}=${_kver} $pkgname"
+ mkdir -p "$pkgdir"/usr/share/doc/$_name
+
+ make -C src/tools \
+ DESTDIR="$pkgdir" \
+ WITH_BASHCOMPLETION=yes \
+ WITH_WGQUICK=yes \
+ WITH_SYSTEMDUNITS=no \
+ install || return 1
+
+ find "$builddir"/contrib/examples -name '.gitignore' -delete
+ cp -rf "$builddir"/contrib/examples "$pkgdir"/usr/share/doc/$_name/
+}
+
+bashcomp() {
+ depends="bash"
+ pkgdesc="Wireguard BASH completions"
+
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/share "$subpkgdir"/usr
+}
+
+tests() {
+ pkgdesc="Wireguard test suites"
+
+ mkdir -p "$subpkgdir"/usr/share/wireguard
+ mv "$builddir"/src/tests "$subpkgdir"/usr/share/wireguard
+ cp -rf "$builddir"/contrib/external-tests "$subpkgdir"/usr/share/wireguard
+}
+
+check() {
+ return 0
+ # currently failing: attribute 'nocapture': unknown attribute
+ # not part of musl libc ?
+ make -C src/ \
+ KERNELDIR=/lib/modules/${_abi_release}/build \
+ check \
+ || return 1
+}
+
+sha512sums="273ef6463d447cb04b608a0379cce5c0ed4065f988b3f449995593592b42f2fc269fc249a8e3c22c28bfa682430ee20b5b7a46a96803c9c67d1b6fed7b800455 WireGuard-0.0.20170223.tar.xz"