2016-02-15 16:14:18 +09:00
|
|
|
# Maintainer: Tun Win Naing <twnaing(at)outlook(dot)com>
|
2016-05-26 11:45:55 +09:00
|
|
|
# Maintainer: Jonathan Liu <net147@gmail.com>
|
2016-02-15 16:14:18 +09:00
|
|
|
pkgname=softethervpn
|
2019-04-06 12:19:12 +09:00
|
|
|
pkgver=v4.29_9680
|
|
|
|
pkgrel=1
|
2016-02-15 16:14:18 +09:00
|
|
|
pkgdesc="Multi-protocol VPN Program from University of Tsukuba"
|
2018-06-07 09:35:17 +09:00
|
|
|
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
|
2019-04-06 12:19:12 +09:00
|
|
|
url="https://www.softether.org/"
|
|
|
|
license=('Apache')
|
|
|
|
depends=('bash' 'openssl' 'zlib')
|
|
|
|
source=("https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/${pkgver//_/-}-rtm/softether-src-${pkgver//_/-}-rtm.tar.gz"
|
2018-06-10 11:57:54 +09:00
|
|
|
'aarch64.patch'
|
2016-05-26 11:45:55 +09:00
|
|
|
'softethervpn-bridge.service'
|
|
|
|
'softethervpn-client.service'
|
|
|
|
'softethervpn-server.service')
|
2019-04-06 12:19:12 +09:00
|
|
|
md5sums=('0b0bf86c59374f5ea1dbde20b3a3b5d3'
|
|
|
|
'8b92f69f9d8d852a3739d0e48bad0454'
|
|
|
|
'1d54c0065ae8947bd8455b9e2050c1af'
|
|
|
|
'a1134fea991e6e00dc4910b1be16dc73'
|
|
|
|
'b54b4f68d56555ddfffc50c2c399624f')
|
2016-02-15 16:14:18 +09:00
|
|
|
|
|
|
|
build(){
|
|
|
|
cd "${srcdir}/${pkgver//_/-}"
|
2018-06-10 11:57:54 +09:00
|
|
|
patch -Np1 -i "${srcdir}/aarch64.patch"
|
2016-06-06 20:28:36 +09:00
|
|
|
|
2018-06-07 09:38:50 +09:00
|
|
|
if [ "${CARCH}" == "i686" ]; then
|
2016-02-15 16:14:18 +09:00
|
|
|
cp src/makefiles/linux_32bit.mak Makefile
|
2018-06-07 09:38:50 +09:00
|
|
|
elif [ "${CARCH}" == "x86_64" ]; then
|
|
|
|
cp src/makefiles/linux_64bit.mak Makefile
|
|
|
|
elif [ "${CARCH}" == "aarch64" ]; then
|
2016-02-15 16:14:18 +09:00
|
|
|
cp src/makefiles/linux_64bit.mak Makefile
|
2017-04-28 23:39:47 +09:00
|
|
|
elif [ "${CARCH}" == "armv7h" ]; then
|
|
|
|
cp src/makefiles/linux_32bit.mak Makefile
|
2016-02-15 16:14:18 +09:00
|
|
|
fi
|
2016-06-06 20:28:36 +09:00
|
|
|
|
2016-02-15 16:14:18 +09:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package(){
|
|
|
|
cd "${srcdir}/${pkgver//_/-}"
|
2016-06-06 20:28:36 +09:00
|
|
|
|
|
|
|
install -Dm444 bin/vpnserver/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/hamcore.se2
|
2016-02-15 16:14:18 +09:00
|
|
|
install -d "${pkgdir}"/usr/bin
|
2016-06-06 20:28:36 +09:00
|
|
|
|
|
|
|
for inst in vpnclient vpnserver vpnbridge vpncmd; do
|
2016-02-15 16:14:18 +09:00
|
|
|
install -Dm755 bin/${inst}/${inst} "${pkgdir}"/usr/lib/softethervpn/${inst}/${inst}
|
|
|
|
ln -s /usr/lib/softethervpn/hamcore.se2 "${pkgdir}"/usr/lib/softethervpn/${inst}/hamcore.se2
|
|
|
|
echo "#!/bin/sh" > "${pkgdir}"/usr/bin/${inst}
|
|
|
|
echo /usr/lib/softethervpn/${inst}/${inst} '"$@"' >> "${pkgdir}"/usr/bin/${inst}
|
|
|
|
echo 'exit $?' >> "${pkgdir}"/usr/bin/${inst}
|
|
|
|
chmod 755 "${pkgdir}"/usr/bin/${inst}
|
|
|
|
done
|
2016-06-06 20:28:36 +09:00
|
|
|
|
2016-02-15 16:14:18 +09:00
|
|
|
install -d "${pkgdir}"/usr/lib/systemd/system
|
|
|
|
install -Dm644 "${srcdir}"/*.service "${pkgdir}"/usr/lib/systemd/system
|
|
|
|
}
|
2019-04-06 12:19:12 +09:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|