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
11 PKG_NAME
:=firewall-mod-save
15 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/firewall-mod-save
/Default
22 TITLE
:=Preserve dynamic chains during firewall restart
23 MAINTAINER
:=Daniel Dickinson
<cshore@csolve.net
>
26 define Package
/firewall-mod-save
27 $(call Package
/firewall-mod-save
/Default
)
28 DEPENDS
:=+iptables-utils
31 define Package
/firewall-mod-save
/description
32 Uses iptables-save to save the option chain in option table
(default
filter)
33 as defined by the config section save in
/etc
/config
/firewall.
39 define Build
/Configure
45 define Package
/firewall-mod-save
/install
46 $(INSTALL_DIR
) $(1)/lib
/firewall
47 $(INSTALL_DATA
) .
/files
/20_save.sh
$(1)/lib
/firewall
/
50 $(eval
$(call BuildPackage
,firewall-mod-save
))