Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 1995 21:26:45 -0600
From:      rkw@dataplex.net (Richard Wackerbarth)
To:        Poul-Henning Kamp <phk@ref.tfs.com>
Cc:        hackers@FreeBSD.org
Subject:   Re: make install question for you
Message-ID:  <v02110102ab76f4af81b4@[199.183.109.242]>

next 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

----
Richard Wackerbarth
rkw@dataplex.net





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