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.

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