From: Jaehoon You Date: Mon, 18 May 2015 04:50:03 +0000 (+0900) Subject: coova-chilli: fix stat failed error when compile without kmod X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3c129346a23e45c6eac803a5faf54279dbf97b5e;p=feed%2Fpackages.git coova-chilli: fix stat failed error when compile without kmod This patch fixes #1261. Signed-off-by: Jaehoon You --- diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 32e394000a..b8acf5426f 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -134,8 +134,10 @@ define Package/coova-chilli/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/iptables - $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/ + $(if $(CONFIG_PACKAGE_kmod-ipt-coova), \ + $(INSTALL_DIR) $(1)/usr/lib/iptables; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/ \ + ) $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) files/chilli.init $(1)/etc/init.d/chilli $(INSTALL_DIR) $(1)/etc/config