source: packages/libs/savedynamic/Makefile @ 21370

Last change on this file since 21370 was 21370, checked in by cshore, 6 years ago

packages: libs/savedynamic: Add missing Makefile.

File size: 1.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=savedynamic
12PKG_VERSION:=1.0
13PKG_RELEASE:=1
14MAINTAINER:=Daniel Dickinson <cshore@csolve.net>
15
16PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/savedynamic/Default
21  SECTION:=libs
22  CATEGORY:=Libraries
23  TITLE:=Preserve dynamic chains during firewall restart
24endef
25
26define Package/savedynamic
27  $(call Package/savedynamic/Default)
28  MENU:=1
29  DEPENDS:=+iptables-utils
30endef
31
32define 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.
35endef
36
37define Build/Prepare
38endef
39
40define Build/Configure
41endef
42
43define Build/Compile
44endef
45
46define Package/block-extroot/install
47        $(INSTALL_DIR) $(1)/lib/firewall
48        $(INSTALL_DATA) ./files/savedynamic.sh $(1)/lib/firewall/
49endef
50
51$(eval $(call BuildPackage,savedynamic))
52
Note: See TracBrowser for help on using the repository browser.