Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] patch to install without 'cp'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-22 (11:29)
From: Jan Schaumann <jschauma@n...>
Subject: [Caml-list] patch to install without 'cp'

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.



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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: