From owner-freebsd-questions Sun Feb 24 21:37:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id DD3F337B417 for ; Sun, 24 Feb 2002 21:37:26 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16fDp3-0001ic-00 for FreeBSD-questions@freebsd.org; Mon, 25 Feb 2002 05:37:14 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id 74E4C13040 for ; Mon, 25 Feb 2002 06:37:08 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1005) id 5D97D22595; Mon, 25 Feb 2002 06:37:08 +0100 (CET) Date: Mon, 25 Feb 2002 06:37:08 +0100 From: Cliff Sarginson To: FreeBSD-questions@freebsd.org Subject: Re: Local CVS repository, the final frontier Message-ID: <20020225053708.GC2875@raggedclown.net> References: <20020225052010.GD27425@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020225052010.GD27425@hades.hell.gr> User-Agent: Mutt/1.3.27i 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 Mon, Feb 25, 2002 at 07:20:10AM +0200, Giorgos Keramidas wrote: > On 2002-02-23 06:41, Crist J. Clark wrote: > > On Sat, Feb 23, 2002 at 02:40:33PM +0100, Cliff Sarginson wrote: > > > Hi, > > > Ok..updating src from my local network repository, no problem > > > But what command do I give to 'cvs' to update the /usr/ports > > > collection from the network repository (which is updated nightly). > > > I have spent all morning, thinking and trying and I am damned if > > > I can get it to work a la cvsupit (i.e. update changed ports). > > > I realise that ports is not under cvs as such, is there some > > > magic to get it to just replace older files with newer ones. > > > Or do I need to write a find script..whatever ? > > > > I'm not sure I understand. The ports are under CVS control just as > > much as any other part of FreeBSD. You say you have a local > > repository? Why not just cvsup(1) the ports (if you are not already) > > and just use cvs(1) the same way? > > You can add the ports-all collection to the collections that are updated in > the CVS repository mirror. Then, after cvsup is finished bringing the > ports/ tree in your CVS mirror, you can use cvs to update /usr/ports. > > 1. To check out a copy of ports under /usr (paying attention not to nuke > /usr/ports/distfiles and all the downloaded sources): > > # cd /usr > # mv ports/distfiles . > # rm -fr ports > # cvs -q -d /home/ncvs checkout ports > # mv distfiles ports > > 2. To update the ports collection with CVS after the initial checkout: > > # cd /usr/ports > # cvs -q up -APd > > If you remove some of the directories under /usr/ports (for instance, I > don't care about /usr/ports/chinese since I don't use any chinese ports) > you can remove those subdirectories of /usr/ports and only cvs `update' the > remaining subdirectories: > > # cd /usr/ports > # cvs -q up -APd * > Thanks to all who helped me out of my own stupidity on this, it is all working just tickety-boo now. It was the famous case of "testing my own presumptions" rather than actually questioning them :) I now have a local repository from which I can make -STABLE updates -CURRENT updates etc etc. to any machine on the network, which is what I wanted to achieve. I just run one repository update on one machine once a night. The next challenge is handling my own local modifications, additions, experiments. I am busy reviewing suggestions and the docs on doing that. -- Regards Cliff Sarginson -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message