Added FreeBSD portmaster package_method
Fix filestat test pass condition.

Pass when all conditions are met, not when any condition is met.
fix for redmine #2635
Redmine #2675: /bin/bash is not available on all supported plaforms

The test script test/acceptance/08_commands/01_modules/003.cf.script
uses a /bin/bash shebang, and the Bash shell is not available on
stock HP-UX systems among others, preventing the test from running
properly. This commit changes bash to sh to conform with all the
other test scripts.
Merge pull request #665 from mvpel/redmine_2675

Redmine #2675: /bin/bash is not available on all supported plaforms
Merge pull request #662 from jeffali/fix/2635

fix for redmine #2635
Redmine #2573; correct mistake in placement of pragmas

The #pragma is not allowed inside functions, so move it outside.
Merge pull request #666 from kacfengine/hpuxFix

Redmine #2573; correct mistake in placement of pragmas
Take alternative workdir into account in test.
Merge pull request #667 from kacfengine/testFix

Take alternative workdir into account in test.
Wrong signature for mocked function

In logging_test.c we mock "sendto" to avoid sending data. In HPUX the compiler
is a little bit more strict than anticipated so it was complaining about the
type of the signature. It is interesting that this worked all over the place
and no other compiler complained even though it is evidently a failure.
Merge pull request #669 from cduclos/master

Fixing an evident compilation failure
Aggregate changes from 3.5 pre-releases
Redmine #2691: missing group name spec for some platforms in test

The 10_files/02_maintain/205.cf has a test_perms body which sets the
owner and group of the test file by "root" user and a group name,
then the rest of the test run compares the UID and GID numbers to
verify the test. The group names are defined for either linux or freebsd,
but no other platforms.

In the absence of a specification, the file created by the test takes the
default group of the process owner, which for root is "sys" GID 3 on
HP-UX 11.11, causing the test to show "0 3" instead of "0 0" and thus
failing.

This commit adds correct GID 0 group names for hpux, solaris, netbsd,
openbsd, darwin, aix, and cray platforms.

The "sys" group for Cray:
   http://docs.cray.com/books/S-2311-22/html-S-2311-22/z1055890212.html

The "system" group for AIX:
   http://publib.boulder.ibm.com/tividd/td/user_admin/GC32-0661-01/en_US/HTML/admusref34.htm

I was unable to find documentation for unix_sv, sco, qnx, dragonfly, or
vmware platforms.

With this update, the test now passes on HP-UX:

mphp1# ./testall --agent=/var/cfengine/bin/cf-agent 10_files/02_maintain/205.cf
======================================================================
Testsuite started at May 21:19:06
----------------------------------------------------------------------
Total tests: 1

./10_files/02_maintain/205.cf Pass

======================================================================
Testsuite finished at May 21:19:24 (18 seconds)

Passed tests: 1
Failed tests: 0
Failed to crash tests: 0
Skipped tests: 0
mphp1# uname -a
HP-UX mphp1 B.11.11 U 9000/785 2007997283 unlimited-user license
mphp1#
Redmine #2693: some 10_files tests check for unpromised gid numbers

Some platforms, such as HP-UX, do not have root in group 0 by default.
Certain tests expect a string showing mode, nlinks, uid, gid, and size
to show a uid and gid of zero for the test file, but without promising
the GID the file defaults to root's primary group. On HP-UX this is 3,
causing the test to fail.

The tests have been updated to promise the same mode, uid, and gid that
are expected in the "expect" string for the test file that is created.
Using platform.h instead of system headers

This way all the logic for deciding which headers need to be called is
kept inside platform.h.
Merge pull request #675 from cduclos/master

platform.h instead of system headers for HPUX
Set of fixes to logging.
  - Fix setting debug level in options.
  - General standardization of logging
Moar changes
Bring master ChangeLog up to speed wrt 3.4 fixes