mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
The download process now has a timeout which will cause wget to retry if it stops retrieving data for 5 seconds and fetch and curl to timeout if the whole retrieval take smore than 30 seconds. If the tarball retrieval works, the MD5SUM file is retrieved from the downloads site and the md5 checksum is verified. If either the tarball retrieval or MD5SUM retrieval fails, or the checksums don't match, the entire process is retried once. If it fails again, any incomplete tarball is deleted. .DELETE_ON_ERROR: was also added to the Makefile. Not only does this delete the tarball on failure, it till also delete corrupted library files from the pjproject source directory should they fail to build correctly. Tested all the way back to FreeBSD 9, CentOS 6, Debian 6 and Ubuntu 14. Change-Id: Iea7d33b96a31622ab1b6e54baebaf271959514e1
34 lines
533 B
Makefile
34 lines
533 B
Makefile
|
|
ifeq ($(NOISY_BUILD),)
|
|
SUBMAKE?=$(MAKE) --quiet --no-print-directory
|
|
ECHO_PREFIX?=@
|
|
CMD_PREFIX?=@
|
|
QUIET_CONFIGURE=-q
|
|
REALLY_QUIET=>/dev/null 2>&1
|
|
else
|
|
SUBMAKE?=$(MAKE)
|
|
ECHO_PREFIX?=@\#
|
|
CMD_PREFIX?=
|
|
QUIET_CONFIGURE=
|
|
REALLY_QUIET=
|
|
endif
|
|
|
|
export SUBMAKE
|
|
export ECHO_PREFIX
|
|
export CMD_PREFIX
|
|
export QUIET_CONFIGURE
|
|
export REALLY_QUIET
|
|
export ASTTOPDIR
|
|
export ASTSBINDIR
|
|
export DESTDIR
|
|
export ASTDATADIR
|
|
export TAR
|
|
export PATCH
|
|
export SED
|
|
export NM
|
|
export MD5
|
|
export CAT
|
|
export DOWNLOAD
|
|
export DOWNLOAD_TO_STDOUT
|
|
export DOWNLOAD_TIMEOUT
|