<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts/download.pl, branch v23.05.4</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.4</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.4'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2024-07-08T19:13:26Z</updated>
<entry>
<title>scripts: Add GNU ftp mirror redirector for GNU and Savannah</title>
<updated>2024-07-08T19:13:26Z</updated>
<author>
<name>Sahil Dhiman</name>
</author>
<published>2024-05-25T09:57:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4df592f7a34166a57dab2ab7570ce3fe2ebd3118'/>
<id>urn:sha1:4df592f7a34166a57dab2ab7570ce3fe2ebd3118</id>
<content type='text'>
Add GNU's redirector which automatically redirect user to nearby online
mirror.

Signed-off-by: Sahil Dhiman &lt;sahil@hopbox.in&gt;
Link: https://github.com/openwrt/openwrt/pull/15557
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
(cherry picked from commit 6510eb3b5d612ea7a70c4a8d9b83639e3b46e221)
Link: https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts: add Apache fastly mirror</title>
<updated>2023-01-07T00:32:58Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2023-01-07T00:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=9ac377d0e012e42d9cd69ccc6471fae93c738c1d'/>
<id>urn:sha1:9ac377d0e012e42d9cd69ccc6471fae93c738c1d</id>
<content type='text'>
Add the Apache fastly mirror as preferred download source.
This service is using a dual-stacked CDN.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: pass aria2 config in ENV only</title>
<updated>2022-10-20T18:38:31Z</updated>
<author>
<name>Zhang Hua</name>
</author>
<published>2022-10-02T11:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a53f29b583dd974b8b65737bab7fbca7753c738c'/>
<id>urn:sha1:a53f29b583dd974b8b65737bab7fbca7753c738c</id>
<content type='text'>
The aria2c command tries to load config from
${XDG_CONFIG_HOME:-${HOME}/.config}/aria2/aria2.conf by default,
which may result unexpected behavior.

As a replacement, people can use environment variable ARIA2C_OPTIONS
to custom arguments passed to aria2c like curl and wget below.
Including --conf-path=/path/to/config.conf in ARIA2C_OPTIONS can
also set a custom config file path easily if needed.

Signed-off-by: Zhang Hua &lt;zhanghuadedn@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: make the download tool configurable</title>
<updated>2022-10-19T22:35:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-30T23:36:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f17608ddca299dc617595247f2ad30a73390dbd7'/>
<id>urn:sha1:f17608ddca299dc617595247f2ad30a73390dbd7</id>
<content type='text'>
Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: add tsinghua and ustc mirrors</title>
<updated>2022-09-30T12:57:19Z</updated>
<author>
<name>Bradford Zhang</name>
</author>
<published>2022-09-30T05:28:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e93766302548861913b7fd4417bca2cb68af48b5'/>
<id>urn:sha1:e93766302548861913b7fd4417bca2cb68af48b5</id>
<content type='text'>
Add https://mirrors.tuna.tsinghua.edu.cn/ and https://mirrors.ustc.edu.cn/ mirrors into download.pl to speed up download in China.

Signed-off-by: Bradford Zhang &lt;zyc@zyc.name&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: generilize and simplify download tool check</title>
<updated>2022-09-28T14:55:10Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-28T12:22:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=261925a8699c9e515131a54c6ee1027783fb8002'/>
<id>urn:sha1:261925a8699c9e515131a54c6ee1027783fb8002</id>
<content type='text'>
Generilize download tool check and skip other check if a download tool
has been found.
While at it also reintroduce c836ca84e8f641e10a8349a8f9b7432b33d6cec1
that was previously dropped with aria2c support.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fix support for aria2c download tool on macos</title>
<updated>2022-09-26T18:50:10Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-26T18:48:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f1b3958d02ba8b8a8bf2182599653ddd553906a8'/>
<id>urn:sha1:f1b3958d02ba8b8a8bf2182599653ddd553906a8</id>
<content type='text'>
Currently we use /dev/shm to place aria2c tmp file. This is not present
on macos. Use the openwrt tmp directory instead of the linux-only
/dev/shm to save compatibility with more os.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fix mirrors regression for curl and wget</title>
<updated>2022-09-26T18:50:09Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-25T19:43:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5df60f5c24e40fc373178427a6b654826edbe885'/>
<id>urn:sha1:5df60f5c24e40fc373178427a6b654826edbe885</id>
<content type='text'>
With the introduction of aria2c support, curl and wget no longer try to
download the file from mirrors. Fix this regression by emptying the
remaining mirrors list only when aria2c is used.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: fix whitespace in mirror urls and drop for</title>
<updated>2022-09-25T13:54:12Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-25T13:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=295e0ed7a9fee59c1bb6dd80179109c634578425'/>
<id>urn:sha1:295e0ed7a9fee59c1bb6dd80179109c634578425</id>
<content type='text'>
Fix whitespace in mirror urls and replace for loop with join+map logic.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>download.pl: add aria2c support</title>
<updated>2022-09-25T12:56:45Z</updated>
<author>
<name>Bradford Zhang</name>
</author>
<published>2022-09-13T23:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d391236269314a759acb7dfb7ec01ccaa0e0b32c'/>
<id>urn:sha1:d391236269314a759acb7dfb7ec01ccaa0e0b32c</id>
<content type='text'>
Use aria2c download tool by default on package download if available in
the system.
aria2c permits to use multiple mirrors and may improve download speed on
special context where servers are hard to reach.

Co-authored-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
Signed-off-by: Bradford Zhang &lt;zyc@zyc.name&gt;
[ fix wrong var in the script and improve commit description ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
</feed>
