Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=firewall
  8. PKG_VERSION:=1
  9. PKG_RELEASE:=8
  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-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/uci_firewall.sh $(1)/lib/firewall
  31. $(INSTALL_DIR) $(1)/etc/config
  32. $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
  33. $(INSTALL_DIR) $(1)/etc/init.d/
  34. $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
  35. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  36. $(INSTALL_DATA) ./files/20-firewall $(1)/etc/hotplug.d/iface
  37. $(INSTALL_DIR) $(1)/etc
  38. $(INSTALL_DATA) ./files/firewall.user $(1)/etc
  39. endef
  40. $(eval $(call BuildPackage,firewall))