From owner-freebsd-hackers Sun Feb 26 19:27:42 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id TAA22202 for hackers-outgoing; Sun, 26 Feb 1995 19:27:42 -0800 Received: from eel.dataplex.net (EEL.DATAPLEX.NET [199.183.109.245]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id TAA22195 for ; Sun, 26 Feb 1995 19:27:36 -0800 Received: from [199.183.109.242] (cod [199.183.109.242]) by eel.dataplex.net (8.6.10/8.6.9) with SMTP id VAA02442; Sun, 26 Feb 1995 21:26:42 -0600 X-Sender: wacky@shark.dataplex.net Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 26 Feb 1995 21:26:45 -0600 To: Poul-Henning Kamp From: rkw@dataplex.net (Richard Wackerbarth) Subject: Re: make install question for you Cc: hackers@FreeBSD.org Sender: hackers-owner@FreeBSD.org Precedence: bulk >In the case of a "make install" with a $DESTDIR set, shall /etc be installed ? >(/etc/passwd and that kind of things) > >Argument for: > You can make a chroot sandbox in one easy op >Argument agains: > We shall never clobber any /etc unless asked to do so. > >votes ? I propose the following. I think it accomplishes both objectives. In the destination /etc directory we do the following in all cases: Assume the file to be installed is xxx. IF xxx does not exist THEN install xxx ELSE BEGIN IF xxx.sample exists AND xxx.sample.old does not exist THEN move xxx.sample to xxx.sample.old. install xxx as xxx.sample. END ---- Richard Wackerbarth rkw@dataplex.net