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