procfs stable port information

Package: procfs
Version: 2.0
Revision: 2
Distribution: 10.5

Source: http://homepage.mac.com/danielj7/%n-%v.tar.bz2
Source-MD5: 4a68d202afccea49892ec15e215c1757

BuildDepends: <<
fuse-dev (>= 2.0-1),
pcre (>= 7.6-2),
system-sdk-10.5
<<
Depends: <<
daemonic,
fuse-shlibs (>= 2.0-1),
macosx (>= 10.5.0-1),
pcre-shlibs (>= 7.6-2)
<<

PatchScript: <<
perl -pi -e 's,/usr/local,%p,g; s,make,make CFLAGS="" CPPFLAGS="",' Makefile
<<

GCC: 4.0

CompileScript: <<
make CXXFLAGS='-I%p -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -isysroot /Developer/SDKs/MacOSX10.5.sdk' \
PCRECPP_LDFLAGS='-L%p -lpcrecpp -lpcre'
<<

InstallScript: <<
/usr/sbin/chown root:wheel procfs
/bin/chmod u+s procfs
/bin/mkdir -p %i/bin
/bin/mv procfs %i/bin/procfs
<<

PreInstScript: <<
echo 'Unmounting /proc in case you are upgrading from an old version.'
{ [ -x %p/bin/procfs -a -d /proc ] && /sbin/umount /proc ; } || true
<<

PreRmScript: <<
if [ $1 != "upgrade" ]; then
echo 'Unmounting /proc.'
{ [ -x %p/bin/procfs -a -d /proc ] && /sbin/umount /proc ; } || true

daemonic remove %N
fi
<<

DocFiles: COPYING README

DaemonicName: %N
DaemonicFile: <<

procfs FUSE file system
procfs



if [ ! -d "/proc" ]; then
/bin/mkdir /proc
/usr/sbin/chown root:wheel /proc
fi

%p/bin/procfs
-f /proc


<<

Description: FUSE /proc filesystem
DescDetail: <<
Procfs is a filesystem for accessing process info and hardware through file
access commands. It approximates the /proc hierarchy found in Linux and other
UNIXes.
<<
DescUsage: <<
To create /proc:

sudo mkdir /proc
sudo chown root:wheel /proc
procfs -f /proc &

To check if /proc is mounted, type
mount
and you should see
procfs on /proc (read-only, synchronous)
in the list.

You can also start procfs at boot time with:
sudo daemonic enable procfs

The startup item will be removed and
/proc unmounted when the package is removed.
<<

License: GPL
Homepage: http://osxbook.com/book/bonus/chapter11/procfs/
Maintainer: Daniel Johnson