Added vpnc, a cicso3000 vpn concentrator client
[openwrt/svn-archive/archive.git] / openwrt / package / vpnc / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=vpnc
4 PKG_VERSION:=0.3.3
5 PKG_RELEASE:=1
6
7 PKG_MD5SUM:=e7518cff21326fe7eb9795b60c25ae6a
8 PKG_SOURCE_URL:=http://www.unix-ag.uni-kl.de/~massar/vpnc/
9
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_CAT:=zcat
13
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,VPNC,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) STAGING_DIR=$(STAGING_DIR) CC=$(TARGET_CC) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) all install
25 touch $@
26
27 $(IPKG_VPNC):
28 mkdir -p $(IDIR_VPNC)
29 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_VPNC)/
30 $(RSTRIP) $(IDIR_VPNC)
31 $(IPKG_BUILD) $(IDIR_VPNC) $(PACKAGE_DIR)