packages/luaposix: fix whitespaces
[openwrt/svn-archive/archive.git] / net / vpnc / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=vpnc
11 PKG_VERSION:=0.5.3
12 PKG_RELEASE:=3
13
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
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vpnc
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libgpg-error +libgcrypt +kmod-tun +vpnc-scripts
24 TITLE:=VPN client for Cisco EasyVPN
25 URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
26 SUBMENU:=VPN
27 endef
28
29 define Package/vpnc/description
30 A VPN client compatible with Cisco's EasyVPN equipment.
31
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.
35 endef
36
37 define Package/vpnc/conffiles
38 /etc/vpnc/default.conf
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default, \
43 OFLAGS="$(TARGET_CFLAGS)" \
44 OS="Linux" \
45 STAGING_DIR="$(STAGING_DIR)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 PREFIX=/usr \
48 all install \
49 )
50 endef
51
52 define Package/vpnc/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vpnc \
55 $(PKG_INSTALL_DIR)/usr/sbin/vpnc-disconnect \
56 $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/etc/vpnc
58 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/default.conf $(1)/etc/vpnc/
59 endef
60
61 $(eval $(call BuildPackage,vpnc))