View previous topic :: View next topic |
Author |
Message |
nlindblad Guru


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 |
|
 |
-Rick- Tux's lil' helper


Joined: 29 Aug 2004 Posts: 77 Location: Holland
|
|
Back to top |
|
 |
nlindblad Guru


Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Sun Oct 30, 2005 10:16 am Post subject: |
|
|
Curl rocks! |
|
Back to top |
|
 |
chunderbunny Veteran


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 |
|
 |
nlindblad Guru


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 |
|
 |
fank l33t

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 |
|
 |
nlindblad Guru


Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
|
Back to top |
|
 |
Shifu n00b

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 |
|
 |
|