You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2014 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. PKG_NAME:=mwan3
  9. PKG_VERSION:=2.6.16
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
  12. PKG_LICENSE:=GPLv2
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/mwan3
  15. SECTION:=net
  16. CATEGORY:=Network
  17. SUBMENU:=Routing and Redirection
  18. DEPENDS:= \
  19. +ip \
  20. +ipset \
  21. +iptables \
  22. +iptables-mod-conntrack-extra \
  23. +iptables-mod-ipopt \
  24. +jshn
  25. TITLE:=Multiwan hotplug script with connection tracking support
  26. MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
  27. PKGARCH:=all
  28. endef
  29. define Package/mwan3/description
  30. Hotplug script which makes configuration of multiple WAN interfaces simple
  31. and manageable. With loadbalancing/failover support for up to 250 wan
  32. interfaces, connection tracking and an easy to manage traffic ruleset.
  33. endef
  34. define Package/mwan3/conffiles
  35. /etc/config/mwan3
  36. /etc/mwan3.user
  37. endef
  38. define Build/Compile
  39. endef
  40. define Package/mwan3/postinst
  41. #!/bin/sh
  42. if [ -z "$${IPKG_INSTROOT}" ]; then
  43. /etc/init.d/rpcd restart
  44. fi
  45. exit 0
  46. endef
  47. define Package/mwan3/postrm
  48. #!/bin/sh
  49. if [ -z "$${IPKG_INSTROOT}" ]; then
  50. /etc/init.d/rpcd restart
  51. fi
  52. exit 0
  53. endef
  54. define Package/mwan3/install
  55. $(CP) ./files/* $(1)
  56. endef
  57. $(eval $(call BuildPackage,mwan3))