From owner-freebsd-current Fri Jun 19 10:02:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21614 for freebsd-current-outgoing; Fri, 19 Jun 1998 10:02:51 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from post.mail.demon.net (post-11.mail.demon.net [194.217.242.40]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA21559 for ; Fri, 19 Jun 1998 10:02:22 -0700 (PDT) (envelope-from dmlb@ragnet.demon.co.uk) Received: from (ragnet.demon.co.uk) [158.152.46.40] by post.mail.demon.net with smtp (Exim 1.82 #2) id 0yn4Y0-0000Rs-00; Fri, 19 Jun 1998 17:01:56 +0000 Received: from dmlb by ragnet.demon.co.uk with local (Exim 1.82 #1) id 0ymunr-0004st-00; Fri, 19 Jun 1998 07:37:39 +0100 Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199806190349.WAA07258@detlev.UUCP> Date: Fri, 19 Jun 1998 07:37:39 +0100 (BST) From: Duncan Barclay To: Joel Ray Holveck Subject: RE: /etc maintainence Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19-Jun-98 Joel Ray Holveck wrote: > Who has tools (even halfhearted perl scripts) to make -current /etc > maintainance easier? Eg, adding/changing entries in crontab to keep > up with -current, while maintaining your own local entries? I use RCS to store keep my local additions in and use symbolic links for the official name of the file to the machines local version, prefixed with the hostname. This means I can have just one RCS directory for all of my machines and have common/net specific and host specific files. e.g ln -s ./computer.rc.conf.local rc.conf.local When I have a new /etc I run a script that: 1) an rcsclean in the original etc. 2) get a list of file names I'm interested in 3) for any of the names that don't exist in the new etc. create a symbolic link. 4) for each file that does exist in the new etc look for a file with the same name but prefixed with ~. If the diff between them is zero move the file in the new etc to name~ and create the symbolic link. 4a) if the two differ then print a warning. 5) do something similar with directories like ppp. 6) check out all the RCS files. This way I automatically update the new etc when files in it haven't changed since the last build. For files that need looking at all you need to do is check them, tweak up the local configuration and move the file in the new etc to file~, then re-run the script. Using this I keep all my configurations for all my machines in a single place (makes backup very easy, just keep a copy of the RCS directory, home directries and the package list on tape).  > Happy hacking, > joelh > > -- > Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan > Fourth law of programming: > Anything that can go wrong wi > sendmail: segmentation violation - core dumped > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message --- ________________________________________________________________________ Duncan Barclay | God smiles upon the little children, dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned. ________________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message