3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=2a0ee2a3678160c335f1d68c17c4f871
10 PKG_SOURCE_URL:=@SF/l2tpns
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17 include $(TOPDIR)/package/rules.mk
19 $(eval $(call PKG_template,L2TPNS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(PKG_BUILD_DIR)/.configured:
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
28 OPTIM="$(TARGET_CFLAGS)" \
29 DESTDIR=$(PKG_INSTALL_DIR) \
30 STAGING_DIR=$(STAGING_DIR) \
35 install -d -m0755 $(IDIR_L2TPNS)/etc/l2tpns
36 $(CP) $(PKG_INSTALL_DIR)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/
37 install -d -m0755 $(IDIR_L2TPNS)/usr/lib/l2tpns
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/
39 install -d -m0755 $(IDIR_L2TPNS)/usr/sbin
40 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/
41 $(RSTRIP) $(IDIR_L2TPNS)
42 $(IPKG_BUILD) $(IDIR_L2TPNS) $(PACKAGE_DIR)