Merge pull request #16 from jimis/master

.git directory is needed in buildscripts in order for autogen to generate the "revision" file.
Revert "add all dependencies needed by libgcc and associates for aix"

This reverts commit 19721c335ae2b8cc6edadeefb1d3eb722c8b60db.

It introduces way more problems than it solves, and in general it is
not safe to assume that the very platform specific libraries libc and
libpthread are going to work on all platforms we install the AIX
package on. This unfortunately also means that we cannot support AIX
platforms with a lower patch level than our build machine.

Redmine #6679.

Conflicts:

	deps-packaging/libgcc/cfbuild-libgcc.spec
Redmine #6678: Prevent installation on AIX boxes with old libraries.

We specify libc/pthread dependencies to avoid linking error at run
time.
Merge pull request #17 from kacfengine/aix_lib_fixes

Redmine #6678, #6679: Aix lib fixes
Bind redis to listen only on local host.

Redmine: #6720
Merge pull request #19 from maciejmrowiec/master

Bind redis to listen only on local host.
Use checksums to speed up rsync transfers.
Redmine #6766: Avoid error when detecting POSIX shell.

The 'sh -e' disturbs the POSIX test, which is included because we use
build-scripts/functions. The latter enables '-e' after the test
anyway, so just remove it from initialization.
Remove local mirror for build files.

It is irrelevant in an open source context anyway, and since all
distfiles are cached, the load on the servers is really not that high.

At the same time make sure we don't pass too few parameters to
pkg-get-src in case there are no distfiles (libgcc).
Redmine #6766: Don't rely on "which" exit code.

On HPUX it always returns 0. What we should look at is the output.
Redmine #6766: Add /usr/contrib/bin to PATH, for HPUX.

Some tools, like gzcat, reside there.
Redmine #6766: Reuse Solaris INT_MAX fix for HPUX as well.
Redmine #6766: Switch the last platform, HPUX, to LMDB as well.
Merge pull request #22 from kacfengine/hpux_support

Redmine #6766: Introduce HPUX package support
Add --no-tests option to build-remote.
Add support for detection of number of CPU cores on HPUX.
Clean up cfengine-nova package scripts and add HPUX support.

The package scripts have long been a mess, and with HPUX support, we
are adding a fifth platform to the already existing and highly
redundant four scripts.

So this commit cleans up all that by abstracting the common platform
operations into separate snippets, and leaving the "meat" of the
script to be shared between all platforms. This significantly reduces
the maintenance overhead and also makes it more resilient by keeping
the tricky parts (like detecting whether or not you are doing an
upgrade) in the snippets so you don't have to care about it when
modifying the platform shared part.

Also added a README to describe how package scripts work on the
different platforms (among all the five platforms, not any two
platforms do it the same way). This gave rise to how the snippets are
organized, which is a bit more messy than I would have wanted, but it
seems to be the best way to cover all bases. See the produce-script
script for more details on this organization.

Currently only the cfengine-nova package is covered by the new snippet
system, but this can be extended to the other packages later.

Redmine #6798.
Enable unit & acceptance testing for HPUX.
Make chroot contain device files.

HPUX does not have a devfs, and copying the files as device files
seems top work ok there. This way we will have access to things like
the random device.

Also make sure rsync honors special files.
HPUX does not have /proc, so make mounting a noop inside chroot.