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.

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