nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vpnc
11 PKG_VERSION:=0.5.1
12 PKG_RELEASE:=1
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:=7a8e94dbe94f39a4fd89b72e0125f66f
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 +ip
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 /etc/vpnc/vpnc-script
40 endef
41
42 define Build/Compile
43 $(call Build/Compile/Default, \
44 OFLAGS="$(TARGET_CFLAGS)" \
45 OS="Linux" \
46 STAGING_DIR="$(STAGING_DIR)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 PREFIX=/usr \
49 all install \
50 )
51 endef
52
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 \
57 $(1)/usr/sbin/
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/
61 endef
62
63 $(eval $(call BuildPackage,vpnc))