Add gw6c and make it link against uclibcxx (#2125)
[openwrt/svn-archive/archive.git] / net / vpnc / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=vpnc
12 PKG_VERSION:=0.5.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
17 PKG_MD5SUM:=7a8e94dbe94f39a4fd89b72e0125f66f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/vpnc
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libgpg-error +libgcrypt +kmod-tun +ip
25 TITLE:=VPN client for Cisco EasyVPN
26 URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
27 SUBMENU:=VPN
28 endef
29
30 define Package/vpnc/description
31 A VPN client compatible with Cisco's EasyVPN equipment.
32
33 Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
34 shared-secret IPSec authentication with Xauth, AES (256, 192, 128),
35 3DES, 1DES, MD5, SHA1, DH1/2/5 and IP tunneling.
36 endef
37
38 define Package/vpnc/conffiles
39 /etc/vpnc/default.conf
40 /etc/vpnc/vpnc-script
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default, \
45 OFLAGS="$(TARGET_CFLAGS)" \
46 OS="Linux" \
47 STAGING_DIR="$(STAGING_DIR)" \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 PREFIX=/usr \
50 all install \
51 )
52 endef
53
54 define Package/vpnc/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vpnc \
57 $(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
58 $(1)/usr/sbin/
59 install -d -m0700 $(1)/etc/vpnc
60 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/default.conf $(1)/etc/vpnc/
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/vpnc/vpnc-script $(1)/etc/vpnc/
62 endef
63
64 $(eval $(call BuildPackage,vpnc))