os of system fetching port source

qjail1 qjail1 at a1poweruser.com
Mon Apr 3 22:11:03 UTC 2017


Ed Maste wrote:

>> On 19 February 2017 at 10:06, qjail1 <qjail1 at 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





More information about the freebsd-ports mailing list