2 # Copyright (C) 2006 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:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
16 PKG_MD5SUM:=4378f9551d5b077e1770bbe09995afb3
18 include $(INCLUDE_DIR)/package.mk
23 DEPENDS:=+libgpg-error +libgcrypt +kmod-tun +ip
24 TITLE:=VPN client for Cisco EasyVPN
25 URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
29 define Package/vpnc/description
30 A VPN client compatible with Cisco's EasyVPN equipment.
32 Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
33 shared-secret IPSec authentication with Xauth, AES (256, 192, 128),
34 3DES, 1DES, MD5, SHA1, DH1/2/5 and IP tunneling.
37 define Package/vpnc/conffiles
38 /etc/vpnc/default.conf
43 $(call Build/Compile/Default, \
44 OFLAGS="$(TARGET_CFLAGS)" \
46 STAGING_DIR="$(STAGING_DIR)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
53 define Package/vpnc/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vpnc \
56 $(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
58 install -d -m0700 $(1)/etc/vpnc
59 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/default.conf $(1)/etc/vpnc/
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/vpnc/vpnc-script $(1)/etc/vpnc/
63 $(eval $(call BuildPackage,vpnc))