liburcu: Update to 0.8.6
[feed/packages.git] / net / openconnect / Makefile
1 #
2 # Copyright (C) 2006 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:=6.00
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
16 PKG_MD5SUM:=7e28e23c6e281be31446e6c365f5d273
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/openconnect/config
21 source "$(SOURCE)/Config.in"
22 endef
23
24 define Package/openconnect
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libxml2 +kmod-tun +resolveip +OPENCONNECT_OPENSSL:libopenssl +OPENCONNECT_GNUTLS:libgnutls
28 TITLE:=OpenConnect VPN client (Cisco AnyConnect compatible)
29 MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
30 URL:=http://www.infradead.org/openconnect/
31 SUBMENU:=VPN
32 endef
33
34 define Package/openconnect/description
35 A VPN client compatible with Cisco's AnyConnect SSL VPN and ocserv.
36
37 OpenConnect is a client that follows the Cisco's AnyConnect SSL VPN protocol,
38 which is supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800,
39 2800, 3800, 7200 Series and Cisco 7301 Routers, as well as the OpenConnect
40 VPN server.
41 endef
42
43 CONFIGURE_ARGS += \
44 --disable-shared \
45 --with-vpnc-script=/lib/netifd/vpnc-script
46
47 ifeq ($(CONFIG_OPENCONNECT_OPENSSL),y)
48 CONFIGURE_ARGS += \
49 --without-gnutls
50 endif
51
52 define Package/openconnect/install
53 $(INSTALL_DIR) $(1)/etc/openconnect/
54 $(INSTALL_DIR) $(1)/lib/netifd/proto
55 $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
56 $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/
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 endef
61
62 $(eval $(call BuildPackage,openconnect))