Package: fauxsu
Homepage: http://github.com/DHowett/fauxsu
Maintainer: Dustin Howett <dustin@howett.net>
Version: 0.9.1
Revision: 1
License: GPL
BuildDepends: fink (>= 0.28)
Source: http://dist.howett.net/f/fauxsu/fauxsu-%v.tgz
SourceDirectory: fauxsu-%v
Source-Checksum: SHA256(d75f0b206fc324989c5721a65c0ef7741e4311b0357f4232be2cd8bf13e022a8)
CompileScript: <<
 #!/bin/bash -e -x
 /usr/bin/sed -i '' -e 's/libexec/%lib/' Makefile
 make INSTALL_PREFIX=%p messages=yes
<<
InstallScript: <<
 #!/bin/bash -e -x
 d=$(mktemp -d "/tmp/fink-%N-XXXXXX")
 if ! [ -d "$d" ]; then
   printf "failed to create temporary directory\n" >&2
   exit 1
 fi
 make stage INSTALL_PREFIX=%p THEOS_STAGING_DIR="$d" messages=yes
 rsync -a --delete "$d/" "%d/"
 mkdir -p %i/share/doc/%N
 cp LICENSE %i/share/doc/%N || true
 [ -d "$d" ] && rm -rf "$d"
<<
Description: Grants applications fake root privileges
DescDetail: <<
 fauxsu wraps system calls involved in changing file ownership and modes,
 allowing programs to act as if run as the superuser.
<<
Shlibs: <<
 !%p/lib/%N/libfauxsu.dylib
<<