fakeroot

tool for simulating superuser privileges

A fork/clone of the main debian fakeroot repository at http://git.debian.org/?p=users/clint/fakeroot.git that includes enhanced Mac OS X fakeroot support which has since been merged back into that repository as of release 1.19-2 except for the changes noted below.

This GitHub fork/clone of the debian fakeroot repository is a mirror clone with the addition of a new macosx branch that includes the Mac OS X enhancements described here. The default HEAD branch for this GitHub repository is macosx, not master! However, unless there are new Mac OS X enhancements waiting to be merged, the macosx branch should track master very closely (as in be the same as except for the doc/Makefile.am change below).

Quick Download

DownloadTagReleasedInfo
fakeroot-3.3.dmg macosx-v3.3 2012-05-24 Mac OS X Installer package for 10.4 or later (universal) [hashes]
fakeroot-macosx-v3.3.tar.gz macosx-v3.3 2012-05-24 Pre-bootstrapped source tarball (includes configure script) [hashes]

Branch macosx Info

Without a change to the doc/Makefile.am file like so:

diff --git a/master:doc/Makefile.am b/macosx:doc/Makefile.am
index bf5ce07..5394548 100644
--- a/master:doc/Makefile.am
+++ b/macosx:doc/Makefile.am
@@ -1,5 +1,5 @@
 AUTOMAKE_OPTIONS=foreign
-SUBDIRS = de es fr sv nl
+##SUBDIRS = de es fr sv nl

 man_MANS = faked.1 fakeroot.1

the sudo make install command will fail on Mac OS X. The macosx branch (which is also the default HEAD branch) for this GitHub repository maintains the above change so that sudo make install will succeed after building on Mac OS X.

Supported OS X Versions

Mac OS X 10.4 and later are supported as are two-level namespace executables.

Install

See the README and README_MACOSX.txt (for Mac OS X) files.

Example

Suppose you wish to create an installer package for a preference pane SimplePref.prefPane so that it's installed to /Library/PreferencePanes with owner root and group admin. Assuming that a SimplePref.prefPane exists by itself in the stage subdirectory (which is located in the current directory) and fakeroot has already been installed, the following script will create SimplePref.pkg to install it:

#!/bin/sh
pm=/Developer/usr/bin/packagemaker
fakeroot sh -s <<FAKEROOT_SCRIPT
chown -R root:admin stage/SimplePref.prefPane
$pm --root stage --install-to /Library/PreferencePanes \
  --id com.example.SimplePref --no-recommend --target 10.4 --out SimplePref.pkg
FAKEROOT_SCRIPT

License

GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
See also the COPYING file.

Download

You can download the raw source files of this project in either tar or zip formats.

You can also clone the project with Git by running:

git clone git://github.com/mackyle/fakeroot

Pre-bootstrapped source tarballs (i.e. do not require autotools and have a pre-generated configure script) and Mac OS X installer packages are available for these tags:

fakeroot-3.3.dmg OS X installer package (tag: macosx-v3.3)
MD5a804db939b5f3adf43ec4043f0c94f56
SHA1e1d36da4f22b95b6af8a751000ac28028ff7f82e
SHA256cdf6c63f6959aa5d3c4c445902b413b087f08da49756a292055ee0320c876db3
fakeroot-macosx-v3.3.tar.gz source tarball (tag: macosx-v3.3)
MD582a8f80204feb35b008993674dd34b19
SHA1468df4d4f03c62fd1b0806819b8a773c39b566e6
SHA256cb42d5f568489baa6d77aa53969bef5403bd5b9b0f3e74e6c4cce5410568c513

See also the project’s downloads areas here and here.

Git Repository Browser

Repository browsers are available at: