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.

83 lines
2.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 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.03
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
  13. PKG_HASH:=908cff9b1ce266b6bb7f969a7f62723543ab94719ba3c95a150fe3894cbc9ef2
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=COPYING.LGPL
  16. PKG_CONFIG_DEPENDS:= \
  17. CONFIG_OPENCONNECT_GNUTLS \
  18. CONFIG_OPENCONNECT_OPENSSL \
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/openconnect/config
  22. source "$(SOURCE)/Config.in"
  23. endef
  24. define Package/openconnect
  25. SECTION:=net
  26. CATEGORY:=Network
  27. 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
  28. TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
  29. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  30. URL:=https://www.infradead.org/openconnect/
  31. SUBMENU:=VPN
  32. endef
  33. define Package/openconnect/description
  34. A VPN client compatible with Cisco's AnyConnect SSL VPN, ocserv and Juniper (Pulse secure).
  35. OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
  36. which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
  37. 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
  38. VPN server. It has later been ported to support the Juniper SSL VPN which
  39. is now known as Pulse Connect Secure.
  40. endef
  41. CONFIGURE_ARGS += \
  42. --disable-shared \
  43. --with-vpnc-script=/lib/netifd/vpnc-script \
  44. --without-libpcsclite \
  45. --without-stoken \
  46. --without-libpskc \
  47. --without-gssapi \
  48. --without-lz4
  49. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  50. CONFIGURE_ARGS += \
  51. --without-gnutls
  52. endif
  53. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  54. CONFIGURE_ARGS += \
  55. --with-stoken
  56. endif
  57. define Package/openconnect/install
  58. $(INSTALL_DIR) $(1)/etc/openconnect/
  59. $(INSTALL_DIR) $(1)/lib/netifd/proto
  60. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  61. $(INSTALL_DIR) $(1)/usr/sbin
  62. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  63. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  64. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  65. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  66. endef
  67. $(eval $(call BuildPackage,openconnect))