7976d9165ff010113f15577b95a2da25140eca7e
[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.3.3
13 PKG_RELEASE:=1
14
15 PKG_MD5SUM:=e7518cff21326fe7eb9795b60c25ae6a
16 PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/vpnc
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+libgpg-error +libgcrypt +kmod-tun
30 TITLE:=VPN client for Cisco 3000
31 DESCRIPTION:=Client for cisco3000 VPN Concentrator
32 URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
33 endef
34
35 define Package/vpnc/conffiles
36 /etc/vpnc/vpnc.conf
37 /etc/vpnc/vpnc-script
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/Default,CC="$(TARGET_CC)" \
42 OFLAGS="$(TARGET_CFLAGS)" \
43 OS="Linux" \
44 STAGING_DIR="$(STAGING_DIR)" \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 PREFIX=/usr \
47 all install)
48 endef
49
50 define Package/vpnc/install
51 install -d -m0755 $(1)
52 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
53 endef
54
55 $(eval $(call BuildPackage,vpnc))