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.

86 lines
2.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 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:=8.10
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
  13. PKG_HASH:=30e64c6eca4be47bbf1d61f53dc003c6621213738d4ea7a35e5cf1ac2de9bab1
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=COPYING.LGPL
  16. PKG_CPE_ID:=cpe:/a:infradead:openconnect
  17. PKG_CONFIG_DEPENDS:= \
  18. CONFIG_OPENCONNECT_GNUTLS \
  19. CONFIG_OPENCONNECT_OPENSSL \
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/openconnect/config
  23. source "$(SOURCE)/Config.in"
  24. endef
  25. define Package/openconnect
  26. SECTION:=net
  27. CATEGORY:=Network
  28. DEPENDS:=+libxml2 +kmod-tun +resolveip +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_OPENSSL:p11-kit +OPENCONNECT_OPENSSL:libp11 +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_GNUTLS:libtasn1 +OPENCONNECT_STOKEN:libstoken
  29. TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
  30. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  31. URL:=https://www.infradead.org/openconnect/
  32. SUBMENU:=VPN
  33. endef
  34. define Package/openconnect/description
  35. A VPN client compatible with several SSL VPN implementations (ocserv, Cisco AnyConnect, Juniper, Palo Alto)
  36. OpenConnect is an SSL VPN client initially created to support Cisco's
  37. AnyConnect SSL VPN. It has since been extended to support the Pulse Connect
  38. Secure VPN (formerly known as Juniper Network Connect or Junos Pulse) and
  39. the Palo Alto Networks GlobalProtect SSL VPN.
  40. A corresponding OpenConnect VPN server implementation can be found in the
  41. ocserv package.
  42. endef
  43. CONFIGURE_ARGS += \
  44. --disable-shared \
  45. --with-vpnc-script=/lib/netifd/vpnc-script \
  46. --without-libpcsclite \
  47. --without-stoken \
  48. --without-libpskc \
  49. --without-gssapi \
  50. --without-lz4
  51. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  52. CONFIGURE_ARGS += \
  53. --without-gnutls
  54. endif
  55. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  56. CONFIGURE_ARGS += \
  57. --with-stoken
  58. endif
  59. define Package/openconnect/install
  60. $(INSTALL_DIR) $(1)/etc/openconnect/
  61. $(INSTALL_DIR) $(1)/lib/netifd/proto
  62. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  63. $(INSTALL_DIR) $(1)/usr/sbin
  64. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  65. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  66. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  67. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  68. endef
  69. $(eval $(call BuildPackage,openconnect))