From 96f8c61e69a98d006de5d96e81d47990958d63b2 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Sun, 10 Jun 2018 12:57:54 +1000 Subject: [PATCH] Update to v4.25-9656-4 --- .SRCINFO | 4 +++- PKGBUILD | 5 ++++- aarch64.patch | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 aarch64.patch diff --git a/.SRCINFO b/.SRCINFO index b42c7d3..54d18d3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = softethervpn pkgdesc = Multi-protocol VPN Program from University of Tsukuba pkgver = v4.25_9656 - pkgrel = 3 + pkgrel = 4 url = http://www.softether.org/ arch = i686 arch = x86_64 @@ -12,10 +12,12 @@ pkgbase = softethervpn depends = openssl depends = zlib source = http://www.softether-download.com/files/softether/v4.25-9656-rtm-2018.01.15-tree/Source_Code/softether-src-v4.25-9656-rtm.tar.gz + source = aarch64.patch source = softethervpn-bridge.service source = softethervpn-client.service source = softethervpn-server.service sha1sums = 5ceb11866af212278c8a151bb40a2a048bdd7fea + sha1sums = 75d351833c41ee4c54d4ad18dde678e6df47e220 sha1sums = 12a3919aabcdd7531320056a4b43072892232925 sha1sums = ba594c7defb52548369726c56e2cad633019abef sha1sums = 06cd320553daf0dffdf6a81a22d630fbe211fc33 diff --git a/PKGBUILD b/PKGBUILD index 9fbc85a..2fca67d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,16 @@ # Maintainer: Jonathan Liu pkgname=softethervpn pkgver=v4.25_9656 -pkgrel=3 +pkgrel=4 pkgdesc="Multi-protocol VPN Program from University of Tsukuba" arch=('i686' 'x86_64' 'aarch64' 'armv7h') source=('http://www.softether-download.com/files/softether/v4.25-9656-rtm-2018.01.15-tree/Source_Code/softether-src-v4.25-9656-rtm.tar.gz' + 'aarch64.patch' 'softethervpn-bridge.service' 'softethervpn-client.service' 'softethervpn-server.service') sha1sums=('5ceb11866af212278c8a151bb40a2a048bdd7fea' + '75d351833c41ee4c54d4ad18dde678e6df47e220' '12a3919aabcdd7531320056a4b43072892232925' 'ba594c7defb52548369726c56e2cad633019abef' '06cd320553daf0dffdf6a81a22d630fbe211fc33') @@ -19,6 +21,7 @@ url="http://www.softether.org/" build(){ cd "${srcdir}/${pkgver//_/-}" + patch -Np1 -i "${srcdir}/aarch64.patch" if [ "${CARCH}" == "i686" ]; then cp src/makefiles/linux_32bit.mak Makefile diff --git a/aarch64.patch b/aarch64.patch new file mode 100644 index 0000000..cc11ba4 --- /dev/null +++ b/aarch64.patch @@ -0,0 +1,37 @@ +From 1d4d7f538065462a76cfe258ee5151dee03ae85f Mon Sep 17 00:00:00 2001 +From: Denis Lesnov +Date: Thu, 22 Dec 2016 18:10:52 +0300 +Subject: [PATCH] fix aarch64 build + +--- + src/makefiles/linux_64bit.mak | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/src/makefiles/linux_64bit.mak b/src/makefiles/linux_64bit.mak +index 0fd8c018..1f81ab7f 100644 +--- a/src/makefiles/linux_64bit.mak ++++ b/src/makefiles/linux_64bit.mak +@@ -25,13 +25,19 @@ + + #CC=gcc + +-OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char -m64 ++ifeq ($(shell uname -m),aarch64) ++ M64:= ++else ++ M64:=-m64 ++endif ++ ++OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char $(M64) + +-OPTIONS_LINK_DEBUG=-g -fsigned-char -m64 -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz ++OPTIONS_LINK_DEBUG=-g -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz + +-OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char -m64 ++OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char $(M64) + +-OPTIONS_LINK_RELEASE=-O2 -fsigned-char -m64 -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz ++OPTIONS_LINK_RELEASE=-O2 -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz + + INSTALL_BINDIR=/usr/bin/ + INSTALL_VPNSERVER_DIR=/usr/vpnserver/