This package separates out the firewall scripts from the iptables package, making it possible to have iptables installed without having to bring in the firewall scripts. Useful for say, when you want to use shorewall-lite rather than the firewall scripts.
Signed-off-by: Brian J. Murrell <[EMAIL PROTECTED]> Index: package/iptables/Makefile =================================================================== --- package/iptables/Makefile (revision 11527) +++ package/iptables/Makefile (working copy) @@ -54,11 +54,19 @@ define Package/iptables $(call Package/iptables/Default) + TITLE:=netfilter administration tool + MENU:=1 +endef + +define Package/firewall + SECTION:=net + CATEGORY:=Base system TITLE:=IPv4 firewall administration tool MENU:=1 + DEPENDS:=iptables $(1) endef -define Package/iptables/conffiles +define Package/firewall/conffiles /etc/firewall.config /etc/firewall.user endef @@ -246,7 +254,7 @@ $(CP) $(PKG_BUILD_DIR)/libiptc/libiptc.a $(1)/usr/lib endef -define Package/iptables/install +define Package/firewall/install $(INSTALL_DIR) $(1)/etc/config $(INSTALL_DATA) ./files/firewall.config $(1)/etc/ $(INSTALL_DIR) $(1)/etc/init.d @@ -254,6 +262,9 @@ $(INSTALL_BIN) ./files/firewall.user $(1)/etc/ $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DATA) ./files/firewall.awk $(1)/usr/lib +endef + +define Package/iptables/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/iptables @@ -303,6 +314,7 @@ $(INSTALL_DIR) $$(1)/etc/l7-protocols; \ $(CP) files/l7/*.pat $$(1)/etc/l7-protocols/ +$(eval $(call BuildPackage,firewall)) $(eval $(call BuildPackage,iptables)) $(eval $(call BuildPackage,iptables-utils)) $(eval $(call BuildPlugin,iptables-mod-conntrack,$(IPT_CONNTRACK-m)))
signature.asc
Description: This is a digitally signed message part
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel