os of system fetching port source
Chris H
bsd-lists at bsdforge.com
Wed Apr 5 21:33:40 UTC 2017
On Mon, 03 Apr 2017 17:04:46 -0400 qjail1 <qjail1 at a1poweruser.com> wrote
> 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
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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
More information about the freebsd-ports
mailing list