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.

84 lines
2.5 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=openconnect
  9. PKG_VERSION:=8.09
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
  13. PKG_HASH:=f39802be4c3a099b211ee4cc3318b3a9a195075deab0b4c1c5880c69340ce9a6
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=COPYING.LGPL
  16. PKG_CPE_ID:=cpe:/a:infradead:openconnect
  17. PKG_CONFIG_DEPENDS:= \
  18. CONFIG_OPENCONNECT_GNUTLS \
  19. CONFIG_OPENCONNECT_OPENSSL \
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/openconnect/config
  23. source "$(SOURCE)/Config.in"
  24. endef
  25. define Package/openconnect
  26. SECTION:=net
  27. CATEGORY:=Network
  28. DEPENDS:=+libxml2 +kmod-tun +resolveip +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_OPENSSL:p11-kit +OPENCONNECT_OPENSSL:libp11 +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_GNUTLS:libtasn1 +OPENCONNECT_STOKEN:libstoken
  29. TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
  30. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  31. URL:=https://www.infradead.org/openconnect/
  32. SUBMENU:=VPN
  33. endef
  34. define Package/openconnect/description
  35. A VPN client compatible with Cisco's AnyConnect SSL VPN, ocserv and Juniper (Pulse secure).
  36. OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
  37. which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
  38. 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
  39. VPN server. It has later been ported to support the Juniper SSL VPN which
  40. is now known as Pulse Connect Secure.
  41. endef
  42. CONFIGURE_ARGS += \
  43. --disable-shared \
  44. --with-vpnc-script=/lib/netifd/vpnc-script \
  45. --without-libpcsclite \
  46. --without-stoken \
  47. --without-libpskc \
  48. --without-gssapi \
  49. --without-lz4
  50. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  51. CONFIGURE_ARGS += \
  52. --without-gnutls
  53. endif
  54. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  55. CONFIGURE_ARGS += \
  56. --with-stoken
  57. endif
  58. define Package/openconnect/install
  59. $(INSTALL_DIR) $(1)/etc/openconnect/
  60. $(INSTALL_DIR) $(1)/lib/netifd/proto
  61. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  62. $(INSTALL_DIR) $(1)/usr/sbin
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  64. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  65. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  66. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  67. endef
  68. $(eval $(call BuildPackage,openconnect))