Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Apr 2017 17:04:46 -0400
From:      qjail1 <qjail1@a1poweruser.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "ports@FreeBSD.org" <ports@freebsd.org>
Subject:   Re: os of system fetching port source
Message-ID:  <58E2B8EE.1000104@a1poweruser.com>
In-Reply-To: <CAPyFy2BDVq6ksNThdOhmRfq_bO6iRA43Vft=XiPQidKctkPwcw@mail.gmail.com>
References:  <58A9B490.2070909@a1poweruser.com> <CAPyFy2BDVq6ksNThdOhmRfq_bO6iRA43Vft=XiPQidKctkPwcw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ed Maste wrote:

>> On 19 February 2017 at 10:06, qjail1 <qjail1@a1poweruser.com> wrote:
>> My port has it's source hosted on sourceforge.net. That site has function 
>> that shows the count of times the port source file has been downloaded
>> along with the country and operating system type of the computer
>> requesting the download. 99.9% of the time the operating system is
>> "unknown". I can only assume those are downloads originating from
>> FreeBSD systems using the "make install" method. I believe the port
>> system uses a fetch/ftp call to download the ports source file from
>> where ever it's hosted at.
>>
>> Is there some fetch/ftp option to tag the ports system download request with
>> the operating system the request is coming from?
> 
> Libfetch uses the HTTP_USER_AGENT environment variable if set, and it
> can also be set via a fetch command-line argument. If not set it
> defaults to just getprogname() with the libfetch version appended.
> 
> I'm not sure what would be the best approach with respect to having
> this set by default in the ports infrastructure though.
> 

Is "Libfetch" whats used in the current port system to download the port
source?

If you could point me to where in the ports system I would find the
command that downloads the port source, then I could make the change on
my system and test if the anticipated results do in fact show up on
sourceforge.net as the os downloading the requested files.

Once I know this solution does work, then an PR should be enough to get
it implemented for 11.1.

Thanks for your help






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58E2B8EE.1000104>