Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 1995 20:46:02 -0800 (PST)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        rkw@dataplex.net (Richard Wackerbarth)
Cc:        phk@ref.tfs.com, hackers@FreeBSD.org
Subject:   Re: make install question for you
Message-ID:  <199502270446.UAA05359@gndrsh.aac.dev.com>
In-Reply-To: <v02110102ab76f4af81b4@[199.183.109.242]> from "Richard Wackerbarth" at Feb 26, 95 09:26:45 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >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



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