From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA14206; Tue, 22 Apr 2003 13:29:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA14357 for caml-list@pauillac.inria.fr; Tue, 22 Apr 2003 13:29:11 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA06524 for ; Sat, 19 Apr 2003 03:44:51 +0200 (MET DST) Received: from netmeister.org (www.netmeister.org [64.81.200.34]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3J1ioX26245 for ; Sat, 19 Apr 2003 03:44:50 +0200 (MET DST) Received: by netmeister.org (Postfix, from userid 1000) id 0F3612DC627; Fri, 18 Apr 2003 21:53:02 -0400 (EDT) Date: Fri, 18 Apr 2003 21:53:02 -0400 From: Jan Schaumann To: caml-list@inria.fr Subject: [Caml-list] patch to install without 'cp' Message-ID: <20030419015302.GB19206@netmeister.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Spam: no; 0.00; netbsd:01 'make:01 install':01 prohibit:01 flags:01 555:99 permissions:01 ocaml:01 patch:02 makefile:02 imaginary:03 suppose:03 data:03 installed:04 modes:05 X-Spam: no; 0.00; netbsd:01 'make:01 install':01 prohibit:01 flags:01 555:99 permissions:01 ocaml:01 patch:02 makefile:02 imaginary:03 suppose:03 data:03 installed:04 modes:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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