Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.08
  10. PKG_RELEASE:=8
  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_HASH:=1c44ec1f37a6a025d1ca726b9555649417f1d31a46f747922b84099ace628a03
  15. PKG_LICENSE:=LGPLv2.1+
  16. PKG_CONFIG_DEPENDS:= \
  17. CONFIG_OPENCONNECT_GNUTLS \
  18. CONFIG_OPENCONNECT_OPENSSL \
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/openconnect/config
  21. source "$(SOURCE)/Config.in"
  22. endef
  23. define Package/openconnect
  24. SECTION:=net
  25. CATEGORY:=Network
  26. DEPENDS:=+libxml2 +kmod-tun +resolveip +vpnc-scripts +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_OPENSSL:p11-kit +OPENCONNECT_OPENSSL:libp11 +OPENCONNECT_GNUTLS:libgnutls +OPENCONNECT_STOKEN:libstoken
  27. TITLE:=OpenConnect VPN client (Cisco AnyConnect and Juniper/Pulse compatible)
  28. MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  29. URL:=http://www.infradead.org/openconnect/
  30. SUBMENU:=VPN
  31. endef
  32. define Package/openconnect/description
  33. A VPN client compatible with Cisco's AnyConnect SSL VPN, ocserv and Juniper (Pulse secure).
  34. OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
  35. which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
  36. 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
  37. VPN server. It has later been ported to support the Juniper SSL VPN which
  38. is now known as Pulse Connect Secure.
  39. endef
  40. CONFIGURE_ARGS += \
  41. --disable-shared \
  42. --with-vpnc-script=/lib/netifd/vpnc-script \
  43. --without-libpcsclite \
  44. --without-stoken \
  45. --without-libpskc \
  46. --without-gssapi \
  47. --without-lz4
  48. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  49. CONFIGURE_ARGS += \
  50. --without-gnutls
  51. endif
  52. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  53. CONFIGURE_ARGS += \
  54. --with-stoken
  55. endif
  56. define Package/openconnect/install
  57. $(INSTALL_DIR) $(1)/etc/openconnect/
  58. $(INSTALL_DIR) $(1)/lib/netifd/proto
  59. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  60. $(INSTALL_DIR) $(1)/usr/sbin
  61. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  62. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  63. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  64. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  65. endef
  66. $(eval $(call BuildPackage,openconnect))