Browse Source

coova-chilli: fix stat failed error when compile without kmod

This patch fixes #1261.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
Jaehoon You 9 years ago
parent
commit
c14e55e452
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      net/coova-chilli/Makefile

+ 4
- 2
net/coova-chilli/Makefile View File

@@ -134,8 +134,10 @@ define Package/coova-chilli/install
134 134
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
135 135
 	$(INSTALL_DIR) $(1)/usr/lib/
136 136
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
137
-	$(INSTALL_DIR) $(1)/usr/lib/iptables
138
-	$(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/
137
+	$(if $(CONFIG_PACKAGE_kmod-ipt-coova), \
138
+		$(INSTALL_DIR) $(1)/usr/lib/iptables; \
139
+		$(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib*.so $(1)/usr/lib/iptables/ \
140
+	)
139 141
 	$(INSTALL_DIR) $(1)/etc/init.d
140 142
 	$(INSTALL_BIN) files/chilli.init $(1)/etc/init.d/chilli
141 143
 	$(INSTALL_DIR) $(1)/etc/config