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.

60 lines
1.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  1. #
  2. # Copyright (C) 2006 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:=5.03
  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_MD5SUM:=ff43ed1dbaccd2537fd7c5bfb04295a6
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/openconnect/config
  16. source "$(SOURCE)/Config.in"
  17. endef
  18. define Package/openconnect
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libxml2 +kmod-tun +resolveip +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_GNUTLS:libgnutls
  22. TITLE:=VPN client compatible with Cisco's AnyConnect SSL VPN
  23. URL:=http://www.infradead.org/openconnect/
  24. SUBMENU:=VPN
  25. endef
  26. define Package/openconnect/description
  27. A VPN client compatible with Cisco's AnyConnect SSL VPN and ocserv.
  28. OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
  29. which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
  30. 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
  31. VPN server.
  32. endef
  33. CONFIGURE_ARGS += \
  34. --disable-shared \
  35. --with-vpnc-script=/lib/netifd/vpnc-script
  36. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  37. CONFIGURE_ARGS += \
  38. --without-gnutls
  39. endif
  40. define Package/openconnect/install
  41. $(INSTALL_DIR) $(1)/etc/openconnect/
  42. $(INSTALL_DIR) $(1)/lib/netifd/proto
  43. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  44. $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/
  45. $(INSTALL_DIR) $(1)/usr/sbin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  47. endef
  48. $(eval $(call BuildPackage,openconnect))