You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.5 KiB
Makefile
59 lines
2.5 KiB
Makefile
1 year ago
|
#
|
||
|
# Copyright (C) 2006-2014 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
|
|
||
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
|
PKG_NAME:=luci-app-docker-backup
|
||
|
LUCI_PKGARCH:=all
|
||
|
LUCI_DEPENDS:=+lsblk +docker +luci-lib-taskd
|
||
|
|
||
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||
|
|
||
|
define Package/luci-app-docker-backup/conffiles
|
||
|
/root/etc/config/docker-backup
|
||
|
SECTION:=luci
|
||
|
CATEGORY:=LuCI
|
||
|
SUBMENU:=3. Applications
|
||
|
TITLE:=LuCI Docker container module by PrivateRouter
|
||
|
endef
|
||
|
|
||
|
define Build/Prepare
|
||
|
endef
|
||
|
|
||
|
define Build/Configure
|
||
|
endef
|
||
|
|
||
|
define Build/Compile
|
||
|
endef
|
||
|
|
||
|
define Package/install
|
||
|
$(INSTALL_DIR) $(1)./root/etc/config/
|
||
|
$(INSTALL_DIR) $(1)./root/etc/uci-defaults/
|
||
|
$(INSTALL_DIR) $(1)./root/usr/libexec/apps/docker-backup/
|
||
|
$(INSTALL_DIR) $(1)./root/usr/share/rpcd/acl.d/
|
||
|
$(INSTALL_DIR) $(1)./etc/config # add this line
|
||
|
|
||
|
$(INSTALL_BIN) ./root/etc/config/docker-backup $(1)/etc/config/docker-backup
|
||
|
$(INSTALL_BIN) ./root/etc/uci-defaults/luci-app-docker-backup $(1)/etc/uci-defaults/luci-app-docker-backup
|
||
|
$(INSTALL_BIN) ./root/usr/libexec/apps/docker-backup/docker-backup.sh $(1)/usr/libexec/apps/docker-backup/docker-backup.sh
|
||
|
$(INSTALL_BIN) ./root/usr/libexec/apps/docker-backup/docker-backup $(1)/usr/libexec/apps/docker-backup/docker-backup
|
||
|
$(INSTALL_DATA) ./root/usr/libexec/apps/docker-backup/restore.go $(1)/usr/libexec/apps/docker-backup/restore.go
|
||
|
$(INSTALL_DATA) ./root/usr/libexec/apps/docker-backup/main.go $(1)/usr/libexec/apps/docker-backup/main.go
|
||
|
$(INSTALL_DATA) ./root/usr/libexec/apps/docker-backup/go.sum $(1)/usr/libexec/apps/docker-backup/go.sum
|
||
|
$(INSTALL_DATA) ./root/usr/libexec/apps/docker-backup/go.mod $(1)/usr/libexec/apps/docker-backup/go.mod
|
||
|
$(INSTALL_DATA) ./root/usr/libexec/apps/docker-backup/backup.go $(1)/usr/libexec/apps/docker-backup/backup.go
|
||
|
$(INSTALL_DATA) ./luasrc/model/cbi/luci-app-docker-backup/luci-app-docker-backup.lua $(1)/usr/lib/lua/luci/model/cbi/luci-app-docker-backup/luci-app-docker-backup.lua
|
||
|
$(INSTALL_DATA) ./luasrc/controller/docker-backup.lua $(1)/usr/lib/lua/luci/controller/docker-backup.lua
|
||
|
$(INSTALL_DATA) ./luasrc/view/docker-backup/status.htm $(1)/usr/lib/lua/luci/view/docker-backup/status.htm
|
||
|
$(INSTALL_DATA) ./luasrc/model/docker-backup.lua $(1)/usr/lib/lua/luci/model/docker-backup.lua
|
||
|
$(INSTALL_DATA) ./luasrc/model/cbi/docker-backup.lua $(1)/usr/lib/lua/luci/model/cbi/docker-backup.lua
|
||
|
$(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/luci-app-docker-backup.json $(1)/usr/share/rpcd/acl.d/luci-app-docker-backup.json
|
||
|
endef
|
||
|
|
||
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|