aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/download.pl
Commit message (Collapse)AuthorAgeFilesLines
* download.pl: fix detecting download errors with curlFelix Fietkau2017-01-311-1/+1
| | | | | | Avoid treating error pages as successfully downloaded content Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-6/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* download.pl: use curl in preference to wgetBrian J. Murrell2017-01-031-4/+22
| | | | | | | | | | | | | | | Because wget doesn't know how to do Negotiate authentication with a proxy and curl does, use curl if it's present. The user is expected to have a ~/.curlrc that sets the options necessary for any proxy authentication. A ~/.curlrc is completely optional however and curl will work in exactly the same manner as wget without one. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca> [Jo-Philipp Wich: Rework code to detect curl usability by checking --version, Use vararg style open() to bypass the shell when downloading, Use Text::ParseWords to decompose env vars into arguments] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* download.pl: check for existing file before the first download attemptFelix Fietkau2016-12-161-2/+1
| | | | | | | | | | | | In the build system, flock will prevent multiple concurrent downloads for the same file. However, if one download request for the same file is waiting for another one to finish, it will result in downloading the same file twice consecutively. Prevent this issue by exiting immediately if the file has already been downloaded Signed-off-by: Felix Fietkau <nbd@nbd.name>
* download.pl: Rework URLsDaniel Engberg2016-05-281-15/+32
| | | | | | | | Provide HTTPS URL when possible, try to keep 8 mirrors per entry and spread over several locations of the world. Since most active contributors are in US/CA and/or EU prioritize mirrors that are within those regions if possible. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* scripts/download.pl: Use CDN for kernel downloadsPetr Štetiar2016-05-231-2/+2
| | | | | | More info at https://www.kernel.org/introducing-fastly-cdn.html Signed-off-by: Petr Štetiar <ynezz@true.cz>
* download.pl: use http://sources.lede-project.org as download mirrorFelix Fietkau2016-05-131-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* download: add @GITHUB download facilityÁlvaro Fernández Rojas2016-04-031-0/+1
| | | | | | Define a new alias (@GITHUB) for downloading raw files from github repos. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* download: add @GITHUB download facilityJohn Crispin2016-04-091-0/+5
| | | | | | | | Define a new alias (@GITHUB) for downloading raw github repository files Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 49138
* scripts/download.pl: fix sha256 hash command (#21931)Felix Fietkau2016-02-271-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48809
* build: add @APACHE download facilityFelix Fietkau2016-01-171-0/+6
| | | | | | | | | | The Apache Software Foundation offers diverse download mirros. For packaging Apache software a new alias @APACHE is defined. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> SVN-Revision: 48270
* download.pl: fix openssl sha256 digest outputFelix Fietkau2016-01-161-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48259
* scripts/download.pl: add SHA-256 supportFelix Fietkau2016-01-161-20/+38
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48253
* scripts/download.pl: cleanup GNOME source location definitionsFelix Fietkau2015-12-101-7/+2
| | | | | | | | | | | Cleanup the @GNOME source download location definitions: * remove dead and stale mirrors * adjust to changes at directory structure * add one new working mirror Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 47825
* build: add support for choosing a different url filename part than the ↵Felix Fietkau2015-11-221-2/+6
| | | | | | | | output file Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47591
* script: downlaod: change mirror for kernel.orgHauke Mehrtens2015-09-111-2/+2
| | | | | | | | | kernel.org now suggests a different mirror address. this one also support IPv6 connections and was faster for me. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46875
* scripts/download.pl: add support for adding mirrors through an environment ↵Felix Fietkau2014-12-121-0/+3
| | | | | | | | variable Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43654
* include/download.mk: Add download mirrors for tools from GNU Savannah (bug ↵John Crispin2014-10-081-0/+5
| | | | | | | | | | | #15184) I defined a new download method @SAVANNAH in include/download.mk and scripts/download.pl, and converted quilt and qemu to use that method. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 42840
* scripts/download.pl: prefer the GNU mirror redirect over the primary site ↵Felix Fietkau2013-12-131-1/+1
| | | | | | | | (#14603) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39045
* remove broken mirrors for linux kernelMirko Vogt2013-07-141-4/+0
| | | | | | | | | ftp.de.kernel.org / ftp.fr.kernel.org don't resolv anymore, ftp.all.kernel.org is DNS round robin anyway Signed-off-by: Mirko Vogt <mirko@openwrt.org> SVN-Revision: 37323
* scripts/download.pl: use HTTP instead of FTP for the default GNU siteFelix Fietkau2013-07-091-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37213
* scripts: update GNU mirrorsLuka Perkov2013-02-281-4/+1
| | | | SVN-Revision: 35838
* download.pl: - cleanup cache handling code - use alternative m// and s/// ↵Jo-Philipp Wich2012-05-111-38/+41
| | | | | | delimiters to get rid of tedious slash escaping - use multi-argument form of system() where possible to avoid quoting & escaping issues - avoid a temporary variable SVN-Revision: 31677
* allow arbitary folder layout when using localmirrorsJohn Crispin2012-04-101-1/+24
| | | | | | | | | Make the download script follow symlinks and search subfolders when looking for a file in a local download mirror. Signed-off-by: Tathagata Das <tathagata@alumnux.com> SVN-Revision: 31240
* Revert "scripts/download.pl: fix sourceforge url"Felix Fietkau2012-02-261-1/+1
| | | | | | | To use the new url, the project name would need to be appended multiple times, let's hope the old redirect will continue to work in the future SVN-Revision: 30730
* scripts/download.pl: fix sourceforge urlFelix Fietkau2012-02-251-1/+1
| | | | SVN-Revision: 30726
* download.pl: remove ftp.geo.kernel.org mirror, it does not resolveJo-Philipp Wich2012-01-291-2/+0
| | | | SVN-Revision: 29947
* ignore empty lines in scripts/localmirrorsJohn Crispin2011-07-031-1/+1
| | | | SVN-Revision: 27416
* download.pl: cope with potential two-digit linux versionsJo-Philipp Wich2011-07-031-2/+2
| | | | SVN-Revision: 27376
* download.pl: adjust kernel download urls for longterm and testing releasesJo-Philipp Wich2011-02-191-8/+16
| | | | SVN-Revision: 25589
* download.pl: pass --no-check-certificate to wgetJo-Philipp Wich2010-12-181-1/+1
| | | | SVN-Revision: 24686
* add geodns addresses for the kernel, closes #6574Travis Kemen2010-02-131-0/+2
| | | | SVN-Revision: 19621
* add multiple download mirrorsRalph Hempel2009-02-201-4/+11
| | | | SVN-Revision: 14573
* use #!/usr/bin/env perl instead of #!/usr/bin/perl in openwrt scripts (fixes ↵Felix Fietkau2008-09-231-1/+1
| | | | | | #2998) SVN-Revision: 12674
* Add @GNOME download source.Lars-Peter Clausen2008-09-011-1/+15
| | | | SVN-Revision: 12469
* use the european kernel.org mirror tooMatteo Croce2008-06-121-4/+2
| | | | SVN-Revision: 11448
* adding the possibility of local file cache specify file://path_to_file_cache ↵Ralph Hempel2008-03-181-25/+33
| | | | | | within localmirrors file to add new local file cache SVN-Revision: 10617
* Increased to five download attempts in download.plAndy Boyett2008-02-181-1/+1
| | | | SVN-Revision: 10486
* show md5sums on mismatch in download.plFelix Fietkau2007-10-201-1/+1
| | | | SVN-Revision: 9367
* Refactor downloading code into download.mk Support multiple file downloads ↵Felix Fietkau2007-09-291-3/+2
| | | | | | Support svn downloads SVN-Revision: 9057
* add a '@KERNEL' download facility, tweak scriptNicolas Thill2007-08-261-9/+17
| | | | SVN-Revision: 8495
* add a menuconfig option for specifying a local download mirrorFelix Fietkau2007-04-061-6/+17
| | | | SVN-Revision: 6877
* fix download.pl (#1257)Felix Fietkau2007-01-251-1/+1
| | | | SVN-Revision: 6200
* add functionality to provide local mirrors for development purposes. * any ↵Tim Yardley2007-01-241-0/+16
| | | | | | URLs in scripts/localmirrors will be prepended to the mirror list * this facilitates local builds and recompilations * will also be useful for the buildbot and auto-build of images SVN-Revision: 6192
* update sourceforge downloadingFelix Fietkau2006-12-081-12/+3
| | | | SVN-Revision: 5721
* strip trailing / from download urlsFelix Fietkau2006-12-061-1/+2
| | | | SVN-Revision: 5701
* correct trailing slash (cosmetic rather than functional)Tim Yardley2006-11-261-2/+2
| | | | SVN-Revision: 5647
* sync whiterussian download.pl with trunk, allow the user to specify ↵Felix Fietkau2006-10-161-1/+3
| | | | | | additional wget options by using the WGET_OPTIONS env var SVN-Revision: 5144
* fix download.pl for weird 'which' implementationsFelix Fietkau2006-10-141-2/+11
| | | | SVN-Revision: 5068
* finally move buildroot-ng to trunkFelix Fietkau2016-03-201-0/+112