source "package/luasql/Config.in"
source "package/lua-ev/Config.in"
source "package/lua-msgpack-native/Config.in"
+source "package/orbit/Config.in"
source "package/rings/Config.in"
source "package/wsapi/Config.in"
source "package/xavante/Config.in"
--- /dev/null
+config BR2_PACKAGE_ORBIT
+ bool "orbit"
+ # These are runtime dependencies
+ select BR2_PACKAGE_WSAPI
+ select BR2_PACKAGE_LUAFILESYSTEM
+ help
+ An MVC web framework for Lua. The design is inspired by lightweight
+ Ruby frameworks such as Camping
+
+ http://keplerproject.github.com/orbit
--- /dev/null
+Fix installation commands
+
+The installation commands did not match the location of the source
+files within the Orbit source tree.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/Makefile
+===================================================================
+--- a/Makefile
++++ b/Makefile
+@@ -11,12 +11,9 @@
+ mkdir -p $(LUA_DIR)
+ cp src/orbit.lua $(LUA_DIR)
+ mkdir -p $(LUA_DIR)/orbit
+- cp src/model.lua $(LUA_DIR)/orbit
+- cp src/cache.lua $(LUA_DIR)/orbit
+- cp src/pages.lua $(LUA_DIR)/orbit
+- cp src/ophandler.lua $(LUA_DIR)/orbit
++ cp src/orbit/*.lua $(LUA_DIR)/orbit
+ mkdir -p $(BIN_DIR)
+- cp src/orbit $(BIN_DIR)
++ cp src/launchers/* $(BIN_DIR)
+ if [ -f ./wsapi/Makefile ]; then \
+ cd wsapi && make install; \
+ fi
--- /dev/null
+################################################################################
+#
+# orbit
+#
+################################################################################
+
+ORBIT_VERSION = 2.2.0
+ORBIT_SITE = http://github.com/downloads/keplerproject/orbit
+ORBIT_LICENSE = MIT
+ORBIT_LICENSE_FILES = COPYRIGHT
+
+define ORBIT_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) \
+ LUA_DIR=$(TARGET_DIR)/usr/share/lua/ \
+ BIN_DIR=$(TARGET_DIR)/usr/bin \
+ install
+endef
+
+$(eval $(generic-package))