Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Apr 2017 14:34:49 -0700
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        qjail1 <qjail1@a1poweruser.com>
Cc:        "ports@FreeBSD.org" <ports@freebsd.org>
Subject:   Re: os of system fetching port source
Message-ID:  <e83186acbb812051aa35f7eeedc99feb@ultimatedns.net>
In-Reply-To: <58E2B8EE.1000104@a1poweruser.com>
References:  <58A9B490.2070909@a1poweruser.com> <CAPyFy2BDVq6ksNThdOhmRfq_bO6iRA43Vft=XiPQidKctkPwcw@mail.gmail.com>, <58E2B8EE.1000104@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 03 Apr 2017 17:04:46 -0400 qjail1 <qjail1@a1poweruser.com> wrote

> 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
Apologies, if this has already been answered (I'm catching up on my
email).
You can find everything you need on fetch(1), here:
https://www.freebsd.org/cgi/man.cgi?query=fetch

--Chris

> 
> 
> 
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"





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