From owner-freebsd-ports@FreeBSD.ORG Tue Feb 26 17:54:37 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 73AD4504 for ; Tue, 26 Feb 2013 17:54:37 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1.freebsd.org (Postfix) with ESMTP id EAE631444 for ; Tue, 26 Feb 2013 17:54:36 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id go11so3333078lbb.36 for ; Tue, 26 Feb 2013 09:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=fyhHg3l16M5SCE8dFdMVykKZcOhYaDZMe2AdMP44KWk=; b=CP2xj6oYWv7ypthXOhGJiYpqHU9XeJ6FbztACTavrxfVCCs41Q5Nr+Qlm4tyZcklr1 mc+iubrwpyTgJ91yxniEA5yb35cPlfTEHuYm1FUnIood4TjtQrrn5NMfMxovaAmB8g0s Ok2vztlWbJSbm0g9pVQgUbM+4Vr7dAKWYXdMSDngXABaRVEQjmug2iyRGomnpBKUEA6c q0sZ3pwuHTonzKWT0RmGurteODN3OQF4YhPnBiXo/58zmHPycysMFTO0FXu3ic+2Un2O 8JmAr227ooxTXNWRnRLQrRZR9m/gu1gWXLm5tGVLjGR9nTNY9GQriC2DshVyRse0DVcq tM1g== MIME-Version: 1.0 X-Received: by 10.112.84.164 with SMTP id a4mr931545lbz.10.1361901275617; Tue, 26 Feb 2013 09:54:35 -0800 (PST) Received: by 10.112.80.133 with HTTP; Tue, 26 Feb 2013 09:54:35 -0800 (PST) In-Reply-To: <512C249B.4090401@ish.com.au> References: <512C249B.4090401@ish.com.au> Date: Tue, 26 Feb 2013 18:54:35 +0100 Message-ID: Subject: Re: Share /var/cache/pkg/ between machines From: Daniel Nebdal To: Aristedes Maniatis Content-Type: text/plain; charset=ISO-8859-1 Cc: Ports FreeBSD 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: Tue, 26 Feb 2013 17:54:37 -0000 On Tue, Feb 26, 2013 at 3:57 AM, Aristedes Maniatis wrote: > I'd like to share packages between a couple of nearly identical machines in > a server farm. I think I have the following options: > > 1. Set up apache httpd on one primary machine to serve the packages to the > others by pointing website root to to /var/cache/pkg/ and setting > PACKAGESITE in the other servers. This looks like it might work except that > repo.txz is missing from /var/cache/pkg/ > > 2. rsync /var/cache/pkg/ from the primary machine to the others. Set > PACKAGESITE on all machines to point to some central repository where all > these packages originally were built (we run poudriere in another location). > > 3. Something else > > > How do other people cache/proxy built packages under pkgng? I don't want to > have to pull the same 80Mb JDK package onto 10 machines across the internet. > > > Thanks > > Ari > > One option is to use poudriere, and set WITH_PKGNG=yes in /usr/local/etc/poudriere.d/make.conf (or the appropriate one for one specific jail, if you have multiple). That should make it build pkgng-style packages, including a repo.txz - file. Then host the corresponding package directory with some http server, and set it as a pkgng packagesite on the others. I was playing with this a few weeks ago, and it took a few tries (including more than one "why doesn't it create a repo.txz") before I got it. -- Daniel Nebdal