From owner-freebsd-ports@freebsd.org Wed Apr 5 21:33:40 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D50FFD30DAF for ; Wed, 5 Apr 2017 21:33:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C304174F for ; Wed, 5 Apr 2017 21:33:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: by mailman.ysv.freebsd.org (Postfix) id C25E4D30DAE; Wed, 5 Apr 2017 21:33:40 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2045D30DAD for ; Wed, 5 Apr 2017 21:33:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FDBE74E for ; Wed, 5 Apr 2017 21:33:39 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v35LYgfX071431; Wed, 5 Apr 2017 14:34:49 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: qjail1 Cc: "ports@FreeBSD.org" In-Reply-To: <58E2B8EE.1000104@a1poweruser.com> References: <58A9B490.2070909@a1poweruser.com> , <58E2B8EE.1000104@a1poweruser.com> From: "Chris H" Subject: Re: os of system fetching port source Date: Wed, 05 Apr 2017 14:34:49 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 21:33:40 -0000 On Mon, 03 Apr 2017 17:04:46 -0400 qjail1 wrote > Ed Maste wrote: > > >> On 19 February 2017 at 10:06, qjail1 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"