From owner-freebsd-questions Thu Jun 27 14:42:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by hub.freebsd.org (Postfix) with SMTP id F417737B401 for ; Thu, 27 Jun 2002 14:42:13 -0700 (PDT) Received: (qmail 65970 invoked from network); 27 Jun 2002 21:42:10 -0000 Received: from shell-fxp1.rucus.ru.ac.za (HELO shell.rucus.ru.ac.za) (10.0.0.1) by server.rucus.ru.ac.za with SMTP; 27 Jun 2002 21:42:10 -0000 Received: (qmail 81891 invoked by uid 10032); 27 Jun 2002 21:42:10 -0000 Date: Thu, 27 Jun 2002 23:42:10 +0200 From: David =?iso-8859-1?Q?Sieb=F6rger?= To: Philip Hallstrom Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FTP/HTTP caching proxy for use with fetch and ports? Message-ID: <20020627214210.GA79612@rucus.ru.ac.za> References: <20020627180641.S1497-100000@exile.ucc.ie> <20020627103338.C21360-100000@cypress.adhesivemedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020627103338.C21360-100000@cypress.adhesivemedia.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu 2002-06-27 (10:37), Philip Hallstrom wrote: > I've got a small LAN (4 machines) and I tend to install a lot of > the same ports on all the machines (usually using portupgrade). What I've > been doing up till now is installing on one machine and then ftp'ing the > distfiles over to the other machines and installing on them. I know I > could build packages and do it that way, but for whatever reason I don't. > > I started looking into caching proxies that would help automate this > process somewhat, but I haven't had much luck. I tried jftpgw (FTP only) [snip] Here's an alternative idea. Use one machine to download distfiles and publish its /usr/ports/distfiles by either HTTP or FTP (say, http://master/distfiles/) then set: MASTER_SITE_OVERRIDE=http://master/distfiles/${DIST_SUBDIR} in /etc/make.conf on the others. They would try to fetch any distfiles they need from the local server before trying to download from the MASTER_SITES. The disadvantage is that distfiles downloaded by machines other than the master won't be shared automatically. Nor will files automatically expire, but /usr/ports/Tools/scripts/distclean.sh could be cron'ed to do that. On the plus side, it may be a little easier to set up. -- David Siebörger drs@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message