You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
5.6 KiB

softethervpn5: update to 5.01.9672 * 5.01.9672 release * Cedar: handle UDP acceleration and R-UDP versions * Mayaqua: implement R-UDP version 2, powered by ChaCha20-Poly1305 * Cedar: implement UDP acceleration version 2, powered by ChaCha20-Poly1305 * Cedar: serve new web management interface * Cedar: implement detailed protocol info * Mayaqua: add Windows Server 2019 to the supported operating systems list * Cedar: various fixes * Cedar: add "DisableIPsecAggressiveMode" option * Make install dir for unit files configurable * Protocol.c: adapt ClientConnectGetSocket() for new proxy functions * Wpc.c: adapt WpcSockConnectEx() for new proxy functions * Protocol: add ProxyCodeToCedar() * Move generic proxy stuff from Cedar to Mayaqua * Proto_OpenVPN.c: improve OvsProcessData(), fix out-of-bounds access found by Coverity * Proto_OpenVPN.c: fix segmentation fault in OvsProceccRecvPacket() * Addressing the UDP reflection amplification attack: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1001 * Mayaqua.h: include <stdarg.h> for "va_list" on Illumos * Protocol.c: fix bug in ClientConnectGetSocket() causing custom HTTP header not to work * Mayaqua: move HTTP functions from "Network" to "HTTP" * Move GetMimeTypeFromFileName() and related structure to Mayaqua * Mayaqua.h: include <stdio.h> for "FILE" * Mayaqua.h: include <stddef.h>, for "wchar_t" * Bump mixin-deep in /src/bin/hamcore/wwwroot/admin/default * - Fixed the problem occurs when RPC messages between Cluster Members exceed 64Kbytes. - Fixed the RADIUS PEAP client to use the standard TLS versioning. - Implementation of a function to fix the MAC address of L3 VPN protocol by entering e.g. "MAC: 112233445566" in the "Notes" field of the user information. - Implementation of a function to fix the virtual MAC address to be assigned to the L3 VPN client as a string attribute from RADIUS server when authentication. * Updating built-in Win32 libraries - OpenSSL 1.1.1 -> 1.1.1d - zlib 1.2.3 -> 1.2.11 * Update strtable_cn.stb * Avoid using hardcoded paths in log file enumeration * Fix buffer overflow during NETBIOS name resolution * Update SEVPN.sln * Create strtable_pt_br.stb * ci: display error if vpntest failed * Fix several compile warnings on MS VC++ 2008. * Enables crash minidump for Win32 vpntest. Minidump files will be saved to the 'C:\Users\<username>\AppData\Local\Temp\vpn_debug' (for normal user) or 'src\bin\vpn_debug\' (for administrator user). * OpenVPN: use new protocol interface * Add interface for easy protocol implementation * add "no-deprecated" to openssl builds "no-deprecated" is widely used in openwrt devices * Fix LibreSSL support * Switch to OpenSSL THREADID API * travis-ci: update openssl, libressl * enable sonar-scan in travis-ci builds * Virtual: fix race condition in DHCP server which resulted in multiple clients receiving the same IP * Mayaqua: Fix compilation without deprecated OpenSSL APIs * Mayaqua: Replace GNU specific sys/poll.h header with POSIX poll.h * systemd: replace deprecated CAP_SYS_ADMIN with CAP_SYSLOG Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
5 years ago
softethervpn5: update to 5.01.9672 * 5.01.9672 release * Cedar: handle UDP acceleration and R-UDP versions * Mayaqua: implement R-UDP version 2, powered by ChaCha20-Poly1305 * Cedar: implement UDP acceleration version 2, powered by ChaCha20-Poly1305 * Cedar: serve new web management interface * Cedar: implement detailed protocol info * Mayaqua: add Windows Server 2019 to the supported operating systems list * Cedar: various fixes * Cedar: add "DisableIPsecAggressiveMode" option * Make install dir for unit files configurable * Protocol.c: adapt ClientConnectGetSocket() for new proxy functions * Wpc.c: adapt WpcSockConnectEx() for new proxy functions * Protocol: add ProxyCodeToCedar() * Move generic proxy stuff from Cedar to Mayaqua * Proto_OpenVPN.c: improve OvsProcessData(), fix out-of-bounds access found by Coverity * Proto_OpenVPN.c: fix segmentation fault in OvsProceccRecvPacket() * Addressing the UDP reflection amplification attack: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1001 * Mayaqua.h: include <stdarg.h> for "va_list" on Illumos * Protocol.c: fix bug in ClientConnectGetSocket() causing custom HTTP header not to work * Mayaqua: move HTTP functions from "Network" to "HTTP" * Move GetMimeTypeFromFileName() and related structure to Mayaqua * Mayaqua.h: include <stdio.h> for "FILE" * Mayaqua.h: include <stddef.h>, for "wchar_t" * Bump mixin-deep in /src/bin/hamcore/wwwroot/admin/default * - Fixed the problem occurs when RPC messages between Cluster Members exceed 64Kbytes. - Fixed the RADIUS PEAP client to use the standard TLS versioning. - Implementation of a function to fix the MAC address of L3 VPN protocol by entering e.g. "MAC: 112233445566" in the "Notes" field of the user information. - Implementation of a function to fix the virtual MAC address to be assigned to the L3 VPN client as a string attribute from RADIUS server when authentication. * Updating built-in Win32 libraries - OpenSSL 1.1.1 -> 1.1.1d - zlib 1.2.3 -> 1.2.11 * Update strtable_cn.stb * Avoid using hardcoded paths in log file enumeration * Fix buffer overflow during NETBIOS name resolution * Update SEVPN.sln * Create strtable_pt_br.stb * ci: display error if vpntest failed * Fix several compile warnings on MS VC++ 2008. * Enables crash minidump for Win32 vpntest. Minidump files will be saved to the 'C:\Users\<username>\AppData\Local\Temp\vpn_debug' (for normal user) or 'src\bin\vpn_debug\' (for administrator user). * OpenVPN: use new protocol interface * Add interface for easy protocol implementation * add "no-deprecated" to openssl builds "no-deprecated" is widely used in openwrt devices * Fix LibreSSL support * Switch to OpenSSL THREADID API * travis-ci: update openssl, libressl * enable sonar-scan in travis-ci builds * Virtual: fix race condition in DHCP server which resulted in multiple clients receiving the same IP * Mayaqua: Fix compilation without deprecated OpenSSL APIs * Mayaqua: Replace GNU specific sys/poll.h header with POSIX poll.h * systemd: replace deprecated CAP_SYS_ADMIN with CAP_SYSLOG Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
5 years ago
  1. # Based partially on the versions of el1n and Federico Di Marco
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=softethervpn5
  4. PKG_VERSION:=5.01.9672
  5. PKG_RELEASE:=1
  6. PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
  7. PKG_LICENSE:=GPL-2.0
  8. PKG_LICENSE_FILES:=COPYING
  9. PKG_SOURCE_URL:=https://github.com/SoftEtherVPN/SoftEtherVPN/releases/download/$(PKG_VERSION)/
  10. PKG_SOURCE:=softether-vpn-src-$(PKG_VERSION).tar.gz
  11. PKG_HASH:=7c437d4d02d7e2a936b4c1ff7bc8f5abbf16786746deffa92d5f5f2fd7ba04fb
  12. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/SoftEtherVPN-$(PKG_VERSION)
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/SoftEtherVPN-$(PKG_VERSION)
  14. HOST_BUILD_DEPENDS:=ncurses/host readline/host
  15. PKG_BUILD_DEPENDS:=softethervpn5/host
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/softethervpn5/Default
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=VPN
  24. TITLE:=softethervpn5 v$(PKG_VERSION)
  25. URL:=http://www.softether.org/
  26. endef
  27. define Package/softethervpn5/Default/description
  28. SoftEther VPN supports SSL-VPN, OpenVPN, L2TP, EtherIP, L2TPv3 and IPsec as a single VPN software.
  29. SoftEther VPN is not only an alternative VPN server to existing VPN products (OpenVPN, IPsec and MS-SSTP),
  30. but has also original strong SSL-VPN protocol to penetrate any kinds of firewalls.
  31. Guide: https://wordpress.tirlins.com/2015/03/setting-up-softether-vpn-on-openwrt/
  32. endef
  33. define Package/softethervpn5-libs
  34. $(call Package/softethervpn5/Default)
  35. DEPENDS:=+libpthread +librt +libreadline +libopenssl +libncurses +kmod-tun +zlib $(ICONV_DEPENDS)
  36. TITLE+= libs
  37. HIDDEN:=1
  38. endef
  39. define Package/softethervpn5-server
  40. $(call Package/softethervpn5/Default)
  41. TITLE+= server
  42. DEPENDS:= +softethervpn5-libs
  43. endef
  44. define Package/softethervpn5-server/description
  45. $(call Package/softethervpn5/Default/description)
  46. Provides the vpnserver (daemon).
  47. endef
  48. define Package/softethervpn5-bridge
  49. $(call Package/softethervpn5/Default)
  50. TITLE+= bridge
  51. DEPENDS:= +softethervpn5-libs
  52. endef
  53. define Package/softethervpn5-bridge/description
  54. $(call Package/softethervpn5/Default/description)
  55. Provides the vpnbridge (daemon).
  56. endef
  57. define Package/softethervpn5-client
  58. $(call Package/softethervpn5/Default)
  59. TITLE+= client
  60. DEPENDS:= +softethervpn5-libs
  61. endef
  62. define Package/softethervpn5-client/description
  63. $(call Package/softethervpn5/Default/description)
  64. Provides the vpnclient.
  65. endef
  66. export USE_MUSL=YES
  67. # BUG: outdated host/include/elf.h
  68. HOST_CFLAGS += $(FPIC) -DAT_HWCAP2=26
  69. TARGET_CFLAGS += $(FPIC)
  70. CMAKE_OPTIONS = -DICONV_LIB_PATH="$(ICONV_PREFIX)/lib"
  71. # static build for host (hamcorebuilder), avoid -fpic on ncurses/host and shared libs can't be found on host
  72. define Host/Prepare
  73. $(Host/Prepare/Default)
  74. $(SED) 's,SHARED,STATIC,g' $(HOST_BUILD_DIR)/src/Mayaqua/CMakeLists.txt
  75. $(SED) 's,SHARED,STATIC,g' $(HOST_BUILD_DIR)/src/Cedar/CMakeLists.txt
  76. $(SED) 's,readline,libreadline.a,g' $(HOST_BUILD_DIR)/src/Cedar/CMakeLists.txt
  77. endef
  78. define Host/Compile
  79. $(call Host/Compile/Default,hamcorebuilder)
  80. endef
  81. define Host/Install
  82. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
  83. $(INSTALL_BIN) $(HOST_BUILD_DIR)/tmp/hamcorebuilder $(STAGING_DIR_HOSTPKG)/bin/
  84. endef
  85. define Build/Compile
  86. $(call Build/Compile/Default,vpnserver vpnbridge vpnclient vpncmd hamcore-archive-build)
  87. endef
  88. define Build/Install
  89. endef
  90. define Package/softethervpn5-libs/install
  91. $(INSTALL_DIR) $(1)/usr/lib
  92. $(CP) $(PKG_BUILD_DIR)/build/libcedar.so $(1)/usr/lib/
  93. $(CP) $(PKG_BUILD_DIR)/build/libmayaqua.so $(1)/usr/lib/
  94. $(INSTALL_DIR) $(1)/usr/libexec/softethervpn
  95. $(CP) $(PKG_BUILD_DIR)/build/hamcore.se2 $(1)/usr/libexec/softethervpn/
  96. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/vpncmd $(1)/usr/libexec/softethervpn/
  97. $(INSTALL_BIN) files/launcher.sh $(1)/usr/libexec/softethervpn/
  98. $(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/lang.config
  99. $(INSTALL_DIR) $(1)/usr/bin
  100. $(LN) ../../usr/libexec/softethervpn/launcher.sh $(1)/usr/bin/vpncmd
  101. endef
  102. define Package/softethervpn5-server/install
  103. $(INSTALL_DIR) $(1)/usr/libexec/softethervpn
  104. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/vpnserver $(1)/usr/libexec/softethervpn/
  105. $(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_server.config
  106. $(INSTALL_DIR) $(1)/etc/init.d
  107. $(INSTALL_BIN) files/vpnserver.init $(1)/etc/init.d/softethervpnserver
  108. endef
  109. define Package/softethervpn5-bridge/install
  110. $(INSTALL_DIR) $(1)/usr/libexec/softethervpn
  111. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/vpnbridge $(1)/usr/libexec/softethervpn/
  112. $(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_bridge.config
  113. $(INSTALL_DIR) $(1)/etc/init.d
  114. $(INSTALL_BIN) files/vpnbridge.init $(1)/etc/init.d/softethervpnbridge
  115. endef
  116. define Package/softethervpn5-client/install
  117. $(INSTALL_DIR) $(1)/usr/libexec/softethervpn
  118. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/vpnclient $(1)/usr/libexec/softethervpn/
  119. $(INSTALL_DATA) files/dummy $(1)/usr/libexec/softethervpn/vpn_client.config
  120. $(INSTALL_DIR) $(1)/etc/init.d
  121. $(INSTALL_BIN) files/vpnclient.init $(1)/etc/init.d/softethervpnclient
  122. endef
  123. define Package/softethervpn5-server/conffiles
  124. /usr/libexec/softethervpn/vpn_server.config
  125. /usr/libexec/softethervpn/lang.config
  126. endef
  127. define Package/softethervpn5-bridge/conffiles
  128. /usr/libexec/softethervpn/vpn_bridge.config
  129. /usr/libexec/softethervpn/lang.config
  130. endef
  131. define Package/softethervpn5-client/conffiles
  132. /usr/libexec/softethervpn/vpn_client.config
  133. /usr/libexec/softethervpn/lang.config
  134. endef
  135. $(eval $(call HostBuild))
  136. $(eval $(call BuildPackage,softethervpn5-libs))
  137. $(eval $(call BuildPackage,softethervpn5-server))
  138. $(eval $(call BuildPackage,softethervpn5-bridge))
  139. $(eval $(call BuildPackage,softethervpn5-client))