packages: libs/savedynamic: Add missing Makefile.
[openwrt/svn-archive/archive.git] / libs / savedynamic / 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:=savedynamic
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
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/savedynamic/Default
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Preserve dynamic chains during firewall restart
24 endef
25
26 define Package/savedynamic
27 $(call Package/savedynamic/Default)
28 MENU:=1
29 DEPENDS:=+iptables-utils
30 endef
31
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.
35 endef
36
37 define Build/Prepare
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 endef
45
46 define Package/block-extroot/install
47 $(INSTALL_DIR) $(1)/lib/firewall
48 $(INSTALL_DATA) ./files/savedynamic.sh $(1)/lib/firewall/
49 endef
50
51 $(eval $(call BuildPackage,savedynamic))
52