source: trunk/package/firewall/Makefile @ 23062

Last change on this file since 23062 was 23062, checked in by jow, 6 years ago

[package] firewall: deliver remove hotplug events for all active zones/networks when restarting the firewall

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2008-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=firewall
10
11PKG_VERSION:=2
12PKG_RELEASE:=14
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/firewall
17  SECTION:=net
18  CATEGORY:=Base system
19  URL:=http://openwrt.org/
20  TITLE:=OpenWrt firewall
21  DEPENDS:=+iptables +iptables-mod-conntrack +iptables-mod-nat
22  PKGARCH:=all
23endef
24
25define Package/firewall/description
26 UCI based firewall for OpenWrt
27endef
28
29define Build/Compile
30        true
31endef
32
33define Package/firewall/conffiles
34/etc/config/firewall
35endef
36
37define Package/firewall/install
38        $(INSTALL_DIR) $(1)/lib/firewall
39        $(INSTALL_DATA) ./files/lib/*.sh $(1)/lib/firewall
40        $(INSTALL_DIR) $(1)/sbin
41        $(INSTALL_BIN) ./files/bin/fw $(1)/sbin
42        $(INSTALL_DIR) $(1)/etc/config
43        $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
44        $(INSTALL_DIR) $(1)/etc/init.d/
45        $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
46        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
47        $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
48        $(INSTALL_DIR) $(1)/etc/hotplug.d/firewall
49        $(INSTALL_DATA) ./files/reflection.hotplug $(1)/etc/hotplug.d/firewall/10-nat-reflection
50        $(INSTALL_DIR) $(1)/etc
51        $(INSTALL_DATA) ./files/firewall.user $(1)/etc
52endef
53
54$(eval $(call BuildPackage,firewall))
Note: See TracBrowser for help on using the repository browser.