Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TIP: Using Curl to fetch distfiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Sun Oct 30, 2005 10:06 am    Post subject: TIP: Using Curl to fetch distfiles Reply with quote

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
View user's profile Send private message
-Rick-
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 77
Location: Holland

PostPosted: Sun Oct 30, 2005 10:08 am    Post subject: Reply with quote

And....why would anyone want that?
_________________
Cube bots
Nixstaller - Easy creatable installers for *nix
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Sun Oct 30, 2005 10:16 am    Post subject: Reply with quote

Curl rocks!
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Sun Oct 30, 2005 11:23 am    Post subject: Reply with quote

Soo.. how is this better than wget?
Back to top
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Sun Oct 30, 2005 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Sun Oct 30, 2005 11:36 am    Post subject: Reply with quote

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
View user's profile Send private message
nlindblad
Guru
Guru


Joined: 30 Jun 2005
Posts: 476
Location: Lund, Sweden

PostPosted: Sun Oct 30, 2005 11:57 am    Post subject: Reply with quote

http://curl.haxx.se/docs/comparison-table.html
Back to top
View user's profile Send private message
Shifu
n00b
n00b


Joined: 16 Nov 2022
Posts: 1

PostPosted: Wed Nov 16, 2022 1:27 pm    Post subject: Re: TIP: Using Curl to fetch distfiles Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum