summaryrefslogtreecommitdiff
path: root/user/wireguard-module
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 18:31:16 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 18:31:16 +0000
commitfa3816cee03d13b76e503ab77f6bd4d0522ace24 (patch)
treef0d18976c39824aba557a6a50ec44d6f0d061f11 /user/wireguard-module
parent1411626ad772db4bf523fd7304cec1b9ed90f950 (diff)
parentfe7b653f5552cb5191e823fbc3ba4ddfbf0d1959 (diff)
downloadpackages-fa3816cee03d13b76e503ab77f6bd4d0522ace24.tar.gz
packages-fa3816cee03d13b76e503ab77f6bd4d0522ace24.tar.bz2
packages-fa3816cee03d13b76e503ab77f6bd4d0522ace24.tar.xz
packages-fa3816cee03d13b76e503ab77f6bd4d0522ace24.zip
Merge branch 'wireguard' into 'master'
user/wireguard-module: New package TODO: Pending changes in our module signing process, this module is currently unsigned. Depends on MR 170. See merge request !171
Diffstat (limited to 'user/wireguard-module')
-rw-r--r--user/wireguard-module/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/wireguard-module/APKBUILD b/user/wireguard-module/APKBUILD
new file mode 100644
index 000000000..07abf7180
--- /dev/null
+++ b/user/wireguard-module/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Luis Ressel <aranea@aixah.de>
+# Maintainer: Luis Ressel <aranea@aixah.de>
+_kernelver="4.14.88-mc13"
+pkgver=0.0.20190123
+pkgrel=0
+_pkgname="wireguard-module"
+pkgname="$_pkgname-$_kernelver"
+_pkgreal="WireGuard"
+pkgdesc="Kernel module for the WireGuard VPN, built for easy-kernel"
+url="https://www.wireguard.com/"
+arch="all"
+options="!check !dbg !strip" # no test suite
+license="GPL-2.0-only"
+provides="$_pkgname=$pkgver"
+depends="easy-kernel-modules-$_kernelver"
+makedepends="easy-kernel-src-$_kernelver"
+source="https://git.zx2c4.com/WireGuard/snapshot/$_pkgreal-$pkgver.tar.xz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ sed -i -e '/depmod/d' src/Makefile # temporary hack
+}
+
+build() {
+ cd "$builddir"
+ make -C src KERNELDIR="/usr/src/linux-$_kernelver" module
+}
+
+package() {
+ cd "$builddir"
+ make -C src KERNELDIR="/usr/src/linux-$_kernelver" INSTALL_MOD_PATH="$pkgdir" module-install
+}
+
+sha512sums="8be40cebabca2a40f98ee10d6fa93708b12b17c6b0eab9aa8b7fab353d78fbd5b280b7b90cb2973cf74a1b9d47c3d250bf3ede6d1318129a45d57e21329b7f59 WireGuard-0.0.20190123.tar.xz"