aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/firewall3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/config/firewall3/Makefile')
-rw-r--r--package/network/config/firewall3/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/network/config/firewall3/Makefile b/package/network/config/firewall3/Makefile
index 66da421327..cd9405eae4 100644
--- a/package/network/config/firewall3/Makefile
+++ b/package/network/config/firewall3/Makefile
@@ -33,6 +33,11 @@ define Package/firewall3/description
This package provides a config-compatible C implementation of the UCI firewall.
endef
+define Package/firewall3/conffiles
+/etc/config/firewall
+/etc/firewall.user
+endef
+
define Package/firewall3/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/firewall3 $(1)/sbin/fw3
@@ -40,6 +45,10 @@ define Package/firewall3/install
$(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
+ $(INSTALL_DIR) $(1)/etc/config/
+ $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
+ $(INSTALL_DIR) $(1)/etc/
+ $(INSTALL_DATA) ./files/firewall.user $(1)/etc/firewall.user
endef
$(eval $(call BuildPackage,firewall3))