View previous topic :: View next topic |
Author |
Message |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Sun Oct 30, 2005 10:06 am Post subject: TIP: Using Curl to fetch distfiles |
|
|
Add the following to your make.conf:
Code: |
FETCHCOMMAND="/usr/bin/curl \${URI} > \${DISTDIR}/\${FILE}"
RESUMECOMMAND="/usr/bin/curl -C - \${URI} > \${DISTDIR}/\${FILE}"
|
Last edited by nlindblad on Sun Oct 30, 2005 10:16 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
-Rick- Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/21150067484489cdba6d4f2.png)
Joined: 29 Aug 2004 Posts: 77 Location: Holland
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Sun Oct 30, 2005 10:16 am Post subject: |
|
|
Curl rocks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chunderbunny Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1181016848413c617038f3d.jpg)
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 30, 2005 11:23 am Post subject: |
|
|
Soo.. how is this better than wget? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Sun Oct 30, 2005 11:34 am Post subject: |
|
|
Quote: |
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported, fast, thoroughly documented and is already used by many known, big and successful companies and numerous applications.
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fank l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 16 Oct 2004 Posts: 794 Location: Minsk, Belarus
|
Posted: Sun Oct 30, 2005 11:36 am Post subject: |
|
|
for example, curl supports http CONNECT through ssl proxy, wget not
it also have --auto option for referer field - very useful anti-antileach thing |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Shifu n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Nov 2022 Posts: 1
|
Posted: Wed Nov 16, 2022 1:27 pm Post subject: Re: TIP: Using Curl to fetch distfiles |
|
|
nlindblad wrote: | Add the following to your make.conf:
Code: |
FETCHCOMMAND="/usr/bin/curl \${URI} > \${DISTDIR}/\${FILE}"
RESUMECOMMAND="/usr/bin/curl -C - \${URI} > \${DISTDIR}/\${FILE}"
|
|
It's doesn`t work anymore as I expected, but curl have a key -o to write to a file, not into stdout (this action by default)
Code: |
FETCHCOMMAND="/usr/bin/curl \${URI} -o \${DISTDIR}/\${FILE}"
RESUMECOMMAND="/usr/bin/curl -C - \${URI} -o \${DISTDIR}/\${FILE}"
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|