Browse Source

wireguard-tools: update to 1.0.20200102

build-on-device
Leonid Plyushch 5 years ago
parent
commit
76a1919d63
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 5
      packages/wireguard-tools/android.c.patch
  2. 12
      packages/wireguard-tools/build.sh

5
packages/wireguard-tools/android.c.patch

@ -1,6 +1,5 @@
diff -u -r ../WireGuard-0.0.20180802/src/tools/wg-quick/android.c ./src/tools/wg-quick/android.c
--- ../WireGuard-0.0.20180802/src/tools/wg-quick/android.c 2018-08-03 03:19:55.000000000 +0000
+++ ./src/tools/wg-quick/android.c 2018-08-05 23:42:23.137024693 +0000
--- a/src/wg-quick/android.c
+++ b/src/wg-quick/android.c
@@ -242,17 +252,17 @@
if (!getuid())
return;

12
packages/wireguard-tools/build.sh

@ -1,15 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://www.wireguard.com
TERMUX_PKG_DESCRIPTION="Tools for the WireGuard secure network tunnel"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.0.20191219
TERMUX_PKG_SRCURL=https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=5aba6f0c38e97faa0b155623ba594bb0e4bd5e29deacd8d5ed8bda8d8283b0e7
TERMUX_PKG_VERSION=1.0.20200102
TERMUX_PKG_SRCURL=https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-$TERMUX_PKG_VERSION.zip
TERMUX_PKG_SHA256=fffee62b8c5520658895d9f94b420fd62204d2f8b223fa683416906600f62517
TERMUX_PKG_DEPENDS="libmnl, tsu"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src/tools WITH_BASHCOMPLETION=yes WITH_WGQUICK=no WITH_SYSTEMDUNITS=no"
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src WITH_BASHCOMPLETION=yes WITH_WGQUICK=no WITH_SYSTEMDUNITS=no"
termux_step_post_make_install() {
cd src/tools/wg-quick
cd src/wg-quick
$CC $CFLAGS $LDFLAGS -DWG_CONFIG_SEARCH_PATHS="\"$TERMUX_ANDROID_HOME/.wireguard $TERMUX_PREFIX/etc/wireguard /data/misc/wireguard /data/data/com.wireguard.android/files\"" -o wg-quick android.c
install -m 0755 wg-quick $TERMUX_PREFIX/bin
install -Dm0700 wg-quick $TERMUX_PREFIX/bin/wg-quick
}

Loading…
Cancel
Save