2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.infradead.org
/pub
/openconnect
/
16 PKG_HASH
:=30e64c6eca4be47bbf1d61f53dc003c6621213738d4ea7a35e5cf1ac2de9bab1
18 PKG_LICENSE
:=LGPL-2.1
-or-later
19 PKG_LICENSE_FILES
:=COPYING.LGPL
20 PKG_CPE_ID
:=cpe
:/a
:infradead
:openconnect
22 PKG_CONFIG_DEPENDS
:= \
23 CONFIG_OPENCONNECT_GNUTLS \
24 CONFIG_OPENCONNECT_OPENSSL \
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/openconnect
/config
31 source
"$(SOURCE)/Config.in"
34 define Package
/openconnect
37 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
38 TITLE
:=OpenConnect VPN client
(Cisco AnyConnect and Juniper
/Pulse compatible
)
39 MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
40 URL
:=https
://www.infradead.org
/openconnect
/
44 define Package
/openconnect
/description
45 A VPN client compatible with several SSL VPN implementations
(ocserv
, Cisco AnyConnect
, Juniper
, Palo Alto
)
47 OpenConnect is an SSL VPN client initially created to support Cisco
's
48 AnyConnect SSL VPN. It has since been extended to support the Pulse Connect
49 Secure VPN (formerly known as Juniper Network Connect or Junos Pulse) and
50 the Palo Alto Networks GlobalProtect SSL VPN.
52 A corresponding OpenConnect VPN server implementation can be found in the
58 --with-vpnc-script=/lib/netifd/vpnc-script \
59 --without-libpcsclite \
65 ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
70 ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
75 define Package/openconnect/install
76 $(INSTALL_DIR) $(1)/etc/openconnect/
77 $(INSTALL_DIR) $(1)/lib/netifd/proto
78 $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
79 $(INSTALL_DIR) $(1)/usr/sbin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
81 $(INSTALL_BIN) ./files/openconnect-wrapper $(1)/usr/sbin/
82 $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
83 $(INSTALL_DATA) ./files/openconnect.upgrade $(1)/lib/upgrade/keep.d/openconnect
86 $(eval $(call BuildPackage,openconnect))