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
  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:=7.03
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
  13. PKG_MD5SUM:=83f6a359906d49473f591ba613ca3fe5
  14. PKG_CONFIG_DEPENDS:= \
  15. CONFIG_OPENCONNECT_GNUTLS \
  16. CONFIG_OPENCONNECT_OPENSSL \
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/openconnect/config
  19. source "$(SOURCE)/Config.in"
  20. endef
  21. define Package/openconnect
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libxml2 +kmod-tun +resolveip +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_STOKEN:libstoken
  25. TITLE:=OpenConnect VPN client (Cisco AnyConnect compatible)
  26. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  27. URL:=http://www.infradead.org/openconnect/
  28. SUBMENU:=VPN
  29. endef
  30. define Package/openconnect/description
  31. A VPN client compatible with Cisco's AnyConnect SSL VPN and ocserv.
  32. OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
  33. which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
  34. 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
  35. VPN server.
  36. endef
  37. CONFIGURE_ARGS += \
  38. --disable-shared \
  39. --with-vpnc-script=/lib/netifd/vpnc-script \
  40. --without-libpcsclite \
  41. --without-stoken
  42. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  43. CONFIGURE_ARGS += \
  44. --without-gnutls
  45. endif
  46. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  47. CONFIGURE_ARGS += \
  48. --with-stoken
  49. endif
  50. define Package/openconnect/install
  51. $(INSTALL_DIR) $(1)/etc/openconnect/
  52. $(INSTALL_DIR) $(1)/lib/netifd/proto
  53. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  54. $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/
  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))