| 1 | # |
| 2 | # Copyright (C) 2008-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 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=firewall |
| 10 | |
| 11 | PKG_VERSION:=1 |
| 12 | PKG_RELEASE:=16 |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define 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 |
| 23 | endef |
| 24 | |
| 25 | define Package/firewall/description |
| 26 | UCI based firewall for OpenWrt |
| 27 | endef |
| 28 | |
| 29 | define Build/Compile |
| 30 | true |
| 31 | endef |
| 32 | |
| 33 | define Package/firewall/conffiles |
| 34 | /etc/config/firewall |
| 35 | endef |
| 36 | |
| 37 | define Package/firewall/install |
| 38 | $(INSTALL_DIR) $(1)/lib/firewall |
| 39 | $(INSTALL_DATA) ./files/uci_firewall.sh $(1)/lib/firewall |
| 40 | $(INSTALL_DIR) $(1)/etc/config |
| 41 | $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall |
| 42 | $(INSTALL_DIR) $(1)/etc/init.d/ |
| 43 | $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall |
| 44 | $(INSTALL_DIR) $(1)/etc/hotplug.d/iface |
| 45 | $(INSTALL_DATA) ./files/20-firewall $(1)/etc/hotplug.d/iface |
| 46 | $(INSTALL_DIR) $(1)/etc/hotplug.d/firewall |
| 47 | $(INSTALL_DATA) ./files/reflection.hotplug $(1)/etc/hotplug.d/firewall/10-nat-reflection |
| 48 | $(INSTALL_DIR) $(1)/etc |
| 49 | $(INSTALL_DATA) ./files/firewall.user $(1)/etc |
| 50 | endef |
| 51 | |
| 52 | $(eval $(call BuildPackage,firewall)) |
| 53 | |