2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
14 MAINTAINER
:=Daniel Dickinson
<cshore@csolve.net
>
16 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/savedynamic
/Default
23 TITLE
:=Preserve dynamic chains during firewall restart
26 define Package
/savedynamic
27 $(call Package
/savedynamic
/Default
)
29 DEPENDS
:=+iptables-utils
32 define Package
/savedynamic
/description
33 Uses iptables-save to save the option chain in option table
(default
filter)
34 as defined by the config section save in
/etc
/config
/firewall.
40 define Build
/Configure
46 define Package
/block-extroot
/install
47 $(INSTALL_DIR
) $(1)/lib
/firewall
48 $(INSTALL_DATA
) .
/files
/savedynamic.sh
$(1)/lib
/firewall
/
51 $(eval
$(call BuildPackage
,savedynamic
))