summaryrefslogtreecommitdiffstats
path: root/package/network/config/firewall3/Makefile
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-05 13:45:09 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-05 13:45:09 +0000
commitb955ebb2948c23681348c005fee216862690ad03 (patch)
treeb69c134fa6314cb2d3a6dd2181af912902e90975 /package/network/config/firewall3/Makefile
parent14e76acf76d3b152b9c443a6014c147058aad01b (diff)
firewall3: add default config and firewall.user
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35889 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 66da42132..cd9405eae 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))