How can I set aria2 for download ports

Hello

I want to use Aria 2 instead of fetch. I use these two lines in /etc/make.conf but it gives me some errors:
Code:
FETCH_BINARY=/usr/local/bin/aria2c
FETCH_ARGS="-c -s16 -x16 -k1M"

Should I use some more arguments?
 
MHA152 said:
What does the third line do?

According to /usr/ports/Mk/bsd.port.mk
Code:
# DISABLE_SIZE  - Do not check the size of a distfile even if the SIZE field
#                 has been specified in distinfo.  This is useful
#                 when using an alternate FETCH_CMD.

In other words, defining the DISABLE_SIZE macro in the /etc/make.conf will disable the -S argument to FETCH_CMD. See the fetch(1) manpage for details.
 
I try to upgrade my installed ports but there is a problem with do-fetch, I think I need some more arguments?
 
Please, be more explicit. Can you show the error declared or some related output?
 
OK the error is this:
Code:
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/xorg/lib/libX11-1.6.1.tar.bz2
Exception: [AbstractOptionHandler.cc:69] errorCode=28 We encountered a problem while processing the option '--continue'.
  -> [OptionHandlerImpl.cc:96] errorCode=1 continue must be either 'true' or 'false'.
Usage:
 -c, --continue[=true|false]  Continue downloading a partially downloaded
                              file. Use this option to resume a download
                              started by a web browser or another program
                              which downloads files sequentially from the
                              beginning. Currently this option is only
                              applicable to http(s)/ftp downloads.

                              Possible Values: true, false
                              Default: false
                              Tags: #basic, #http, #ftp
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles//xorg/lib and try again.
*** [do-fetch] Error code 1

Stop in /usr/ports/x11/libX11.

===>>> make failed for x11/libX11
===>>> Aborting update

===>>> Update for x11/libX11 failed
===>>> Aborting update

===>>> Killing background jobs
Terminated
 
Back
Top