Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=firewall
  8. PKG_VERSION:=2
  9. PKG_RELEASE:=3
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/firewall
  12. SECTION:=net
  13. CATEGORY:=Base system
  14. URL:=http://openwrt.org/
  15. TITLE:=OpenWrt firewall
  16. DEPENDS:=+iptables +iptables-mod-conntrack +iptables-mod-nat
  17. PKGARCH:=all
  18. endef
  19. define Package/firewall/description
  20. uci based firewall for openwrt
  21. endef
  22. define Build/Compile
  23. true
  24. endef
  25. define Package/firewall/conffiles
  26. /etc/config/firewall
  27. endef
  28. define Package/firewall/install
  29. $(INSTALL_DIR) $(1)/lib/firewall
  30. $(INSTALL_DATA) ./files/lib/*.sh $(1)/lib/firewall
  31. $(INSTALL_DIR) $(1)/sbin
  32. $(INSTALL_BIN) ./files/bin/fw $(1)/sbin
  33. $(INSTALL_DIR) $(1)/etc/config
  34. $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
  35. $(INSTALL_DIR) $(1)/etc/init.d/
  36. $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
  37. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  38. $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
  39. $(INSTALL_DIR) $(1)/etc
  40. $(INSTALL_DATA) ./files/firewall.user $(1)/etc
  41. endef
  42. $(eval $(call BuildPackage,firewall))