From owner-freebsd-questions Sun Jul 7 11:56:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B880837B400 for ; Sun, 7 Jul 2002 11:56:11 -0700 (PDT) Received: from clink.schulte.org (clink.schulte.org [209.134.156.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 393FD43E3B for ; Sun, 7 Jul 2002 11:56:11 -0700 (PDT) (envelope-from schulte+freebsd@nospam.schulte.org) Received: from localhost (localhost [127.0.0.1]) by clink.schulte.org (Postfix) with ESMTP id C2BAF243C0; Sun, 7 Jul 2002 13:56:09 -0500 (CDT) Received: from tandist.nospam.schulte.org (void.schulte.org [209.134.156.217]) by clink.schulte.org (Postfix) with ESMTP id 077BA243BE; Sun, 7 Jul 2002 13:56:08 -0500 (CDT) Message-Id: <5.1.1.6.2.20020707134712.03a90e08@pop3s.schulte.org> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sun, 07 Jul 2002 13:56:07 -0500 To: "walid Nehme" , freebsd-questions@FreeBSD.ORG From: Christopher Schulte Subject: Re: a way not to download packages everytime i need to install them In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS 0.3.12pre6 on clink.schulte.org 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 At 07:29 PM 7/7/2002 +0300, walid Nehme wrote: >Dear sirs. >I'm using freebsd 4.6 and i made a program and have to install it on more >than one machine. i'm using mysql data base php4 apache midnightcommander >squid, is there anyway to downlaod the ports one time and use them on the >other computers? I have a central 'port distfile server' that keeps the master copies of all my port sources to save bandwidth and more importantly time when building a port on a new server. I make this directory of files available via anon ftp to the boxes on my lan. Then set MASTER_SITE_OVERRIDE=ftp://YOUR-LOCAL-SERVER/${DIST_SUBDIR}/ in /etc/make.conf. Now by default any port `make` will try to fetch the file first from your local server, then failing that reach out to the global network sites specified in the Makefile. Notes: Make sure you're running the same ports tree on all your systems, so that the ports all try to use the same source file that you already have locally. Cvsup can do this for you. You also might want to devise a system where new distfiles are transferred back to your ftp master so that if you build a port on anything other than your master, that source will propagate back and be available to all your leaf nodes too. I do a daily nfs copy to achieve this. -- Christopher Schulte http://www.schulte.org/ Do not un-munge my @nospam.schulte.org email address. This address is valid. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message