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.

76 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:=2
  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. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  44. CONFIGURE_ARGS += \
  45. --without-gnutls
  46. endif
  47. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  48. CONFIGURE_ARGS += \
  49. --with-stoken
  50. endif
  51. define Package/openconnect/install
  52. $(INSTALL_DIR) $(1)/etc/openconnect/
  53. $(INSTALL_DIR) $(1)/lib/netifd/proto
  54. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  55. $(INSTALL_DIR) $(1)/usr/sbin
  56. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  57. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  58. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  59. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  60. endef
  61. $(eval $(call BuildPackage,openconnect))