source: trunk/package/firewall/Makefile @ 27500

Last change on this file since 27500 was 27500, checked in by jow, 5 years ago

[package] firewall:

  • solve scoping issues when multiple values are used, thanks Daniel Dickinson
  • ignore src_port/dest_port for proto icmp rules, ignore icmp_type for non-icmp rules
  • properly handle icmp when proto is given in numerical form (1, 58)
  • support negated icmp types
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2008-2011 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:=29
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  MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
22  DEPENDS:=+iptables +iptables-mod-conntrack +iptables-mod-nat
23  PKGARCH:=all
24endef
25
26define Package/firewall/description
27 UCI based firewall for OpenWrt
28endef
29
30define Build/Compile
31        true
32endef
33
34define Package/firewall/conffiles
35/etc/config/firewall
36/etc/firewall.user
37endef
38
39define Package/firewall/install
40        $(INSTALL_DIR) $(1)/lib/firewall
41        $(INSTALL_DATA) ./files/lib/*.sh $(1)/lib/firewall
42        $(INSTALL_DIR) $(1)/sbin
43        $(INSTALL_BIN) ./files/bin/fw $(1)/sbin
44        $(INSTALL_DIR) $(1)/etc/config
45        $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
46        $(INSTALL_DIR) $(1)/etc/init.d/
47        $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
48        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
49        $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
50        $(INSTALL_DIR) $(1)/etc/hotplug.d/firewall
51        $(INSTALL_DATA) ./files/reflection.hotplug $(1)/etc/hotplug.d/firewall/10-nat-reflection
52        $(INSTALL_DIR) $(1)/etc
53        $(INSTALL_DATA) ./files/firewall.user $(1)/etc
54        $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
55        $(INSTALL_DATA) ./files/firewall.upgrade $(1)/lib/upgrade/keep.d/firewall
56endef
57
58$(eval $(call BuildPackage,firewall))
Note: See TracBrowser for help on using the repository browser.