From owner-freebsd-hackers Thu Mar 19 07:29:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA04416 for freebsd-hackers-outgoing; Thu, 19 Mar 1998 07:29:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA04343; Thu, 19 Mar 1998 07:29:19 -0800 (PST) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by shale.csir.co.za (8.8.8/8.8.8) id RAA04972; Thu, 19 Mar 1998 17:28:42 +0200 (SAT) (envelope-from reg) Message-ID: <19980319172842.00454@shale.csir.co.za> Date: Thu, 19 Mar 1998 17:28:42 +0200 From: Jeremy Lea To: Eivind Eklund , Studded , FreeBSD-Hackers@FreeBSD.ORG Cc: jkh@FreeBSD.ORG Subject: Re: Discussion about script to update /etc, etc. Mail-Followup-To: Eivind Eklund , Studded , FreeBSD-Hackers@FreeBSD.ORG, jkh@FreeBSD.ORG References: <3510CC73.307E199D@dal.net> <19980319160058.14256@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <19980319160058.14256@follo.net>; from Eivind Eklund on Thu, Mar 19, 1998 at 04:00:58PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Mar 19, 1998 at 04:00:58PM +0100, Eivind Eklund wrote: > On Wed, Mar 18, 1998 at 11:42:43PM -0800, Studded wrote: > > One of the things that has been often requested is a method of > > automatically updating the files installed by /usr/src/etc/Makefile for > > the user. I have developed the following system based in part on the one > > in Nik Clayton's make world tutorial. > > http://www.nothing-going-on.demon.co.uk/FreeBSD/make-world/make-world.html > > It is still easier to do this correctly if you base yourself on having > a pristine version of the initial etc files available, and use 'merge' > to do the actual merge. > > This can be extracted from the CVS repository, but the users that have > that available probably isn't the primary target (except if they have > the CD-ROM, of course... :-) > > Jordan - what's the chance of automatically getting a pristine copy of > the /etc directory stored along the actual one, for later upgrades? > Just making sysinstall copy all files in /etc into /etc/pristine on > initial install should make good upgrades much easier... I haven't looked at the script yet, but this was an idea... Use the $ID$ and fetch http://www.freebsd.org/cgi-bin/cvsweb.cgi, to fetch a new copy of each (changed) origional file. Create a diff against that and then apply the diff to the new /etc. Merge conflicts by hand and then copy. Requires access via fetch, but that's not a big problem for CVSSup users. -Jeremy -- .sig.gz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message