coova-chilli: fix stat failed error when compile without kmod 2509/head
authorJaehoon You <teslamint@gmail.com>
Mon, 18 May 2015 04:50:03 +0000 (13:50 +0900)
committerMatteo Valentini <matteo.valentini@wiman.me>
Tue, 15 Mar 2016 16:15:03 +0000 (17:15 +0100)
This patch fixes #1261.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
net/coova-chilli/Makefile

index 32e394000a4382b7959ab1ccebb22b09cd77dae1..b8acf5426fc139a82205667e369494cae1b11920 100644 (file)
@@ -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