package/swupdate: use $(SWUPDATE_PKGDIR) for pkgdir path

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
James Hilliard 2021-09-11 10:50:19 -06:00 committed by Yann E. MORIN
parent 8862c71837
commit 7ccb46b1fe

View File

@ -238,30 +238,30 @@ endif
define SWUPDATE_INSTALL_COMMON
mkdir -p $(TARGET_DIR)/etc/swupdate/conf.d \
$(TARGET_DIR)/usr/lib/swupdate/conf.d
$(INSTALL) -D -m 755 package/swupdate/swupdate.sh \
$(INSTALL) -D -m 755 $(SWUPDATE_PKGDIR)/swupdate.sh \
$(TARGET_DIR)/usr/lib/swupdate/swupdate.sh
$(if $(BR2_PACKAGE_SWUPDATE_WEBSERVER), \
$(INSTALL) -D -m 644 package/swupdate/10-mongoose-args \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/10-mongoose-args \
$(TARGET_DIR)/usr/lib/swupdate/conf.d/10-mongoose-args)
endef
define SWUPDATE_INSTALL_INIT_SYSTEMD
$(SWUPDATE_INSTALL_COMMON)
$(INSTALL) -D -m 644 package/swupdate/swupdate.service \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate.service \
$(TARGET_DIR)/usr/lib/systemd/system/swupdate.service
$(INSTALL) -D -m 644 package/swupdate/swupdate.socket \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate.socket \
$(TARGET_DIR)/usr/lib/systemd/system/swupdate.socket
$(INSTALL) -D -m 644 package/swupdate/swupdate-usb@.service \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-usb@.service \
$(TARGET_DIR)/usr/lib/systemd/system/swupdate-usb@.service
$(INSTALL) -D -m 644 package/swupdate/swupdate-progress.service \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-progress.service \
$(TARGET_DIR)/usr/lib/systemd/system/swupdate-progress.service
$(INSTALL) -D -m 644 package/swupdate/tmpfiles-swupdate.conf \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/tmpfiles-swupdate.conf \
$(TARGET_DIR)/usr/lib/tmpfiles.d/tmpfiles-swupdate.conf
endef
define SWUPDATE_INSTALL_INIT_SYSV
$(SWUPDATE_INSTALL_COMMON)
$(INSTALL) -D -m 755 package/swupdate/S80swupdate \
$(INSTALL) -D -m 755 $(SWUPDATE_PKGDIR)/S80swupdate \
$(TARGET_DIR)/etc/init.d/S80swupdate
$(INSTALL) -D -m 644 package/swupdate/90-start-progress \
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/90-start-progress \
$(TARGET_DIR)/usr/lib/swupdate/conf.d/90-start-progress
endef