]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjproject_bundled: Improve reliability of pjproject download 58/4458/2
authorGeorge Joseph <gjoseph@digium.com>
Wed, 16 Nov 2016 18:05:43 +0000 (11:05 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 18 Nov 2016 13:01:30 +0000 (08:01 -0500)
commit6d34d0ab3674c36390382b76658c9b2957ffa151
tree535dc1be88cc0c188565f17ea6cf044892b62ee7
parent7a665c5c6e59002cc42b8ea5bb0fec383afcc8ea
pjproject_bundled:  Improve reliability of pjproject download

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
configure
configure.ac
makeopts.in
third-party/Makefile.rules
third-party/pjproject/Makefile
third-party/pjproject/configure.m4