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.

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