caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jan Schaumann <jschauma@netbsd.org>
To: caml-list@inria.fr
Subject: [Caml-list] patch to install without 'cp'
Date: Fri, 18 Apr 2003 21:53:02 -0400	[thread overview]
Message-ID: <20030419015302.GB19206@netmeister.org> (raw)

Hi,

Suppose root has a umask of 077.  Doing a 'make install' in the top
level of the ocaml distribution will install everything in a way that
will prohibit other users from accessing all the files, as 'cp' is used.

In NetBSD's Packages Collection[1] we generally use install(1) with the
appropriate flags to ensure that all modes are proper.  We define:

BSD_INSTALL_PROGRAM="install -c -s -o root -g wheel -m 555"
BSD_INSTALL_SCRIPT="install -c -o root -g wheel -m 555"
BSD_INSTALL_DATA="install -c -o root -g wheel -m 444"
BSD_INSTALL_MAN="install -c -o root -g wheel -m 444"
BSD_INSTALL_PROGRAM_DIR="install -d -o root -g wheel -m 555"
BSD_INSTALL_SCRIPT_DIR="install -d -o root -g wheel -m 555"
BSD_INSTALL_DATA_DIR="install -d -o root -g wheel -m 555"
BSD_INSTALL_MAN_DIR="install -d -o root -g wheel -m 555"

I have a patch[2] to use these variables -- if you specify these or
similar variables in the distributions top-level Makefile, you can apply
it and thus ensure that all things are installed with the proper
permissions regardless of the installing users umask.

-Jan

[1] http://www.netbsd.org/Documentation/software/packages.html
[2] http://www.netmeister.org/misc/netbsd/ocaml.install.diff

-- 
This one's tricky. You have to use imaginary numbers, like eleventeen...

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2003-04-22 11:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030419015302.GB19206@netmeister.org \
    --to=jschauma@netbsd.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).