+
+
+### Protocols ###
+define protocol
+ define Package/luci-proto-$(1)
+ SECTION:=luci
+ CATEGORY:=LuCI
+ TITLE:=LuCI - Lua Configuration Interface
+ URL:=http://luci.subsignal.org/
+ MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
+ SUBMENU:=6. Protocols
+ TITLE:=$(if $(2),$(2),LuCI $(1) protocol support)
+ DEPENDS:=$(3)
+ endef
+
+ define Package/luci-proto-$(1)/install
+ $(call Package/luci/install/template,$$(1),protocols/$(1))
+ endef
+
+ ifneq ($(CONFIG_PACKAGE_luci-proto-$(1)),)
+ LUCI_SELECTED_MODULES+=protocols/$(1)
+ endif
+
+ LUCI_BUILD_PACKAGES += luci-proto-$(1)
+endef
+
+$(eval $(call protocol,core,Support for static/dhcp/none))
+$(eval $(call protocol,ppp,Support for PPP/PPPoE/PPPoA))
+$(eval $(call protocol,pptp,Support for PPtP,+pptp))
+$(eval $(call protocol,6x4,Support for 6in4/6to4,+6in4 +6to4))
+$(eval $(call protocol,3g,Support for 3G,+comgt))
+$(eval $(call protocol,relay,Support for relayd pseudo bridges,+PACKAGE_luci-proto-relay:relayd))