Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:=20161030
  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 +getopt +xz
  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))