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.

66 lines
1.3 KiB

  1. #
  2. # Copyright (C) 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:=luci-app-lxc
  9. PKG_RELEASE:=20141012
  10. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/luci-app-lxc
  13. SECTION:=luci
  14. CATEGORY:=LuCI
  15. SUBMENU:=3. Applications
  16. TITLE:=LXC management Web UI
  17. DEPENDS:=+luci-mod-admin-full +lxc +liblxc +rpcd-mod-lxc
  18. MAINTAINER:=Petar Koretic <petar.koretic@sartura.hr>
  19. endef
  20. define Package/luci-app-lxc/description
  21. This package will install LXC management Web UI.
  22. endef
  23. define Build/Prepare
  24. endef
  25. define Build/Configure
  26. endef
  27. define Build/Compile
  28. endef
  29. define Package/luci-app-lxc/install
  30. $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/
  31. $(INSTALL_BIN) \
  32. ./files/controller/lxc.lua \
  33. $(1)/usr/lib/lua/luci/controller/
  34. $(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/
  35. $(INSTALL_DATA) \
  36. ./files/view/lxc.htm \
  37. $(1)/usr/lib/lua/luci/view/
  38. $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/
  39. $(INSTALL_BIN) \
  40. ./files/model/cbi/lxc.lua \
  41. $(1)/usr/lib/lua/luci/model/cbi/
  42. $(INSTALL_DIR) $(1)/etc/config/
  43. $(INSTALL_DATA) \
  44. ./files/lxc.config \
  45. $(1)/etc/config/lxc
  46. $(INSTALL_DIR) $(1)/www
  47. $(CP) -R \
  48. ./files/www/* \
  49. $(1)/www
  50. endef
  51. $(eval $(call BuildPackage,luci-app-lxc))