From owner-freebsd-questions@FreeBSD.ORG Sat Oct 26 12:55:50 2013 Return-Path: Delivered-To: freebsd-questions@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 C40B5305 for ; Sat, 26 Oct 2013 12:55:50 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6156F2C12 for ; Sat, 26 Oct 2013 12:55:50 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id h11so2207999wiv.10 for ; Sat, 26 Oct 2013 05:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=yN2FKbCQoS2djzWvqi+xnrKR6V/XLuIECI/UYiwa0hc=; b=YSFX2knTou6+6duQBpxVoYGwZuuW8iRPsqNVY7Q8+65zyd2GeEPE2J3ZrqlxSIk8yr whJQ2boYCuB5ErTW2JPL+yc/seiT8X1uu2aMby/t5wjeLGPs24XdFIuFTiXkyaG43osI wnlkjrCnI9txJrR+jz2pX9Vj5cTnDC026cJYQNFqu2xMY2NzX4OAMNrC531uvDITn8+O AbC3mWk0N1Tlf0Ki2ku7ID9x86CxHw6QDhCCx33zS4KD7/SllHQ2JEudWNUWuEN/LS2Q LEfP6nK8eHtsSmfaep5wlfz9QcW5Rky/BK37xM/fOmUzSpLSssQV1bIcz9T40Q+nQjca 55cQ== X-Received: by 10.180.208.45 with SMTP id mb13mr2324009wic.27.1382792148760; Sat, 26 Oct 2013 05:55:48 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id iz19sm15995745wic.9.2013.10.26.05.55.48 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 26 Oct 2013 05:55:48 -0700 (PDT) Date: Sat, 26 Oct 2013 13:55:47 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: (de)centralized ports management with portsnap Message-ID: <20131026135547.4f8e7eb4@gumby.homeunix.com> In-Reply-To: <526AC748.6010805@networktest.com> References: <526AC748.6010805@networktest.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 12:55:50 -0000 On Fri, 25 Oct 2013 12:32:24 -0700 David Newman wrote: > I'm setting up a group of FreeBSD servers that use 'portsnap fetch' > and then 'portsnap update' to refresh their ports trees. > > Can I set up a local master to avoid pulling updates multiple times? > If portsnap isn't the right tool for this, what is? > > Apologies if this has been asked before; this seems like a standard > problem, but I didn't see an answer in a web search, the portsnap > manpage, or in the Michael W. Lucas FreeBSD book. The easiest way to do it is just to point them all to the same local http cache. If you set http_proxy and/or HTTP_PROXY in the the environment portsnap will use them to seed it's random choice of mirror so that all your servers will use consistent urls. On Sat, 26 Oct 2013 08:27:51 +0100 Steve O'Hara-Smith wrote: > Why not just NFS mount the ports directory from a designated > ports box ? Note that it's possible to use the same /var/db/portsnap/ to manage multiple trees.