openconnect: updated description to reflect current state
[feed/packages.git] / net / openconnect / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=openconnect
11 PKG_VERSION:=8.10
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
16 PKG_HASH:=30e64c6eca4be47bbf1d61f53dc003c6621213738d4ea7a35e5cf1ac2de9bab1
17
18 PKG_LICENSE:=LGPL-2.1-or-later
19 PKG_LICENSE_FILES:=COPYING.LGPL
20 PKG_CPE_ID:=cpe:/a:infradead:openconnect
21
22 PKG_CONFIG_DEPENDS:= \
23 CONFIG_OPENCONNECT_GNUTLS \
24 CONFIG_OPENCONNECT_OPENSSL \
25
26 PKG_USE_MIPS16:=0
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/openconnect/config
31 source "$(SOURCE)/Config.in"
32 endef
33
34 define Package/openconnect
35 SECTION:=net
36 CATEGORY:=Network
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/
41 SUBMENU:=VPN
42 endef
43
44 define Package/openconnect/description
45 A VPN client compatible with several SSL VPN implementations (ocserv, Cisco AnyConnect, Juniper, Palo Alto)
46
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.
51
52 A corresponding OpenConnect VPN server implementation can be found in the
53 ocserv package.
54 endef
55
56 CONFIGURE_ARGS += \
57 --disable-shared \
58 --with-vpnc-script=/lib/netifd/vpnc-script \
59 --without-libpcsclite \
60 --without-stoken \
61 --without-libpskc \
62 --without-gssapi \
63 --without-lz4
64
65 ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
66 CONFIGURE_ARGS += \
67 --without-gnutls
68 endif
69
70 ifeq ($(CONFIG_OPENCONNECT_STOKEN),y)
71 CONFIGURE_ARGS += \
72 --with-stoken
73 endif
74
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
84 endef
85
86 $(eval $(call BuildPackage,openconnect))