Files
auracaster-os/package/swupdate-scripts/swupdate-scripts.mk
2025-04-17 13:21:38 +02:00

21 lines
1007 B
Makefile

################################################################################
#
# swupdate-scripts
#
################################################################################
SWUPDATE_SCRIPTS_VERSION = 1.0
SWUPDATE_SCRIPTS_SITE = $(BR2_EXTERNAL_AURACASTER_SYSTEM_PATH)/package/swupdate-scripts/files
SWUPDATE_SCRIPTS_SITE_METHOD = local
define SWUPDATE_SCRIPTS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/swupdate-progress.sh $(TARGET_DIR)/usr/bin/swupdate-progress
$(INSTALL) -D -m 0755 $(@D)/swupdate-check.sh $(TARGET_DIR)/usr/bin/swupdate-check
$(INSTALL) -D -m 0755 $(@D)/swupdate-ab-helper.sh $(TARGET_DIR)/usr/bin/swupdate-ab-helper
$(INSTALL) -D -m 0644 $(@D)/handlers.conf $(TARGET_DIR)/etc/swupdate/conf.d/handlers.conf
mkdir -p $(TARGET_DIR)/var/www/swupdate/custom
$(INSTALL) -D -m 0644 $(@D)/custom.js $(TARGET_DIR)/var/www/swupdate/custom/custom.js
$(INSTALL) -D -m 0644 $(@D)/custom.css $(TARGET_DIR)/var/www/swupdate/custom/custom.css
endef
$(eval $(generic-package))