2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/firewall
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
26 define Package
/firewall
/description
27 UCI based firewall for OpenWrt
34 define Package
/firewall
/conffiles
38 define Package
/firewall
/install
39 $(INSTALL_DIR
) $(1)/lib
/firewall
40 $(INSTALL_DATA
) .
/files
/lib
/*.sh
$(1)/lib
/firewall
41 $(INSTALL_DIR
) $(1)/sbin
42 $(INSTALL_BIN
) .
/files
/bin
/fw
$(1)/sbin
43 $(INSTALL_DIR
) $(1)/etc
/config
44 $(INSTALL_DATA
) .
/files
/firewall.config
$(1)/etc
/config
/firewall
45 $(INSTALL_DIR
) $(1)/etc
/init.d
/
46 $(INSTALL_BIN
) .
/files
/firewall.init
$(1)/etc
/init.d
/firewall
47 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
48 $(INSTALL_DATA
) .
/files
/firewall.hotplug
$(1)/etc
/hotplug.d
/iface
/20-firewall
49 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/firewall
50 $(INSTALL_DATA
) .
/files
/reflection.hotplug
$(1)/etc
/hotplug.d
/firewall
/10-nat-reflection
51 $(INSTALL_DIR
) $(1)/etc
52 $(INSTALL_DATA
) .
/files
/firewall.user
$(1)/etc
55 $(eval
$(call BuildPackage
,firewall
))