Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2008 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:=1
  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. endef
  18. define Package/firewall/description
  19. uci based firewall for openwrt
  20. endef
  21. define Build/Compile
  22. true
  23. endef
  24. define Package/firewall/conffiles
  25. /etc/config/firewall
  26. endef
  27. define Package/firewall/install
  28. $(INSTALL_DIR) $(1)/lib/firewall
  29. $(INSTALL_DATA) ./files/uci_firewall.sh $(1)/lib/firewall
  30. $(INSTALL_DIR) $(1)/etc/config
  31. $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
  32. $(INSTALL_DIR) $(1)/etc/init.d/
  33. $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
  34. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  35. $(INSTALL_DATA) ./files/20-firewall $(1)/etc/hotplug.d/iface
  36. endef
  37. $(eval $(call BuildPackage,firewall))