port wan_device changes from whiterussian to kamikaze
[openwrt.git] / openwrt / package / l2tpns / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=l2tpns
6 PKG_VERSION:=2.1.14
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2a0ee2a3678160c335f1d68c17c4f871
9
10 PKG_SOURCE_URL:=@SF/l2tpns
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,L2TPNS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 CC=$(TARGET_CC) \
27 LD=$(TARGET_CC) \
28 OPTIM="$(TARGET_CFLAGS)" \
29 DESTDIR=$(PKG_INSTALL_DIR) \
30 STAGING_DIR=$(STAGING_DIR) \
31 all install
32 touch $@
33
34 $(IPKG_L2TPNS):
35 install -d -m0755 $(IDIR_L2TPNS)/etc/l2tpns
36 cp -fpR $(PKG_INSTALL_DIR)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/
37 install -d -m0755 $(IDIR_L2TPNS)/usr/lib/l2tpns
38 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/
39 install -d -m0755 $(IDIR_L2TPNS)/usr/sbin
40 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/
41 $(RSTRIP) $(IDIR_L2TPNS)
42 $(IPKG_BUILD) $(IDIR_L2TPNS) $(PACKAGE_DIR)
This page took 0.050237 seconds and 5 git commands to generate.