summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-12-03 15:17:05 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-08 16:26:20 +0100
commit1bb4822dca6113f73e3bc89e2acf15935e6f8e92 (patch)
tree35e16f100466e4e00657199b38bb3d87d52bf73f /protocols
parent9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4 (diff)
Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'protocols')
-rw-r--r--protocols/3g/Makefile2
-rw-r--r--protocols/ipv6/Makefile2
-rw-r--r--protocols/luci-proto-3g/Makefile14
-rw-r--r--protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua (renamed from protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua)0
-rw-r--r--protocols/luci-proto-ipv6/Makefile14
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua (renamed from protocols/ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua (renamed from protocols/ipv6/luasrc/model/network/proto_4x6.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua (renamed from protocols/ipv6/luasrc/model/network/proto_6x4.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/network/proto_dhcpv6.lua (renamed from protocols/ipv6/luasrc/model/network/proto_dhcpv6.lua)0
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua (renamed from protocols/ipv6/luasrc/model/network/proto_hnet.lua)0
-rw-r--r--protocols/luci-proto-openconnect/Makefile14
-rw-r--r--protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua (renamed from protocols/openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua)0
-rw-r--r--protocols/luci-proto-openconnect/luasrc/model/network/proto_openconnect.lua (renamed from protocols/openconnect/luasrc/model/network/proto_openconnect.lua)0
-rw-r--r--protocols/luci-proto-ppp/Makefile14
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua (renamed from protocols/ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua)0
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua (renamed from protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua)0
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua (renamed from protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua)0
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua (renamed from protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua)0
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua (renamed from protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua)0
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua (renamed from protocols/ppp/luasrc/model/network/proto_ppp.lua)0
-rw-r--r--protocols/luci-proto-relay/Makefile14
-rw-r--r--protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua (renamed from protocols/relay/luasrc/model/cbi/admin_network/proto_relay.lua)0
-rw-r--r--protocols/luci-proto-relay/luasrc/model/network/proto_relay.lua (renamed from protocols/relay/luasrc/model/network/proto_relay.lua)0
-rw-r--r--protocols/openconnect/Makefile2
-rw-r--r--protocols/ppp/Makefile2
-rw-r--r--protocols/relay/Makefile2
31 files changed, 70 insertions, 10 deletions
diff --git a/protocols/3g/Makefile b/protocols/3g/Makefile
deleted file mode 100644
index f7fac7740e..0000000000
--- a/protocols/3g/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/protocols/ipv6/Makefile b/protocols/ipv6/Makefile
deleted file mode 100644
index f7fac7740e..0000000000
--- a/protocols/ipv6/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/protocols/luci-proto-3g/Makefile b/protocols/luci-proto-3g/Makefile
new file mode 100644
index 0000000000..d1d5455dc8
--- /dev/null
+++ b/protocols/luci-proto-3g/Makefile
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for 3G
+LUCI_DEPENDS:=+comgt
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua
index 9c1a762827..9c1a762827 100644
--- a/protocols/3g/luasrc/model/cbi/admin_network/proto_3g.lua
+++ b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua
diff --git a/protocols/luci-proto-ipv6/Makefile b/protocols/luci-proto-ipv6/Makefile
new file mode 100644
index 0000000000..f0ca605f84
--- /dev/null
+++ b/protocols/luci-proto-ipv6/Makefile
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for DHCPv6/6in4/6to4/6rd/DS-Lite
+LUCI_DEPENDS:=
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
index 9b668cdda8..9b668cdda8 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua
index 3835561dd7..3835561dd7 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
index c0cb95b2ba..c0cb95b2ba 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua
index 51f17878d7..51f17878d7 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
index 2d9e258c32..2d9e258c32 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
diff --git a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua
index 0cf8c01017..0cf8c01017 100644
--- a/protocols/ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_hnet.lua
diff --git a/protocols/ipv6/luasrc/model/network/proto_4x6.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua
index 91adfa944f..91adfa944f 100644
--- a/protocols/ipv6/luasrc/model/network/proto_4x6.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_4x6.lua
diff --git a/protocols/ipv6/luasrc/model/network/proto_6x4.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua
index b800b0b540..b800b0b540 100644
--- a/protocols/ipv6/luasrc/model/network/proto_6x4.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua
diff --git a/protocols/ipv6/luasrc/model/network/proto_dhcpv6.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_dhcpv6.lua
index 59463d18a9..59463d18a9 100644
--- a/protocols/ipv6/luasrc/model/network/proto_dhcpv6.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_dhcpv6.lua
diff --git a/protocols/ipv6/luasrc/model/network/proto_hnet.lua b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua
index d3e094f20f..d3e094f20f 100644
--- a/protocols/ipv6/luasrc/model/network/proto_hnet.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/network/proto_hnet.lua
diff --git a/protocols/luci-proto-openconnect/Makefile b/protocols/luci-proto-openconnect/Makefile
new file mode 100644
index 0000000000..31f52749b9
--- /dev/null
+++ b/protocols/luci-proto-openconnect/Makefile
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for OpenConnect VPN
+LUCI_DEPENDS:=+openconnect
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
index 2e2eacee0a..2e2eacee0a 100644
--- a/protocols/openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
+++ b/protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
diff --git a/protocols/openconnect/luasrc/model/network/proto_openconnect.lua b/protocols/luci-proto-openconnect/luasrc/model/network/proto_openconnect.lua
index 26744cde80..26744cde80 100644
--- a/protocols/openconnect/luasrc/model/network/proto_openconnect.lua
+++ b/protocols/luci-proto-openconnect/luasrc/model/network/proto_openconnect.lua
diff --git a/protocols/luci-proto-ppp/Makefile b/protocols/luci-proto-ppp/Makefile
new file mode 100644
index 0000000000..70db744ea6
--- /dev/null
+++ b/protocols/luci-proto-ppp/Makefile
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for PPP/PPPoE/PPPoA/PPtP
+LUCI_DEPENDS:=
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
index c1dd56e126..c1dd56e126 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
index 659e733a79..659e733a79 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
index c32e2828d7..c32e2828d7 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
index ec258a5282..ec258a5282 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
diff --git a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
index ea9858e7de..ea9858e7de 100644
--- a/protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
diff --git a/protocols/ppp/luasrc/model/network/proto_ppp.lua b/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
index dfd545f353..dfd545f353 100644
--- a/protocols/ppp/luasrc/model/network/proto_ppp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
diff --git a/protocols/luci-proto-relay/Makefile b/protocols/luci-proto-relay/Makefile
new file mode 100644
index 0000000000..d9c04f76a8
--- /dev/null
+++ b/protocols/luci-proto-relay/Makefile
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for relayd pseudo bridges
+LUCI_DEPENDS:=+relayd
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/relay/luasrc/model/cbi/admin_network/proto_relay.lua b/protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua
index 017bb9bfa6..017bb9bfa6 100644
--- a/protocols/relay/luasrc/model/cbi/admin_network/proto_relay.lua
+++ b/protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua
diff --git a/protocols/relay/luasrc/model/network/proto_relay.lua b/protocols/luci-proto-relay/luasrc/model/network/proto_relay.lua
index 42bd1f846a..42bd1f846a 100644
--- a/protocols/relay/luasrc/model/network/proto_relay.lua
+++ b/protocols/luci-proto-relay/luasrc/model/network/proto_relay.lua
diff --git a/protocols/openconnect/Makefile b/protocols/openconnect/Makefile
deleted file mode 100644
index f7fac7740e..0000000000
--- a/protocols/openconnect/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/protocols/ppp/Makefile b/protocols/ppp/Makefile
deleted file mode 100644
index f7fac7740e..0000000000
--- a/protocols/ppp/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/protocols/relay/Makefile b/protocols/relay/Makefile
deleted file mode 100644
index f7fac7740e..0000000000
--- a/protocols/relay/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk