packages: libs/savedynamic: rename package to firewall-mod-save and script to 20_save...
[openwrt/svn-archive/archive.git] / libs / firewall-mod-save / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=firewall-mod-save
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=2
14 MAINTAINER:=Daniel Dickinson <cshore@csolve.net>
15
16 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/firewall-mod-save/Default
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Preserve dynamic chains during firewall restart
24 endef
25
26 define Package/firewall-mod-save
27 $(call Package/firewall-mod-save/Default)
28 DEPENDS:=+iptables-utils
29 endef
30
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.
34 endef
35
36 define Build/Prepare
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 endef
44
45 define Package/firewall-mod-save/install
46 $(INSTALL_DIR) $(1)/lib/firewall
47 $(INSTALL_DATA) ./files/20_save.sh $(1)/lib/firewall/
48 endef
49
50 $(eval $(call BuildPackage,firewall-mod-save))
51