Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:=3
  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 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 and ocserv.
  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.
  38. endef
  39. CONFIGURE_ARGS += \
  40. --disable-shared \
  41. --with-vpnc-script=/lib/netifd/vpnc-script \
  42. --without-libpcsclite \
  43. --without-stoken \
  44. --without-lz4
  45. ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
  46. CONFIGURE_ARGS += \
  47. --without-gnutls
  48. endif
  49. ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
  50. CONFIGURE_ARGS += \
  51. --with-stoken
  52. endif
  53. define Package/openconnect/install
  54. $(INSTALL_DIR) $(1)/etc/openconnect/
  55. $(INSTALL_DIR) $(1)/lib/netifd/proto
  56. $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
  57. $(INSTALL_DIR) $(1)/usr/sbin
  58. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
  59. $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
  60. $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
  61. $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
  62. endef
  63. $(eval $(call BuildPackage,openconnect))