mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-02 03:56:42 +00:00
9d778a658d
This patch splits the download of signatures from the download of the archive to improve robustness. This way, signature files will be downloaded even if the corresponding archive is already in place. Issue #748
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
COREUTILS = coreutils-8.9
|
|
COREUTILS_TGZ = $(COREUTILS).tar.gz
|
|
COREUTILS_SIG = $(COREUTILS_TGZ).sig
|
|
COREUTILS_BASE_URL = http://ftp.gnu.org/gnu/coreutils
|
|
COREUTILS_URL = $(COREUTILS_BASE_URL)/$(COREUTILS_TGZ)
|
|
COREUTILS_URL_SIG = $(COREUTILS_BASE_URL)/$(COREUTILS_SIG)
|
|
COREUTILS_KEY = GNU
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(COREUTILS)
|
|
|
|
prepare:: $(CONTRIB_DIR)/$(COREUTILS)
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(COREUTILS_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(COREUTILS_URL) && touch $@
|
|
|
|
$(DOWNLOAD_DIR)/$(COREUTILS_SIG):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(COREUTILS_URL_SIG) && touch $@
|
|
|
|
$(DOWNLOAD_DIR)/$(COREUTILS_TGZ).verified: $(DOWNLOAD_DIR)/$(COREUTILS_TGZ) \
|
|
$(DOWNLOAD_DIR)/$(COREUTILS_SIG)
|
|
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(COREUTILS_TGZ) $(DOWNLOAD_DIR)/$(COREUTILS_SIG) $(COREUTILS_KEY)
|
|
$(VERBOSE)touch $@
|
|
|
|
$(CONTRIB_DIR)/$(COREUTILS): $(DOWNLOAD_DIR)/$(COREUTILS_TGZ)
|
|
$(VERBOSE)tar xfz $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
|
|