Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2005 15:20:45 +0100
From:      Ashley Moran <work@ashleymoran.me.uk>
To:        freebsd-hackers@freebsd.org
Subject:   Re: A smarter mergemaster
Message-ID:  <433D49BD.4070402@ashleymoran.me.uk>
In-Reply-To: <200509302327.00537.doconnor@gsoft.com.au>
References:  <20050929224548.GB3035@comp.chem.msu.su> <200509301041.10480.doconnor@gsoft.com.au> <433CFD16.6060200@ashleymoran.me.uk> <200509302327.00537.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Connor wrote:
> On Friday 30 September 2005 18:23, Ashley Moran wrote:
>
> It sure would be nice :)
> One thing would be to have automatically fetched etc directories so when you 
> ran it for the first time it would grab a release version of etc for you :)
> Hmm.. I'll try and add that if I get some time I think!
> 


Funny you should say that... I had a crack at something similar myself 
(see below).  But I was hampered by the fact that

a) I had never used CVS before (we use <whisper>VSS</whisper> here but 
I'm moving it all to SVN), and
b) I have no idea how the FreeBSD build process works
(I'm a hardcore hacker lol)

Unfortunately it seems that config files for the subsystems (eg SSH) are 
stored separately in the CVS tree and I didn't have time to work out 
where they live.

While we're on the subject, how do you handle the DB files?  I don't see 
any special mention of them in the man pages.  When I last etcmerged I 
glossed over them and haven't had any login problems since.


Ashley





Here is my effort:

#!/bin/sh
# takes one argument: name of the tag to get from CVS

cd /var/db

# clear out any previous files
rm -rf etc

# fetch new etc files from cvs
export CVSROOT=:pserver:anoncvs:anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs
cvs login
cvs -QR export -r$1 etc
cvs logout

cd etc

# local adjustment
mv etc.i386/ttys .

# clear out the other platform-specific files
rm -r etc.*



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