Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2005 16:14:24 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Derrick MacPherson <dmacpherson@mainframe.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cvsup-mirror and my other local servers
Message-ID:  <200504221614.24882.kstewart@owt.com>
In-Reply-To: <1114210934.5227.4.camel@Mandarin-04.mainframe.ca>
References:  <1114187244.7638.27.camel@Mandarin-04.mainframe.ca> <200504221550.33904.kstewart@owt.com> <1114210934.5227.4.camel@Mandarin-04.mainframe.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 22 April 2005 04:02 pm, Derrick MacPherson wrote:
> On Fri, 2005-04-22 at 15:50 -0700, Kent Stewart wrote:
> > On Friday 22 April 2005 03:08 pm, Derrick MacPherson wrote:
> > > On Fri, 2005-04-22 at 09:27 -0700, Derrick MacPherson wrote:
> > > > I have about 8 freebsd boxes, I am using one with the ports
> > > > cvsup-mirror as the central cvs source for my other boxes, but
> > > > when I point them at the master cvs server I get this error:
> > > >
> > > > cvsup -h cvs stable-supfile
> > > > Connected to cvs
> > > > Server message: Unknown collection "src-all"
> > > > Skipping collection src-all/cvs
> > > > Finished successfully
> > > >
> > > > and in the server logs:
> > > > Apr 22 09:22:15 cvs cvsupd[24459]: +8
> > > > derrick@jupiter.mainframe.ca [SNAP_16_1h/17.0]
> > > > Apr 22 09:22:15 cvs cvsupd[24459]: =8 Unknown collection
> > > > "src-all" Apr 22 09:22:16 cvs cvsupd[24459]: -8 [0Kin+0Kout]
> > > > Finished successfully
> > > >
> > > > I think i'm missing something quite small, but can't google
> > > > what looks like a correct answer. I've not changed
> > > > configuration much beyond the initial default installation
> > > > config. Can someone point me in the right direction?
> > > >
> > > > cvs# uname -a
> > > > FreeBSD cvs.mainframe.ca 5.3-RELEASE FreeBSD 5.3-RELEASE #5
> > > >
> > > > Also, if I'm to set up a cvs server for my 4.1X boxes, can i
> > > > use the same server? if so how do I differentiate the 2
> > > > distros? And what about ports, are they the same for 4.x and
> > > > 5.x?
> > >
> > > Any suggestions on this one? I'm heading off in a couple hours
> > > for vacation for a week, and was hoping to have this working by
> > > the end of the day.
> >
> > I have a mirror but all I had to do is replace the host in the
> > cvsup file with my local computer running cvsupd.
>
> Thats what I did as well, using the /usr/share/examples/cvsup/ cvsup
> files that i've always used. Is that wrong?

There is a lot of stuff that comes along but here is what I do. I have a 
script file called upstable. It looks like

# m upstable
#! /bin/sh
cd /root/cvsup
#cvsup -g -L 2 4.x-stable-supfile 2>&1 | tee cvsup.log
cvsup -g -L 2 stable-supfile 2>&1 | tee /var/log/build/cvsup.log

cd /var/log/build/

# Now convert the log to html`
cvsuplog < cvsup.log > cvsup-`date "+%Y%m%d-%H%M"`.html

Now /root/cvsup/stable-supfile looks like

# cat stable*
# $FreeBSD: src/share/examples/cvsup/stable-supfile
# IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/handbook/mirrors.html.
#*default host=cvsup16.freebsd.org
*default host=crystal
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix

# If your network link is a T1 or faster, comment out the following 
line.
#*default compress

## Main Source Tree.
#
src-all

Crystal is the host name of my local computer running cvsupd. If I am 
concerned about what is on it. I change the host and get my update from 
cvsup16. If I want to cvsup RELENG_5, I just change the tag and the 
scripts work on both versions.

Kent
-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504221614.24882.kstewart>