From owner-freebsd-hackers Sun Feb 26 20:47:52 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id UAA26211 for hackers-outgoing; Sun, 26 Feb 1995 20:47:52 -0800 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id UAA26203 for ; Sun, 26 Feb 1995 20:47:48 -0800 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.8/8.6.6) id UAA05359; Sun, 26 Feb 1995 20:46:02 -0800 From: "Rodney W. Grimes" Message-Id: <199502270446.UAA05359@gndrsh.aac.dev.com> Subject: Re: make install question for you To: rkw@dataplex.net (Richard Wackerbarth) Date: Sun, 26 Feb 1995 20:46:02 -0800 (PST) Cc: phk@ref.tfs.com, hackers@FreeBSD.org In-Reply-To: from "Richard Wackerbarth" at Feb 26, 95 09:26:45 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1253 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 And waste possibly 298k * 2 of my valuable /root space, I think I would hate this idea. And trying to diff foo against foo.sample or foo.sample.old is not very easy to do. How about installing to /usr/share/examples/etc AND /etc if DESTDIR is set, otherwise only install to /usr/share/etc. This means you can do a real simple diff -c -r /etc /usr/share/examples/etc to see what you might want to update. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD