fix n2n compile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@12184 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-08-05 23:04:50 +00:00
parent 702fe2acfb
commit 69f3d8e68a

View File

@ -20,8 +20,6 @@ PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
PKG_SOURCE_PROTO:=svn PKG_SOURCE_PROTO:=svn
PKG_SOURCE_VERSION:=$(PKG_REV) PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/n2n define Package/n2n
@ -35,14 +33,15 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" CFLAGS="$(TARGET_CFLAGS)" \
INSTALL_PROG=":"
endef endef
define Package/n2n/install define Package/n2n/install
$(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/edge $(1)/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/edge $(1)/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/supernode $(1)/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/supernode $(1)/sbin/
$(INSTALL_DIR) $(1)/etc/config $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/n2n.config $(1)/etc/config/n2n $(INSTALL_DATA) ./files/n2n.config $(1)/etc/config/n2n
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d