Merge miscfix patchset to 2012Q4.

Provide a default config file, use standard PKG_SYSCONFDIR.

Change package file name if worker MPM is used.

Make building docs optional

Add an option to generate the misc tools too.

Fix the way how required libs are recorded based on the ldd output. Libraries provided by the same package that ldd wouldn't find under DESTDIR yet match a different library provided by e.g. the platform are no longer added to REQUIRES.

Add mbfl header files to package, add bl3 support for e.g. php-mailparse.

Add a hackish way to build php-oci8 against the Oracle Instant Client.

Fix builds with GCC 4.7.

Add compiled-in Passenger support

Make top build as 32bit on SunOS/i386

Skip some SunOS hacks as recent SunOS platforms do not need them

libfetch doesn't like build optimization

Improve default config file, include it in package

Make package work on Crossbow-style SunOS

Fix default config file location

Enable readelf shlib check on SmartOS

Pick up Joyent's Sun Java on SmartOS

Force use the structured proc system which builds with large file support

Update local patch for newer Boost.

Add support for PHP 5.4

We have different PLIST on SmartOS due to a different javadoc version

Do not try to build a 64bit module if MACHINE_PLATFORM=i386

Add support for Linux compatible lxproc on SmartOS.

Make sure large file support *64 functions are not exposed into PHP functions names

Mangle PKGNAME, not FILEBASE, so that pkgin lookup works properly

Do not restrict, the limitation is on re-selling of decoders

Apply our pbulk diffs.

 - Fix socket failures with limited builds.
 - Support per-build configuration file.
 - Support chroot builds.
 - Additional and alternative logging to avoid NFS issues.

Fix dependencies for USE_PKGSRC_GCC_RUNTIME.

We need to explicitly depend upon gcc47-libs only, to avoid gcc47 being
pulled in if available, when using USE_PKGSRC_GCC_RUNTIME as the RPATH
will depend upon the gcc47-libs layout.  Plus gcc47 is way too big! :)

Move docs patch lower to avoid bsd.prefs.mk conflict.

Add ALTERNATIVES file, lost earlier.

Fix merge botch in pkgtools/pbulk.
Backport trunk OpenSSH HPN patch site fix.
Backport SIGPIPE fix for pbulk.
Explicitly pass -D_FILE_OFFSET_BITS=64.

The setup in fsops.c does not actually work due to the ordering of
includes parsing.
Ensure _FILE_OFFSET_BITS=64 for net/libfetch
Some fixes to lang/gcc47-libs:

 - Remove the USE_PKGSRC_GCC_RUNTIME local change, it is no longer
   necessary (someone forgot to bump gcc47-libs past gcc47).

 - Remove check for GCC47_BUILDLINK_MK, it is incompatible with using
   a gcc from the same pkgsrc environment.

 - Put the gcc47-libs path first in the RPATH.
Prefer the runtime path, via GCC_TARGET_MACHINE.
Backport DTrace fix for mysql55-client.
Quick hack to fix zsh.
Pull up tmux fix from trunk.
Fix missing rpath by forcing LDFLAGS through
Fix LDFLAGS bug and make sure rpath is recorded
Make sure files are not group/world writable
Fix stale ffmpeg tools
Make sure DESTDIR paths are not recorded in rpath
Extend multicast workaround to SunOS too
Do not check for rpath, because we're not depending on Oracle InstantClient libs for licensing reasons
Remove duplicate patch contents
Fix build on SunOS
Add OpenSSL bl3