secubox-openwrt/package/secubox/secubox-app-backup/Makefile
CyberMind-FR 9ddf5a4e0b fix(build): Fix 16 failed packages with missing Build/Compile and URL config
- Add missing 'define Build/Compile' to script-only packages:
  - secubox-app-config-vault
  - secubox-app-gotosocial
  - secubox-app-ipblocklist
  - secubox-app-ksmbd
  - secubox-app-qbittorrent
  - secubox-app-talk-hpb
  - secubox-app-vhost-manager
  - secubox-app-webtorrent
  - secubox-avatar-tap
  - secubox-core-users
  - secubox-dpi-dual
  - secubox-app-backup

- Fix luci-app-interceptor: Add missing BuildPackage call
- Fix luci-app-master-link: Correct RPCD handler filename (underscore → dash)
- Fix luci-app-config-vault: Add Build/Compile definition

- Create secubox-console Makefile (new package for remote management)
- Create secubox-app-backup cron job file

- Update secubox-app-repo: Change feed URLs from local IP (192.168.255.1:8888)
  to repo.secubox.in domain with HTTPS and proper src/gz format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-18 18:01:51 +01:00

45 lines
1.1 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-backup
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox <support@secubox.io>
PKG_LICENSE:=GPL-3.0
PKG_FLAGS:=nonshared
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-backup
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=SecuBox Unified Backup Manager
DEPENDS:=+secubox-core +tar +gzip
PKGARCH:=all
endef
define Package/secubox-app-backup/description
Unified backup and restore system for SecuBox.
Supports LXC containers, UCI configs, service data, and profiles.
endef
define Package/secubox-app-backup/conffiles
/etc/config/backup
endef
define Build/Compile
endef
define Package/secubox-app-backup/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/backup $(1)/etc/config/backup
$(INSTALL_DIR) $(1)/etc/cron.d
$(INSTALL_DATA) ./files/etc/cron.d/secubox-backup $(1)/etc/cron.d/secubox-backup
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/secubox-backup $(1)/usr/sbin/secubox-backup
$(INSTALL_DIR) $(1)/usr/lib/backup
$(INSTALL_DATA) ./files/usr/lib/backup/*.sh $(1)/usr/lib/backup/
endef
$(eval $(call BuildPackage,secubox-app-backup))