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.

89 lines
2.7 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
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:=9.01
  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_HASH:=b3d7faf830e9793299d6a41e81d84cd4a3e2789c148c9e598e4585010090e4c7
  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. include $(INCLUDE_DIR)/nls.mk
  23. define Package/openconnect/config
  24. source "$(SOURCE)/Config.in"
  25. endef
  26. define Package/openconnect
  27. SECTION:=net
  28. CATEGORY:=Network
  29. 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 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  30. TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
  31. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  32. URL:=https://www.infradead.org/openconnect/
  33. SUBMENU:=VPN
  34. endef
  35. define Package/openconnect/description
  36. A VPN client compatible with several SSL VPN implementations (ocserv, Cisco AnyConnect, Juniper, Palo Alto)
  37. OpenConnect is an SSL VPN client initially created to support Cisco's
  38. AnyConnect SSL VPN. It has since been extended to support the Pulse Connect
  39. Secure VPN (formerly known as Juniper Network Connect or Junos Pulse) and
  40. the Palo Alto Networks GlobalProtect SSL VPN.
  41. A corresponding OpenConnect VPN server implementation can be found in the
  42. ocserv package.
  43. endef
  44. CONFIGURE_ARGS += \
  45. --disable-shared \
  46. --with-libiconv-prefix=$(ICONV_PREFIX) \
  47. --with-libintl-prefix=$(INTL_PREFIX) \
  48. --with-vpnc-script=/lib/netifd/vpnc-script \
  49. --without-libpcsclite \
  50. --without-stoken \
  51. --without-libpskc \
  52. --without-gssapi \
  53. --without-lz4
  54. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  55. CONFIGURE_ARGS += \
  56. --without-gnutls
  57. endif
  58. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  59. CONFIGURE_ARGS += \
  60. --with-stoken
  61. endif
  62. define Package/openconnect/install
  63. $(INSTALL_DIR) $(1)/etc/openconnect/
  64. $(INSTALL_DIR) $(1)/lib/netifd/proto
  65. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  66. $(INSTALL_DIR) $(1)/usr/sbin
  67. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  68. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  69. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  70. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  71. endef
  72. $(eval $(call BuildPackage,openconnect))