openconnect: remove old network scripts
[openwrt/svn-archive/archive.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:=3.18
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
16 PKG_MD5SUM:=5a440ad946cfec0f1ee7ee5519081cf1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/openconnect
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libxml2 +libopenssl +kmod-tun +resolveip
24 TITLE:=VPN client for Cisco's AnyConnect SSL VPN
25 URL:=http://www.infradead.org/openconnect/
26 SUBMENU:=VPN
27 endef
28
29 define Package/openconnect/description
30 A VPN client compatible with Cisco's AnyConnect SSL VPN.
31
32 OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
33 supported by IOS 12.4(9)T or later on Cisco SR500, 870, 880, 1800, 2800,
34 3800, 7200 Series and Cisco 7301 Routers.
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-shared \
39 --with-vpnc-script=/lib/netifd/vpnc-script
40
41 define Package/openconnect/install
42 $(INSTALL_DIR) $(1)/lib/netifd/proto
43 $(INSTALL_BIN) ./files/openconnect.sh $(1)/lib/netifd/proto/
44 $(INSTALL_BIN) ./files/vpnc-script $(1)/lib/netifd/
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openconnect $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,openconnect))