Skip to content

Commit

Permalink
Make use of $(TAR_CMD) instead of tar.
Browse files Browse the repository at this point in the history
Tested on x64 DSM 6.2.4 @ DSM 7.1
  • Loading branch information
brice-fromentin committed Jan 17, 2025
1 parent 979cb12 commit cb64f40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cross/dotnet8-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ include ../../mk/spksrc.install-resources.mk
.PHONY: dotnet_runtime_custom_install
dotnet_runtime_custom_install:
mkdir -p "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"
tar -cf - -C $(EXTRACT_PATH) . | tar -xf - -C "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"
$(TAR_CMD) -cf - -C $(EXTRACT_PATH) . | $(TAR_CMD) -xf - -C "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"

3 changes: 2 additions & 1 deletion cross/dotnet9-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ include ../../mk/spksrc.install-resources.mk
.PHONY: dotnet_runtime_custom_install
dotnet_runtime_custom_install:
mkdir -p "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"
tar -cf - -C $(EXTRACT_PATH) . | tar -xf - -C "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"
$(TAR_CMD) -cf - -C $(EXTRACT_PATH) . | $(TAR_CMD) -xf - -C "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/"

4 changes: 2 additions & 2 deletions mk/spksrc.spk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ $(DSM_LICENSE_FILE): $(LICENSE_FILE)
$(WORK_DIR)/package.tgz: icon service
$(create_target_dir)
@[ -f $@ ] && rm $@ || true
(cd $(STAGING_DIR) && find . -mindepth 1 -maxdepth 1 -not -empty | tar cpzf $@ --owner=root --group=root --files-from=/dev/stdin)
(cd $(STAGING_DIR) && find . -mindepth 1 -maxdepth 1 -not -empty | $(TAR_CMD) cpzf $@ --owner=root --group=root --files-from=/dev/stdin)

DSM_SCRIPTS = $(addprefix $(DSM_SCRIPTS_DIR)/,$(DSM_SCRIPT_FILES))

Expand Down Expand Up @@ -486,7 +486,7 @@ endif

$(SPK_FILE_NAME): $(WORK_DIR)/package.tgz $(WORK_DIR)/INFO info-checksum icons service $(DSM_SCRIPTS) wizards $(DSM_LICENSE) conf
$(create_target_dir)
(cd $(WORK_DIR) && tar cpf $@ --group=root --owner=root $(SPK_CONTENT))
(cd $(WORK_DIR) && $(TAR_CMD) cpf $@ --group=root --owner=root $(SPK_CONTENT))

package: $(SPK_FILE_NAME)

Expand Down

0 comments on commit cb64f40

Please sign in to comment.