From owner-freebsd-ports@FreeBSD.ORG Sun Nov 3 00:20:26 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BC72331B for ; Sun, 3 Nov 2013 00:20:26 +0000 (UTC) (envelope-from royce.williams@gmail.com) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 30C8320F0 for ; Sun, 3 Nov 2013 00:20:26 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id l4so2310826lbv.9 for ; Sat, 02 Nov 2013 17:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Oz0ZqNQB4QYbfp9anzpGc58DgcMggaBzem1n18oJyxo=; b=hmrpLXAFHPJytmAF7+De6SB0HFJd4dZ+m3qX4M5s5Rl6g9ufKelZIXjPkFzelbJQG5 PH7rhSbmSK/IP391uEjlmIFkOPF3vSMgeCc2JsXPltrbNdOtTqW7XcsC5KPWBFFF6HbR HsjSLd9K0xxg6HnrOr+cf5+hcmJTtRZJcCXzwAQjggke6Qs3588jhhXuWjgPfeVQ3kE0 fmfOWbcvds0YuD9Zb1cP12OsHcAya7/U2EOG9+NQ2qWE2NZ5gDGBVnGufv/htPX2/2LW EjWgVqgS5BA7NnHF2tSjHXaBI1o3dvGGUsN+vaaKEO7ZbfTjIxvOwhtKm64YF+GvZzBa 0CkQ== X-Received: by 10.112.150.103 with SMTP id uh7mr155701lbb.34.1383438024076; Sat, 02 Nov 2013 17:20:24 -0700 (PDT) MIME-Version: 1.0 Sender: royce.williams@gmail.com Received: by 10.112.119.169 with HTTP; Sat, 2 Nov 2013 17:20:04 -0700 (PDT) In-Reply-To: <20131103005723.6538f61c@bsd64.grem.de> References: <5271BC11.1010303@FreeBSD.org> <1383206755084-5856905.post@n5.nabble.com> <5272107D.2070301@gibfest.dk> <5272BAB0.3040302@freebsd.org> <5272C46E.2050105@FreeBSD.org> <5272D834.5030004@FreeBSD.org> <20131102223400.GH34312@e-new.0x20.net> <20131102223751.GI34312@e-new.0x20.net> <52758DAD.8010400@heuristicsystems.com.au> <20131103005723.6538f61c@bsd64.grem.de> From: Royce Williams Date: Sat, 2 Nov 2013 16:20:04 -0800 X-Google-Sender-Auth: vY3QOWM16NaEfuGWo956nwHGfpI Message-ID: Subject: Re: Official FreeBSD Binary Packages now available for pkgng To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2013 00:20:26 -0000 On Sat, Nov 2, 2013 at 3:57 PM, Michael Gmelin wrote: > > >>>>> Mirrors you may use instead of the global > > >>>>> pkg.FreeBSD.org > > >>>>> > > >>>>> pkg.eu.FreeBSD.org > > >>>>> pkg.us-east.FreeBSD.org > > >>>>> pkg.us-west.FreeBSD.org > > >>>>> > > >>>>> pkg.freebsd.org is, basically, an alias for the above (and any > > >>>>> other mirrors that come online) and the pkg(1) tool will pick a > > >>>>> "local" mirror based on the DNS response for pkg.freebsd.org. > > >>>>> > > >>>>> However, you are free to manually enter any of the above > > >>>>> mirrors into your pkg.conf. > > >>>>> > > >>>>> And, you are free to browse any of the above mirrors via HTTP > > >>>>> in any web browser. > > >>>>> > > >>>>> It's not nearly as convenient as just browsing pkg.freebsd.org, > > >>>>> but it's still possible to do so. > > >>>> These are still SRV hosts as well. The real hosts can be found > > >>>> with > > >>>> > > >>>> dig SRV _http._tcp.HOST HOST being the host from above lists. > > >>>> > > >>> Please add this to pkg.conf(5) as this it not intuitive and the > > >>> syntax is a bit cumbersome. > > >> > > >> You will never have to know that syntax unless you're one of the > > >> few that are behind a very restrictive firewall/proxy. The pkg > > >> client does all this SRV record magic internally to find out a > > >> suitable mirror. > > >> > > > Right, but I actually happen to fall into that group at work. ;-) > > +1 > > Unless you track the mailing list, and know to use > > > > dig SRV _http._tcp.pkg.freebsd.org > > > > the inevitable questions will be asked - "Why can't I ...." > > > > Particularly as the availability of prebuilt packages is targeted at > > relatively new FreeBSD folk, or those that don't customise their > > ports. Thank-you. > > What about implementing something like "pkg ping" to check if pkg can > connect to the configured repository (or make it an option in pkg > rquery)? Could also be a useful command for scripting and > auto-configuration. pkg-ping(8) could then serve as a place to document > the exact repo look-up algorithm as well and pkg.conf(5) could > reference this under PACKAGESIZE (see pkg-ping(8) for details on the > service look-up algorithm). > And to help both the uninitiated, the proxied, and the troubleshooters over time ... couldn't there be an extremely simple CGI at pkg.freebsd.org that explains the above briefly, and also does an actual dip into the SRV record and displays links to the current set of mirrors? Royce